From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Det Buaklee" Subject: RE: iptables: invalid arguement with kernel 2.6.5 Date: Tue, 4 May 2004 19:13:30 +0700 Sender: netfilter-admin@lists.netfilter.org Message-ID: <004d01c431d1$36b194b0$440997cb@GINA> References: <200405041233.52018.Antony@Soft-Solutions.co.uk> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200405041233.52018.Antony@Soft-Solutions.co.uk> 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: netfilter@lists.netfilter.org Thanks guys for pointing out, though I am still confused with the different between -t nat and -t mangle (on the bridge, and I am not doing NAT on my network what options should I use) .. I think am going to read the man page more carefully.. DET -----Original Message----- From: netfilter-admin@lists.netfilter.org [mailto:netfilter-admin@lists.netfilter.org] On Behalf Of Antony Stone Sent: Tuesday, May 04, 2004 6:34 PM To: netfilter@lists.netfilter.org Subject: Re: iptables: invalid arguement with kernel 2.6.5 On Tuesday 04 May 2004 12:00 pm, Det Buaklee wrote: > /sbin/iptables -A PREROUTING -t mangle -i eth0 -p tcp --dport 80 -j > REDIRECT --to-port 8080 > > or > > /sbin/iptables -t mangle -A PREROUTING -m physdev --physdev-in eth0 -p > tcp --dport 80 -j REDIRECT --to-port 8080 > > and iptables just return > > iptables: invalid argument REDIRECT should be done in the nat table, not the mangle table. Antony. -- Software development can be quick, high quality, or low cost. The customer gets to pick any two out of three. Please reply to the list; please don't CC me.