Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Sven Schuster <schuster.sven@gmx.de>
To: Det Buaklee <det@dss.go.th>
Cc: netfilter@lists.netfilter.org
Subject: Re: iptables: invalid arguement with kernel 2.6.5
Date: Tue, 4 May 2004 13:58:24 +0200	[thread overview]
Message-ID: <20040504115824.GA5227@zion.homelinux.com> (raw)
In-Reply-To: <002e01c431c7$09cfe910$440997cb@GINA>

[-- Attachment #1: Type: text/plain, Size: 1095 bytes --]


Hi Det,

On Tue, May 04, 2004 at 06:00:40PM +0700, Det Buaklee told us:
> 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

REDIRECT ist only valid in the nat table, not in mangle.


HTH

Sven

-- 
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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      parent reply	other threads:[~2004-05-04 11:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-04 11:00 iptables: invalid arguement with kernel 2.6.5 Det Buaklee
2004-05-04 11:31 ` Angel
2004-05-04 11:33 ` Antony Stone
2004-05-04 12:13   ` Det Buaklee
2004-05-04 11:43 ` Krystian
2004-05-04 11:58 ` Sven Schuster [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040504115824.GA5227@zion.homelinux.com \
    --to=schuster.sven@gmx.de \
    --cc=det@dss.go.th \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox