First let's set up a routing table for the second gateway (we use table 20 for this):
# ip route add default via 2.2.2.2 table 20And set a rule that says packets marked with 200 will get routed using table 20:
# ip rule add fwmark 200 table 20
Ciao a tutti,ho questo problema:una box linux che deve parlare con un server con 2 possibili collegamenti di rete, ad esempio 2 AdslVorrei sfruttare entrambi i collegamenti, tipo "equal cost mulyi path" fino ad adesso l'ho fatto con server che avevano + indirizzi IP pubblici,quindi avevo una SCHEMA di routing tipo questa:IP Linux box: 192.168.0.10IP Router Adsl 1 : 192.168.0.1IP Router Adsl 2 : 192.168.0.2IP1 Server : 3.0.0.1IP2 Server : 3.0.0.2route add 3.0.0.1 gw 192.168.0.1route add 3.0.0.2 gw 192.168.0.2Quindi quando volevo raggiungere il server con la Adsl 1 utilizzavo IP1,quando volevo raggiungere il server con la Adsl 2 utilizzavo IP2,Vorrei sapere se c'è un modo di fare routing sulle porte UDP con iptables,in modo da non avere bisogno di un server con + indirizzi IP (per ovvii motivi economici)Gio--
-----------------------------------------------------------------------------------------
Luca 18,5 : "Poiché questa vedova è così molesta le farò giustizia, perché non venga continuamente a importunarmi".
Neemia 8,10 : "...questo giorno è consacrato al nostro Signore; non siate tristi; perché la gioia del Signore è la vostra forza".
GSM 345.6050488 / 327.0547392 / 392.0698126 - Fax 06.62204735
_______________________________________________ Talking mailing list Talking@ml.linuxvar.it http://ml.linuxvar.it/cgi-bin/mailman/listinfo/talking