hi. i do have an old small PC with 3 network cards and i got it run debian 7. this PC is my SOHO router.
eth0:192.168.0.79/24 with gateway 192.168.0.1 (DSL router)
eth1:192.168.1.1/24 LAN
at the moment only with the following i get access to the net:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth1 -j ACCEPT
iptables -A FORWARD -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
i have a second DSL connection that i would like to add in eth2 which has the following config:
192.168.2.79/24 with gateway 192.168.2.1 (dsl_router_2)
what config do i have to do so i can have a loadbalance failover. i would appreciate the per session connection, in order not to have problems with sip calls and https sites.
Just now i have found the following
http://members.hellug.gr/vyruss/comp...d_balance.html. i have done:
#touch balance.sh
#vi balance.sh and then i pasted the contents of the script, i have change it to my networks
#chmod +x balance.sh
my question is, what do i have to do with that script to make it work, please?