Page 1 of 1

OpenVPN client (ip mode) routing

Posted: Fri Apr 20, 2018 9:33 am
by Magres
Hi everyone.

I set up OpenVPN server on my VPS and want to route some IP on my Mikrotik over it.
So, server config is
port 1234
proto tcp
dev tun
ca keys/ca.crt
cert keys/server.crt
key keys/server.key
dh keys/dh2048.pem
server 10.201.1.0 255.255.255.0
client-to-client
ifconfig-pool-persist ipp.txt
keepalive 10 120

user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn/server-status.log
verb 3
push "redirect-gateway def1"
My windows client is ok.
On my RouterOS client is up as well, but It's not able to route specific IP over gateway 10.201.1.1 with "unreachable" state. Ping server 10.201.1.1 is ok. How to fix it?

Re: OpenVPN client (ip mode) routing

Posted: Fri Apr 20, 2018 9:08 pm
by Magres
Solved. Just use "topology subnet" on server.