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
[]--------------------------[]-----------------------[]
how can I access diferents tunnels from a client?
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVPN User
- Posts: 48
- Joined: Sun Oct 03, 2010 4:55 pm
- Mimiko
- Forum Team
- Posts: 1564
- Joined: Wed Sep 22, 2010 3:18 am
Re: how can I access diferents tunnels from a client?
You will have to know the gateway you want to push.
What routes do you want to push thru desired gateway? In generak, use:
in your OpenVPN on GW1.
For example, to redirect all trafic use:
What routes do you want to push thru desired gateway? In generak, use:
Code: Select all
--route network/IP [netmask] [gateway] [metric]
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"