Hello all,
I was trying to share bandwidth thru 2 independent links (that will soon become
4) on a TSL linux router.
My objective is to do a little "round robin" sort of route selection.
My ips for SNAT are:
dedicada -> 194.127.228.35 with router 194.127.228.38 [eth0]
adsl1 -> 172.16.0.1 with router 172.16.0.254 [eth1]
adsl2 -> 172.17.0.1 with router 172.17.0.254 [eth2]
adsl3 -> 172.18.0.1 with router 172.18.0.254 [eth3]
Allthough i searched google and got the exact same answers on how to do it, it
doesn't simply work!
They all mention the "nexthop" "ip route" directive.
# create roundrobin table
$IP route add default table roundrobin nexthop via 194.127.228.38 dev eth0
weight 1 nexthop via 172.16.0.254 dev eth1 weight 1
# add fwmark 50 for roundrobin table
$IP rule add fwmark 50 table roundrobin prio 25
# https goes thru roundrobin link
$IPTABLES -A PREROUTING -t mangle -p tcp --dport 443 -j MARK --set-mark 50
Can anbody give me a little help with this?
My script is at:
http://lms.ispgaya.pt/goodies/firewall.txt
Thanks in advance!
Luís
_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss