Page 1 of 1

Comunicate between 2 openvpn tunnels on the same server

Posted: Mon Oct 05, 2009 6:40 pm
by gabriel
Hi,

I have 2 Nic in the same server, each one connected to different subnet, each Nic has its own openvpn server running.

NIC 1: its IP is 192.168.2.8 , openvpn ip : 192.168.88.x
NIC 2: its IP is 10.10.10.5 , openvpn ip: 192.168.89.x


I would like all users in both end of these 2 subnet to communicate together through these 2 tunnels. I need your help please, howto.

thanks in advance

Re: Comunicate between 2 openvpn tunnels on the same server

Posted: Wed Oct 07, 2009 1:02 pm
by ecrist
You simply need a push route statement in each opposing server to route to the other subnet.

So, for the 192.168.89.x server, add:

Code: Select all

push 'route 192.168.88.0 255.255.255.0'
And for the 192.168.88.x server, add:

Code: Select all

push 'route 192.168.89.0 255.255.255.0'
Make sure you've got IP forwarding enabled on the server so that it will route between the interfaces.