All of lore.kernel.org
 help / color / mirror / Atom feed
* iptables: unknown protocol "!" specified
@ 2015-11-21 20:48 Roger Price
  2015-11-21 20:57 ` Neal P. Murphy
  2015-11-22  8:18 ` Pascal Hambourg
  0 siblings, 2 replies; 6+ messages in thread
From: Roger Price @ 2015-11-21 20:48 UTC (permalink / raw)
  To: Netfilter Users Mailing list

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.

Roger

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-11-22 17:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-21 20:48 iptables: unknown protocol "!" specified Roger Price
2015-11-21 20:57 ` Neal P. Murphy
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

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.