From: Scott MacKay Subject: Re: Altering destination ethernet device Date: Fri, 25 Jun 2004 07:16:28 -0700 (PDT) Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <20040625141628.93477.qmail@web13903.mail.yahoo.com> References: <1088172238.30481.16.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netfilter-devel@lists.netfilter.org Return-path: To: "John A. Sullivan III" In-Reply-To: <1088172238.30481.16.camel@localhost> Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org Cool. I will look at that. I did see some routing type info at http://lartc.org/ (Linux Advanced Routing & Traffic Control), but nothing to the degree of control I wanted. I figured since I am already grabbing packets in netfilter I would see about altering them while I had em :) -Scott --- "John A. Sullivan III" wrote: > On Fri, 2004-06-25 at 09:01, Scott MacKay wrote: > > Hello, > > Sorry if this was asked before by someone, but > is > > it possible to alter the destination interface for > a > > packet? In example, if I have a packet coming in > eth0 > > which could go out either eth1 or eth2, is there > any > > way to force it to eth2? I would be looking for > a > > programming solution because the actual interface > > selected will be based on some critea which is > > programmed. If it is possible, I would likely > select > > the new interface in mangle/POSTROUTING unless it > > needed to be elsewhere. > > This may be better suited to iproute2. To read the > documentation, look > for a file named ip-cref.ps in your distribution. > There is a brief > slide show on using it in the training section at > http://iscs.sourceforge.net but it is directed > towards using it with > FreeS/WAN. I do not know what APIs are available. - > John > -- > Open Source Development Corporation > Financially sustainable open source development > http://www.opensourcedevelopmentcorp.com > > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail