iptables: invalid arguement with kernel 2.6.5
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
on the mangle table?
i think it should be on the nat table?
Quoted 23 lines · Det Buaklee
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 8080or
/sbin/iptables-t mangle -A PREROUTING -m physdev --physdev-in eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080and iptables just return
iptables: invalid argument
Any help or pointer to some documents would be much appreciated.
Det Buaklee
Signature · 6 lines
-------------------------------------------------------- Angel J. Alvarez Miguel Sección de Sistemas, Servicio de Explotación Servicios Informaticos, Universidad de Alcalá Tfno: +34 91 885 47 04, Fax: +34 91 885 51 11 --------------------------------------------------------
Quoted 11 lines · Det Buaklee
/sbin/iptables-A PREROUTING -t mangle -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080or
/sbin/iptables-t mangle -A PREROUTING -m physdev --physdev-in eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080and iptables just return
iptables: invalid argument
REDIRECT should be done in the nat table, not the mangle table.
Antony.
Signature · 6 lines
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.Quoted 28 lines · Det Buaklee
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 8080or
/sbin/iptables-t mangle -A PREROUTING -m physdev --physdev-in eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080and iptables just return
iptables: invalid argument
Quoted 6 lines
Any help or pointer to some documents would be much appreciated.
Det Buaklee
bad table "mangle". try using diffrent for example nat.
Hi Det,
On Tue, May 04, 2004 at 06:00:40PM +0700, Det Buaklee told us:
Quoted 16 lines
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 8080or
/sbin/iptables-t mangle -A PREROUTING -m physdev --physdev-in eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
Quoted 7 lines
and iptables just return
iptables: invalid argument
Any help or pointer to some documents would be much appreciated.
Det Buaklee
REDIRECT ist only valid in the nat table, not in mangle.
HTH
Sven
Signature · 2 lines
Linux zion 2.6.6-rc1 #1 Sat Apr 17 11:50:12 CEST 2004 i686 athlon i386 GNU/Linux 13:57:45 up 13 days, 18:47, 1 user, load average: 0.03, 0.04, 0.06
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: [email protected] [mailto:[email protected]] On Behalf Of Antony Stone
Sent: Tuesday, May 04, 2004 6:34 PM
To: [email protected]
Subject: Re: iptables: invalid arguement with kernel 2.6.5
Quoted 11 lines · Det Buaklee
/sbin/iptables-A PREROUTING -t mangle -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080or
/sbin/iptables-t mangle -A PREROUTING -m physdev --physdev-in eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080and iptables just return
iptables: invalid argument
REDIRECT should be done in the nat table, not the mangle table.
Antony.
Signature · 8 lines
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.