Page 1 of 1

how can I access diferents tunnels from a client?

Posted: Wed Aug 24, 2011 8:43 pm
by pinguim007
Hello I have a openvpn on a gateway and I want to push the route to a diferent gateway established with a tunnel on the first gateway.

how can I do it?

client -tun0 GW1 -tun1 GW2
[]--------------------------[]-----------------------[]

Re: how can I access diferents tunnels from a client?

Posted: Thu Aug 25, 2011 5:39 am
by Mimiko
You will have to know the gateway you want to push.

What routes do you want to push thru desired gateway? In generak, use:

Code: Select all

--route network/IP [netmask] [gateway] [metric]
in your OpenVPN on GW1.

For example, to redirect all trafic use:

Code: Select all

push "route 0.0.0.0 128.0.0.0 GW2_IP"
push "route 128.0.0.0 128.0.0.0 GW2_IP"