From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liu Subject: Re: Purely NAT Date: Tue, 29 Oct 2002 02:37:55 +0800 Sender: netfilter-admin@lists.netfilter.org Message-ID: <20021028183756.34671877D8@defiant.starfleet.net> References: <005401c27e43$73946990$0bc8c80a@dolphin> <200210281444.g9SEime08636@vulcan.rissington.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200210281444.g9SEime08636@vulcan.rissington.net> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: Antony Stone Cc: Netfilter Mailing List On Mon, 28 Oct 2002 14:44:43 +0000 Antony Stone wrote: > On Monday 28 October 2002 5:32 am, yenjet.chan@eglobal.com.my wrote: > > > Hi all, > > > > This is my first post to the list, so please bare with me. > > I have a requirement here. Is there possible to create a purely NAT > > iptables rules for certain IP addresses? > > No. You can turn off stateful inspection by not loading or compiling the > connection tracking support, but you cannot use it for some addresses but not > others. Are you sure? By not using "-m state" it might actually work, how about: iptables -A FORWARD -o ppp0 -s aaa.bbb.ccc.eee -j ACCEPT iptables -A FORWARD -o ppp0 -s aaa.bbb.ccc.ddd -m state --state ! INVALID -j ACCEPT