From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stanislav Nedelchev Date: Tue, 26 Apr 2005 15:46:13 +0000 Subject: [LARTC] (no subject) Message-Id: <4858177605042608465320fea1@mail.gmail.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org ------------------ ---------| external ip eth0 | ---------- -------------------------- | |--------------------------- | -------| Internal IP eth1 | -------------------------- | |-------------------------- ---------| external Ip eth2 | ---------- -------------------------- i want to put web and ftp traffic to eth2 and all other traffic to eth0 is it possible can anybody help me to do that here is my config iptables -t nat -A POSTROUTING -o eth2 -s 192.168.0.0/0 -d ! 192.168.0.0/16 -p tcp --dport 80 -j SNAT --Extermal IP on Eth2 iptables -t nat -A POSTROUTING -o eth0 -s 192.168.0.0/0 -d ! 192.168.0.0/16 -j SNAT --External IP on Eth0 213.32.208.248 0.0.0.0 255.255.255.248 U 0 0 0 eth0 213.32.208.248 0.0.0.0 255.255.255.248 U 0 0 0 ipsec0 192.168.5.0 213.32.208.249 255.255.255.0 UG 0 0 0 ipsec0 217.10.130.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2 192.168.128.0 213.32.208.249 255.255.255.0 UG 0 0 0 ipsec0 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 192.168.32.0 213.32.208.249 255.255.240.0 UG 0 0 0 ipsec0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 213.32.208.249 0.0.0.0 UG 1 0 0 eth0 0.0.0.0 217.10.130.1 0.0.0.0 UG 2 0 0 eth2 Thanks is Advance _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc