From: azeredo@qmc.ufsc.br Date: Mon, 08 Sep 2003 14:54:35 +0000 Subject: [LARTC] source routing question Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Hi, I have the following situation to handle: a linux box is a firewall and r= outer of my internal network (192.168.1.0/24). This firewall is connected to the= net through two network cards that connect to two different gateways. A picture= of the situation is the following: ________ +------------+ / | | | +-------------+ Provider 1 +------- __ | | | / ___/ \_ +------+-------+ +------------+ | _/ \__ | if1 | / / \ | | | | Local network -----+ Linux router | | Internet \_ __/ | | | \__ __/ | if2 | \ \___/ +------+-------+ +------------+ | | | | \ +-------------+ Provider 2 +------- | | | +------------+ \________ In the intranet (that is NATED) i have two services, web and a specific ser= vice connected to a private protocol. Lets say that some client connects from t= he net to my web server comming from one of the providers. The package is then redirected to the server in the intranet by the linux box. So how do I make= sure ( i am using iproute and iptables) that the answer by the server( web) whe= n it reaches the linux box gets sent through the same provider the request came from? I can make it work for requests that stop at the firewall, but not fo= r the ones that go into the intranet. If I mark the packages (using the mangle table) that are redirected to the web server does it happen that the mark c= omes back together with the answer from the web so that I could send them throug= h the right gateway?=20 Thanks in advance for your atention, Aldrovando Lu=EDs Azeredo ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/