Community discussions

MikroTik App
 
aresmt
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Fri Mar 28, 2014 12:10 am

OVPN routing issues

Thu Sep 15, 2016 1:36 am

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,
 
IntrusDave
Forum Guru
Forum Guru
Posts: 1286
Joined: Fri May 09, 2014 4:36 am
Location: Rancho Cucamonga, CA

Re: OVPN routing issues

Thu Sep 15, 2016 7:32 am

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
 
aresmt
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Fri Mar 28, 2014 12:10 am

Re: OVPN routing issues

Thu Sep 15, 2016 11:24 pm

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,
 
aresmt
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Fri Mar 28, 2014 12:10 am

Re: OVPN routing issues

Sun Sep 18, 2016 2:05 pm

Hi Guys,

Any help here?

Thanks,
 
User avatar
docmarius
Forum Guru
Forum Guru
Posts: 1224
Joined: Sat Nov 06, 2010 12:04 pm
Location: Timisoara, Romania
Contact:

Re: OVPN routing issues

Sun Sep 18, 2016 2:22 pm

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.
 
plisken
Forum Guru
Forum Guru
Posts: 2511
Joined: Sun May 15, 2011 12:24 am
Location: Belgium
Contact:

Re: OVPN routing issues

Sun Sep 18, 2016 4:33 pm

Try this in "ip" "firewall" "filter"
You do not have the required permissions to view the files attached to this post.
 
aresmt
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Fri Mar 28, 2014 12:10 am

Re: OVPN routing issues

Sat Sep 24, 2016 1:28 pm

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,