K
K
Ka4a2015-10-20 15:07:18
openvpn
Ka4a, 2015-10-20 15:07:18

Why doesn't OpenVPN on Mikrotik connect to the global network?

Hello everyone, I need your help. The point is this. You need to make a Mikrotik OpenVPN server. I did this manual voxlink.ru/kb/voip-devices-configuration/mikrotiko... I connect as a client and see only resources in the Mikrotik network. I check the external ip on the client machine and it does not change, but it should be mikrotik. I also made a PPTP server, I connect as a client, everything works as it should. I'm not familiar with Mikrotiks at all, so I don't understand what he needs.
Router OS 6.32 Latest firmware.
Mikrotik mesh 192.168.91.0/24 I am attaching
the client config.

dev tun
proto tcp-client

remote 1.2.3.4 1194

ca ca.crt
cert client1.crt
key client1.key
tls-client

ping 10
ping-restart 45
ping-timer-rem
persist-tun
persist-key
mute-replay-warnings
verb 3
cipher AES-256-CBC
auth SHA1
pull
auth-user-pass auth.cfg
route-method exe 
route-delay 2 

route 192.168.111.0 255.255.255.0 192.168.91.1

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nimbo, 2015-10-20
@ka4a

well, and prescribe the default gateway and that's it. like route 0.0.0.0 0.0.0.0 192.168.91.1
and don't forget to enable masking on the tick

M
Maksim, 2015-10-20
@chumayu

Remember the rule - you need to show both, config! Kui knows what you did on the server.
And you need to do the following:
1. Specify the main route towards Mikrotik (if it is Nuna, I have Windows - it works - redirect-gateway def1)
2. Second, now you need to do NAT in the Mikrotik settings (in the IP, Firewall, NAT section).
SNAT, src addr (network you're coming from) out interface (where you're leaving), Action= masquarade
Let's get some more info if it's important to get an answer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question