Load Balance, alguem conseguiu?
Veja se isto lhe ajuda
# Balanceamento de carga
# Manter as conexoes de entrada - sai e entra na mesma interface
ip rule add from IPLINK1 lookup 1
ip route add 192.168.220.0/24 via 192.168.220.1 table 1
ip route add 0/0 via gatewayLINK!table 1
ip rule add from IPLINK2 lookup 2
ip route add 192.168.220.0/24 via 192.168.220.1 table 2
ip route add 0/0 via GATEWAYLINK2 table 2
# Regras de saida balanceada
ip route add default equalize nexthop via GATWEWAYLINK1 dev eth1 nexthop via 200.207.1.129 dev eth3
ip route flush cache
Load Balance, alguem conseguiu?
Hum, tentei .. mas nao funfou.. nem sinal de trafego na eth1...
Igor
Load Balance, alguem conseguiu?
iptables -t mangle -A PREROUTING -i $IF_LAN -p tcp --dport 25 -j MARK --set-mark 2
iptables -t mangle -A PREROUTING -i $IF_LAN -p tcp --dport 110 -j MARK --set-mark 2
iptables -t mangle -A PREROUTING -i $IF_LAN -p tcp --dport 80 -j MARK --set-mark 2
iptables -t mangle -A OUTPUT -p tcp --dport 25 -j MARK --set-mark 2
iptables -t mangle -A OUTPUT -p tcp --dport 110 -j MARK --set-mark 2
iptables -t mangle -A OUTPUT -p tcp --dport 80 -j MARK --set-mark 2
ip rule add fwmark 2 table 20 prio 20
ip route add default via $GW_ADSL2 dev $IF_ADSL2 table 20