From: Amin Azez Subject: Re: change next hop or destination MAC after routing Date: Tue, 19 Jun 2007 13:12:01 +0100 Message-ID: <4677C811.6030707@ufomechanic.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org To: pankaj jain Return-path: In-Reply-To: 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 * pankaj jain wrote, On 19/06/07 12:06: > Hi, > > In machine generated packets, can I change the next hop OR destination > MAC after routing? > Is it possible to do this in POSTROUTING table of iptables or ebtables? > > Do we have any other technique to achieve the same? Any utility / > patch / kernel change etc ? The "route" match might achieve this for you; it works though by transmitting the packet instantly and may skip any remaining rules depending on how you use it. Or maybe you could use ebtables DNAT, I suspect that is a better way. You could use a packet mark to communicate this intent to ebtables. Sam