From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Det Buaklee" Subject: iptables: invalid arguement with kernel 2.6.5 Date: Tue, 4 May 2004 18:00:40 +0700 Sender: netfilter-admin@lists.netfilter.org Message-ID: <002e01c431c7$09cfe910$440997cb@GINA> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002F_01C43201.B62EC110" Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: netfilter@lists.netfilter.org This is a multi-part message in MIME format. ------=_NextPart_000_002F_01C43201.B62EC110 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Hi I am very new in configuring iptables with bridge software. I want to do a transparent proxy with iptables and squid and running a firewall bridge on the squid box. I have upgraded my kernel to 2.6.5 (to get the firewall-bridge) and I have already tried compiled iptables 1.2.9 with the kernel src directory. My problem is when I tried something like /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 Any help or pointer to some documents would be much appreciated. Det Buaklee ------=_NextPart_000_002F_01C43201.B62EC110 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

Hi

 

I am very new in configuring iptables with = bridge software. I want to do a transparent proxy with iptables and squid and running a firewall bridge on the squid box. I have = upgraded my kernel to 2.6.5 (to get the firewall-bridge) and I have already tried = compiled iptables 1.2.9 with the kernel src directory. My problem is when I tried something like =

 

/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

 

Any help or pointer to some documents would be much appreciated. =

 

Det Buaklee

------=_NextPart_000_002F_01C43201.B62EC110--