how can I access diferents tunnels from a client?

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
pinguim007
OpenVPN User
Posts: 48
Joined: Sun Oct 03, 2010 4:55 pm

how can I access diferents tunnels from a client?

Post by pinguim007 » Wed Aug 24, 2011 8:43 pm

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
[]--------------------------[]-----------------------[]

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

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

Post by Mimiko » Thu Aug 25, 2011 5:39 am

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"

Post Reply