From mboxrd@z Thu Jan 1 00:00:00 1970 From: /dev/rob0 Subject: Re: relocating packets Date: Thu, 13 Oct 2005 08:35:47 -0500 Message-ID: <200510130835.47747.rob0@gmx.co.uk> References: <434E2DFD.8030909@ufl.edu> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <434E2DFD.8030909@ufl.edu> Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.netfilter.org On Thursday 2005-October-13 04:50, Mark Oden wrote: > Assuming I had two NICs in my machine that happen to be on the same > network, is there a way to force packets of certain ports to use only > one NIC or IP? I believe this scenario is covered by the LARTC HOWTO. In brief: use "-j MARK --set-mark 0xff" in mangle. Use dual routing tables, and a rule to put "fwmark 0xff" traffic in the alternate table. The mark can be anything from 0x0 to 0xffff. http://lartc.org/howto/ -- mail to this address is discarded unless "/dev/rob0" or "not-spam" is in Subject: header