/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! /* ALSO: Don't quote this header. It makes you look lame :-) */ I would use a different route IP. ifconfig eth1 192.168.1.1 up route add -net 192.168.2.0 netmask 255.255.255.0 eth1 (192.168.1.0) route add -net 192.168.3.0 netmask 255.255.255.0 eth1 To: [EMAIL PROTECTED] From: Rami AlZaid <[EMAIL PROTECTED]> Subject: [Masq] Setting up NAT with iproute2 Part 2 Hi Again... Okay the first problem was solved... now I tried to set up 1:1 NAT but the machine that I'm trying to set up the NAT for is just taking the Linux machine's default IP instead... this is my whole setup so if anyone notices anything wrong PLEASE let me know! ifconfig eth1 192.168.1.1 up route add -net 192.168.2.0 netmask 255.255.255.0 eth1 route add -net 192.168.3.0 netmask 255.255.255.0 eth1 ipchains -P input ACCEPT ipchains -P output ACCEPT ipchains -P forward DENY ipchains -F forward ipchains -F input ipchains -F output ipchains -A forward -j MASQ echo 1 > /proc/sys/net/ipv4/ip_forward route add default ppp0 ip rule add from 192.168.1.2 table Link0 ip rule add from 192.168.2.1 table Link1 ip rule add from 192.168.2.2 table Link1 ip route add default via 1st.internet.ip dev ppp0 table Link0 ip route add default via 2nd.internet.ip dev ppp1 table Link1 ip route del 3rd.internet.ip table local ip rule add from 192.168.3.1 nat 3rd.internet.ip table main ip route add nat 3rd.internet.ip via 192.168.3.1 table local ip route flush cache Thanks Rami AlZaid <[EMAIL PROTECTED]> * ICQ # 1071118 WebPages: www.alzaid.com * www.kuwait.nu * www.wooyeah.com __________________________________________________ Do You Yahoo!? Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! http://photos.yahoo.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.
