/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting!
/* ALSO: Don't quote this header. It makes you look lame :-) */
>I just read the Advanced Routing howto on the LDP and it isn't
>too bad though it IS a little light:
>
>http://www.linuxdoc.org/HOWTO/Adv-Routing-HOWTO.html#toc3
I read the HOW-TO and it did solve my problem. Actually with iproute2 it's
easy to setup what I need and this is what I did:
echo 200 Link1 >> /etc/iproute2/rt_tables
echo 201 Link2 >> /etc/iproute2/rt_tables
echo 202 Link3 >> /etc/iproute2/rt_tables
ip rule add from 192.168.1.2 table Link1
ip rule add from 192.168.2.1 table Link2
ip rule add from 192.168.2.2 table Link2
ip rule add from 192.168.3.1 table Link3
ip route add default via `ifconfig ppp0| grep inet| cut -f3 -d:| cut -f1
-d" "` dev ppp0 table Link1
ip route add default via `ifconfig ppp1| grep inet| cut -f3 -d:| cut -f1
-d" "` dev ppp1 table Link2
ip route add default via `ifconfig ppp2| grep inet| cut -f3 -d:| cut -f1
-d" "` dev ppp2 table Link3
ip route flush cache
I don't know what 200, 201 and 202 are for but everything is working fine
now thanks to all of you. Now the only thing that is left is forwarding all
the ports from ppp2 to 192.168.3.1 so does anyone know what the "best" way
to do that?
Thanks
Rami AlZaid <[EMAIL PROTECTED]> * ICQ # 1071118
WebPages: www.alzaid.com * www.kuwait.nu * www.wooyeah.com
_______________________________________________
Masq maillist - [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ --
THIS INCLUDES UNSUBSCRIBING!
or email to [EMAIL PROTECTED]
PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.