From: Simon Kowallik <sub@offlineprovider.de>
To: netfilter@lists.netfilter.org
Subject: Bugs in Iptables 1.2.8-20020825
Date: Thu, 07 Nov 2002 21:57:33 +0100 [thread overview]
Message-ID: <3DCAD3BD.7030706@offlineprovider.de> (raw)
Hello list,
I've found a few "old" problems in iptables 1.2.8-20020825.
The use of '-p icmp' should match all IP packets of type icmp,
but instead it only matches type 0.
# iptables -A INPUT -p icmp -j ACCEPT
# iptables -nvL INPUT
Chain INPUT (policy ACCEPT 11197 packets, 881K bytes)
target prot opt in out source
destination
ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
icmp type 0
The use of iptables-save and iptables-restore doesn't work as expected, too.
> iptables -A INPUT -p tcp -j ACCEPT
> iptables -A INPUT -p udp -j ACCEPT
> iptables-save
# Generated by iptables-save v1.2.8-20020825 on Thu Nov 7 21:27:44 2002
*filter
:INPUT ACCEPT [11308:890245]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [12961:1939089]
-A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT
-A INPUT -p tcp -m tcp -j ACCEPT
-A INPUT -p udp -m udp -j ACCEPT
# iptables-save | iptables-restore
iptables-restore v1.2.8-20020825: Unknown arg `0'
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
This error apeared in 1.2.7 too.
I hope the final release of 1.2.8 will not contain this bugs.
I tested this on RedHat 7.3 with:
kernel 2.4.19
iptables v1.2.8-20020825
patch-o-matic-20021003
Regards,
Simon Kowallik
simon@offlineprovider.de
http://offlineprovider.de/site/netfilter/netfilter.php
reply other threads:[~2002-11-07 20:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3DCAD3BD.7030706@offlineprovider.de \
--to=sub@offlineprovider.de \
--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