I have openvpn running on a server with 2 internet connections (2 seperate ISPs)
I would like to allow roadwarrior connections to both IP's
One ISP is the default gateway from the machine
When I try and connect on the other IP openvpn sends all traffic out on the default
In my conf file if I set local to the address of the 2nd ip, it all works and openvpn sends traffic out on the correct line
However I want to allow clients to connect on either public IP.
For the roadwarriors to work on both traffic needs to go out on the same interface that it came in
Can this be done through openvpn conf?
2 gateways
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.
- krzee
- Forum Team
- Posts: 728
- Joined: Fri Aug 29, 2008 5:42 pm
Re: 2 gateways
you could get creative with adding routes from a script
if you add a route for client_ip to go over gateway_b instead of the default gateway_a, then that specific client can go over the secondary gateway. This would be done via a client-connect script. read the scripts section of the manual www.openvpn.net/man-beta
if you add a route for client_ip to go over gateway_b instead of the default gateway_a, then that specific client can go over the secondary gateway. This would be done via a client-connect script. read the scripts section of the manual www.openvpn.net/man-beta