From: Ian Morgan Subject: Re: How to send all packets to a router Date: Sun, 6 Apr 2003 00:40:32 -0500 (EST) Sender: netfilter-admin@lists.netfilter.org Message-ID: References: <3C792059.865B267B@acabtu.com.mx> <200302242211.38647.netfilter@newkirk.us> Mime-Version: 1.0 Return-path: In-Reply-To: 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" Content-Transfer-Encoding: 7bit To: John Covici Cc: netfilter@lists.netfilter.org On Mon, 31 Mar 2003, John Covici wrote: > iptables -t nat -A POSTROUTING -o eth1 -j SNAT -p tcp --sport 25 --to > iptables -t nat -A POSTROUTING -o ppp0 -j SNAT --to > > I thought I would need something for the output chain as well, but I > kept getting invalid argument when I tried to put the same rule into > the output chain like the one I put into the POSTROUTING chain. > > So what am I doing wrong here? I've noticed that for every release in the 2.4.21-pre series, I have to rebuild iptables, otherwise I get "invalid argument" on the SNAT rules. _VERY_ annoying. A simple rebuild solves the prob though. Regards, Ian Morgan -- ------------------------------------------------------------------- Ian E. Morgan Vice President & C.O.O. Webcon, Inc. imorgan@webcon.ca PGP: #2DA40D07 www.webcon.ca * Customized Linux network solutions for your business * -------------------------------------------------------------------