[Openswan Users] OpenSWAN load balancing setup

plug bert plugbert at yahoo.com
Mon Jul 5 22:49:55 EDT 2010


Hello,


    Please advise if the following setup will work; end goal is to distribute VPN traffic over the two ISPs, and possibly set up automatic failover.

    Say that the OpenSWAN box is configured as follows:

                                 +------------>(eth0) ISP1
                                 |
subnet1 <-->(eth2) OpenSWAN box--+
                                 |
                                 +------------>(eth1) ISP2

If i configure load balancing over the two links via iproute command

ip route add default scope global nexthop via $ISP1 dev eth0 weight 1 nexthop via $ISP2 dev eth1 weight 1 


and set 

leftnexthop=%defaultroute


will this do the job? tia






More information about the Users mailing list