On 11.13, Con Kolivas wrote:
> On Thu, 13 Nov 2003 22:40, John Allen wrote:
> > On Thursday 13 November 2003 01:50, [EMAIL PROTECTED] wrote:
> > > Hello
> > >
> > > I recently discovered that iptables 1.2.8 nat command does not work fully
> > > in 9.2 on i586
> > >
> > > Something like this:
> >
> > Tried the following with stocck 9.2
> >
> > /sbin/iptables -t nat -A PREROUTING -i eth0 -d 10.0.0.2 -p tcp -m tcp
> > --dport 80 -j REDIRECT --to-port 3128 OK
> >
> > /sbin/iptables -t nat -A PREROUTING -i eth0 -d 10.0.0.2 -p tcp -m tcp
> > --dport 80 -j DNAT --to-destination 192.120.145.123:80 OK
> >
> > > iptables -t nat -A PREROUTING -i eth0 -d xx.xx.xx.xx -p tcp -m tcp
> > > --dport 23 -j DNAT --to-destination yy.yy.yy.yy:23
> 
> Ok. Perhaps it has to do with using a custom kernel (2.6.0-test9 on two boxes 
> and 2.4.23-pre5 on another). I have three boxes with mdk92 here and all give 
> me this:
> 
> iptables -t nat -A PREROUTING -i eth0 -d 10.0.0.2 -p tcp -m tcp --dport 80 -j 
> REDIRECT --to-port 3128
> iptables: Invalid argument
> 

The same happened for me. I use a custom kernel, and since some pre, iptables
stopped working.

But in my case, I just rebuilt the srpms and it worked. I had to change something
in the spec file, because parallel build was broken.

Can you try with iptables packages at:

http://giga.cps.unizar.es/~magallon/linux/rpm/

Hope this helps.

-- 
J.A. Magallon <jamagallon()able!es>     \                 Software is like sex:
werewolf!able!es                         \           It's better when it's free
Mandrake Linux release 10.0 (Cooker) for i586
Linux 2.4.23-rc1-jam1 (gcc 3.3.1 (Mandrake Linux 9.2 3.3.1-4mdk))

Reply via email to