From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: netfilter@lists.netfilter.org
Subject: Re: creating one rule for both tcp and udp?
Date: Sat, 26 Aug 2006 20:47:41 +0200 [thread overview]
Message-ID: <44F0974D.3060705@plouf.fr.eu.org> (raw)
In-Reply-To: <44EF3A8C.6000004@ncemch.org>
Hello,
Matt Singerman a écrit :
>
> -A FORWARD -s 0/0 -d 141.161.111.203 -p all --dport 548 -j ACCEPT
>
> iptables v1.3.5: Unknown arg `--dport'
>
> I am guessing that is because "-p all" include ICMP, which doesn't take
> the --dport argument. Am I wrong about that?
It's a little more complicated than that. It's not that ICMP or other
protocols don't take the --dport argument. Actually --dport is valid
only with the "-m tcp" and "-m udp" matches, which in turn are only
valid with - and implicitly created by - "-p tcp" and "-p udp" respectively.
prev parent reply other threads:[~2006-08-26 18:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-25 17:59 creating one rule for both tcp and udp? Matt Singerman
[not found] ` <265CD2F3F15DEDF58A73A320@localhost>
2006-08-25 18:05 ` Matt Singerman
2006-08-26 18:47 ` Pascal Hambourg [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=44F0974D.3060705@plouf.fr.eu.org \
--to=pascal.mail@plouf.fr.eu.org \
--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 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.