2 gateways

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
pcavego
OpenVpn Newbie
Posts: 1
Joined: Tue Sep 14, 2010 8:37 am

2 gateways

Post by pcavego » Tue Sep 14, 2010 8:41 am

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?

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

Re: 2 gateways

Post by krzee » Tue Oct 05, 2010 12:02 am

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

Post Reply