From: "Neal P. Murphy" <neal.p.murphy@alum.wpi.edu>
To: Roger Price <roger@rogerprice.org>
Cc: Netfilter Users Mailing list <netfilter@vger.kernel.org>
Subject: Re: iptables: unknown protocol "!" specified
Date: Sat, 21 Nov 2015 15:57:53 -0500 [thread overview]
Message-ID: <20151121155753.0c7e1850@playground> (raw)
In-Reply-To: <alpine.LNX.2.00.1511211917160.3864@maria.rogerprice.org>
On Sat, 21 Nov 2015 21:48:47 +0100 (CET)
Roger Price <roger@rogerprice.org> wrote:
> Hi, I'm reading the iptables tutorial 1.2.2 by Oskar Andreasson at
> https://www.frozentux.net/iptables-tutorial/iptables-tutorial.html where I
> read:
>
> Match -p, --protocol
> Example iptables -A INPUT -p tcp
> Explanation ... This match can also be inversed with the !
> sign, so --protocol ! tcp would mean to match UDP and ICMP.
>
> So I tried it on openSUSE 13.2 and iptables replied:
>
> pinta:~ # iptables -A INPUT --protocol ! icmp
> iptables v1.4.21: unknown protocol "!" specified
> Try `iptables -h' or 'iptables --help' for more information.
>
> Escaping the ! as \! makes no difference. I am doing something wrong.
> Any suggestion as to what it is would be very welcome.
This was changed quite some time ago. The 'infix' notation was removed.
Try "! --protocol icmp".
N
next prev parent reply other threads:[~2015-11-21 20:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-21 20:48 iptables: unknown protocol "!" specified Roger Price
2015-11-21 20:57 ` Neal P. Murphy [this message]
2015-11-21 21:10 ` Roger Price
2015-11-22 8:18 ` Pascal Hambourg
2015-11-22 16:05 ` Roger Price
2015-11-22 17:20 ` Pascal Hambourg
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=20151121155753.0c7e1850@playground \
--to=neal.p.murphy@alum.wpi.edu \
--cc=netfilter@vger.kernel.org \
--cc=roger@rogerprice.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.