From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alessandro Ren Date: Thu, 19 Oct 2006 12:56:52 +0000 Subject: Re: [LARTC] Problem with two providers:Need to route packets on the Message-Id: <45377614.1060704@opservices.com.br> List-Id: References: <000601c6ef81$692240f0$3b66c2d0$%lartc@neuf.fr> In-Reply-To: <000601c6ef81$692240f0$3b66c2d0$%lartc@neuf.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org KORTA wrote: > > Hello, > > > > i would like to know how to resolve a problem. > > > > I have a debian router with 3 interfaces (LAN, and two internet > providers (Provider A, Provider B)). > > > > The default route is configured to use the provider A > > > > The problem is that, > > When an external connection arrives from provider B to an internal > server (with nat), the packet is routed to the default route: > > I explain: > > - A packet arrives from provider B in direction of a internal > server > > - The router performs nat operation > > - The internal server generates a response > > - The router routes the packet on the interface Provider A > > > > Consequently, The connection cannot been established > > > > I want to know if its possible to configure my debian router to route > packets to the interface on which packet arrives. In the example, > packets should have been routed by the interface connected to provider B > > > > If yes, do you know how to do that ? > > > > Thanks. > > > I think tha CONNTRACK solves this problem for you, putting packets that comes in and out, using PREROUTING and POSTROUTING. []s. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc