From: f0rhum <f0rhum@free.fr>
To: netfilter@vger.kernel.org
Subject: What mean rules with no target?
Date: Tue, 29 Sep 2015 10:22:19 +0200 [thread overview]
Message-ID: <560A4A3B.2030307@free.fr> (raw)
Hi
I have rules in my firewall with no targets. What is this?
iptables -V
iptables v1.3.3
The 3 first lines:
iptables -nvL INPUT
Chain INPUT (policy ACCEPT 9 packets, 2650 bytes)
pkts bytes target prot opt in out source destination
0 0 udp -- eth1 * 0.0.0.0/0 0.0.0.0/0 udp dpt:14305
0 0 udp -- eth1 * 0.0.0.0/0 0.0.0.0/0 udp dpt:4305
926 120K udp -- eth1 * 0.0.0.0/0 0.0.0.0/0 udp dpt:698
1386 154K portfw_INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
1 99 DROP all -- ppp0 * 0.0.0.0/0 0.0.0.0/0 state INVALID
......
The part of script that creates similar lines as the 3rd one near the end:
# Ignore OLSR packets directly from these stations, e.g.
# if this connection is too slow, ignore sporadic packet
IFS=\;
for i in $(nvram get ff_ign); do
iptables -A INPUT -s $i -p udp --dport 698 -j DROP
done
unset IFS
When ff_ign contains semicolon separated list of IPs, same number of rules will be added near the end of INPUT:
DROP sourceIP udp dpt:698
Thank you for suggestions
Fabrice
next reply other threads:[~2015-09-29 8:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-29 8:22 f0rhum [this message]
2015-09-29 10:00 ` What mean rules with no target? Bastian Bittorf
2015-09-30 21:25 ` f0rhum
2015-10-01 4:34 ` What mean rules with no target? / counters Bastian Bittorf
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=560A4A3B.2030307@free.fr \
--to=f0rhum@free.fr \
--cc=netfilter@vger.kernel.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