Page 1 of 1

2 gateways

Posted: Tue Sep 14, 2010 8:41 am
by pcavego
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?

Re: 2 gateways

Posted: Tue Oct 05, 2010 12:02 am
by krzee
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