From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: How to SNAT in PREROUTING table for local machine Date: Fri, 20 Jun 2008 12:22:50 +0200 Message-ID: <485B84FA.9080204@trash.net> References: <004a01c8d204$fb1022e0$1402a8c0@nemesisk7> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <004a01c8d204$fb1022e0$1402a8c0@nemesisk7> Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Tobias Krummen Cc: netfilter@vger.kernel.org Tobias Krummen wrote: > So, is there a way to change the source ip-address of incoming packets > with the given possibilities of netfilter, or are there other tools to > get this done? You need to add an INPUT chain to the NAT table to do this and adjust the HOOK2MANIP macro to deal with this.