From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rimas" Date: Mon, 09 Sep 2002 15:19:21 +0000 Subject: [LARTC] routing to 2 different Internet connections MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_015A_01C2581C.A7DFDD30" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_015A_01C2581C.A7DFDD30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi folks, I have iptables rules: iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE iptables -A POSTROUTING -t nat -o eth2 -j MASQUERADE That will masquerade all packets going out of the two external = interfaces. How to make a routing with iproute2 to direct packets from=20 10.105.105.100-105 via eth0 and to direct packets from the rest of and 10.105.105.0/24 via eth2 ? Thanks in advance Rimas ------=_NextPart_000_015A_01C2581C.A7DFDD30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi folks,
 
I have iptables rules:
iptables -A=20 POSTROUTING -t nat -o eth0 -j MASQUERADE
iptables -A POSTROUTING -t = nat -o=20 eth2 -j MASQUERADE
That will masquerade all packets going out of the = two=20 external interfaces.

How to make a routing with iproute2 to = direct=20 packets from
10.105.105.100-105 via eth0 and to direct packets from = the rest=20 of and
10.105.105.0/24 via eth2 ?

Thanks in advance
 
Rimas
 
------=_NextPart_000_015A_01C2581C.A7DFDD30-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/