Page 1 of 1

OVPN routing issues

Posted: Thu Sep 15, 2016 1:36 am
by aresmt
Hi,


Would you please help me with this issues that i have.

I have 2 Mikrotik routers on 2 different locations and i want to connect the subsets through OVPN.

The connections is configured but i have some problems configuring the routes and masquerade.

MikroTik A (Server) Subnet 192.168.10.0/24
Mikrotik B (Client) Subnet 192.168.200.0/24

OpenVPN Local IP (Server) 192.168.14.1
OpenVPN Remote IP (Client) 192.168.202.1

Client is connecting to server through internet.

What i need is that subnet 192.168.200.0/24 to have access to 192.168.10.0/24 and vice versa.

What routes should i add for this?

Thanks in advance,

Re: OVPN routing issues

Posted: Thu Sep 15, 2016 7:32 am
by IntrusDave
MikroTik A:
/ip route add distance=1 dst-address=192.168.200.0/24 gateway=ovpn-interface-name
MikroTik B:
/ip route add distance=1 dst-address=192.168.10.0/24 gateway=ovpn-interface-name

Re: OVPN routing issues

Posted: Thu Sep 15, 2016 11:24 pm
by aresmt
MikroTik A:
/ip route add distance=1 dst-address=192.168.200.0/24 gateway=ovpn-interface-name
MikroTik B:
/ip route add distance=1 dst-address=192.168.10.0/24 gateway=ovpn-interface-name

Hi Dave,

Still not working.

From
Mikrotik B (Client) Subnet 192.168.200.0/24
i can ping
OpenVPN Local IP (Server) 192.168.14.1
but noting from 192.168.10.0/24 or 192.168.10.1

Thanks,

Re: OVPN routing issues

Posted: Sun Sep 18, 2016 2:05 pm
by aresmt
Hi Guys,

Any help here?

Thanks,

Re: OVPN routing issues

Posted: Sun Sep 18, 2016 2:22 pm
by docmarius
Check your firewalls.
You need to have forward accept rules from/to the openvpn interfaces to/from your LAN on both routers.
And another issue: If you're running windows on the devices, you will still not get ping answers, because windows is not replying to pings from other subnets by default. Here you need either to masquerade to your LAN IP on both sides or change the firewall policies on the windows machines.

Re: OVPN routing issues

Posted: Sun Sep 18, 2016 4:33 pm
by plisken
Try this in "ip" "firewall" "filter"

Re: OVPN routing issues

Posted: Sat Sep 24, 2016 1:28 pm
by aresmt
Hi All,

Thank you for your help. I manage to configure fallowing your instructions.

It seems that over OVPN I get low transfer rate.

From router to router I get 60Mbps
Over OVPN I get around 300 Kbps

Certificates are 4096 and MTU is 1500

Any suggestions?

Thanks in advance,