From: Dirk Morris <dmorris@metavize.com>
To: Patrick McHardy <kaber@trash.net>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: -m physdev iptables: Invalid Argument
Date: Fri, 24 Oct 2003 18:01:55 -0700 [thread overview]
Message-ID: <3F99CB83.1020405@metavize.com> (raw)
In-Reply-To: <3F99C692.90703@trash.net>
Patrick McHardy wrote:
>>
>>
>> ~ # sudo /sbin/iptables -m physdev --physdev-in eth0 -t nat -A
>> PREROUTING -p tcp --destination-port 7:7 -j REDIRECT --to-port
>> 20257 iptables: Invalid
>> argument
>>
>> Could you please just state the command you are using in a clear manner?
>> (and a uname -a)
>>
>
> Yes I do. Just give the proper arguments to matches without òther
> stuff in between (which means physdev arg to phydev match,
> destination-port arg to tcp/udp protocol match, --to-port
> arg to REDIRECT) and try again. If that doesn't work, try to find
> out which of the matches doesn't work and if reordering
> of matches+their arguments helps (I've seen matches only working
> if they were last in command line).
>
~/iptables-1.2.9rc1 # ./iptables
--version
iptables v1.2.9rc1
~/iptables-1.2.9rc1 # uname
-a
Linux timmy 2.6.0-test8 #2 Wed Oct 22 15:14:09 PDT 2003 i686 GNU/Linux
I don't know what else to try at this point.
~/iptables-1.2.9rc1 # sudo ./iptables -t nat -A PREROUTING -m physdev
--physdev-in eth0 -j REJECT
iptables: Invalid argument
~/iptables-1.2.9rc1 # sudo ./iptables -t nat -A PREROUTING -j REJECT -m
physdev --physdev-in eth0
iptables: Invalid argument
At this point, If it actually does work and is just this this hard to
use, I would consider it an interface bug.
Either way, after a quick google, its too hard for other people to get
working also.
But as far as i can tell its not a parsing bug, but iptc_append_entry
returns -1.
next prev parent reply other threads:[~2003-10-25 1:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-24 18:13 -m physdev iptables: Invalid Argument Dirk Morris
2003-10-24 23:41 ` Patrick McHardy
2003-10-25 0:02 ` Dirk Morris
2003-10-25 0:12 ` Patrick McHardy
2003-10-25 0:26 ` Dirk Morris
2003-10-25 0:40 ` Patrick McHardy
2003-10-25 1:01 ` Dirk Morris [this message]
2003-10-25 9:21 ` Willy Tarreau
2003-10-25 9:38 ` Bart De Schuymer
2003-10-25 18:12 ` dmorris
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=3F99CB83.1020405@metavize.com \
--to=dmorris@metavize.com \
--cc=kaber@trash.net \
--cc=netfilter-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.