From: Amin Azez Subject: Re: Per-client NAT routing -- possible? Date: Fri, 24 Mar 2006 12:24:02 +0000 Message-ID: <4423E4E2.9030303@ufomechanic.net> References: <51e5f6120603220916v3c536afamdb3023563866397d@mail.gmail.com> <51e5f6120603221849p2da80ec5nb49ae81d7ae93d8f@mail.gmail.com> <44227366.60106@ufomechanic.net> <4422E869.8020108@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: To: Patrick McHardy In-Reply-To: <4422E869.8020108@trash.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Patrick McHardy wrote: > Amin Azez wrote: > >>>Could someone please point me in the right direction? Or is this not >>>possible? >> >> >>I think you can use ipt_route to select the output gateway or interface, >>NAT should then work after that. > > > That sounds rather hackish. The normal way to do something like that > is to use normal multipath routes and, if NAT to different IPs needs > to be used, CONNMARK to bind connections to one of the paths. Respecting your experience and acknowledging my ignorance, but THAT seems like the hacky way to me. I realise most of the world thinks I'm wrong, I merely offer this insight into the strangeness of the "other" persons mind. I guess I do it this way because I do a lot of bridging. Sam