From: netfilter@buglecreek.com
To: netfilter@vger.kernel.org
Subject: Port Scan Detection
Date: Wed, 04 May 2011 15:16:48 -0600 [thread overview]
Message-ID: <1304543808.31120.1448324677@webmail.messagingengine.com> (raw)
I have seen these rules used to detect a port scan:
iptables -A INPUT -i $INTERFACE --proto tcp --tcp-flags SYN,ACK,FIN,RST
RST -j LOG --log-prefix "PORT SCAN: " --log-level 6
iptables -A INPUT -i $INTERFACE --proto tcp --tcp-flags SYN,ACK,FIN,RST
RST -j DROP
It seems to me that this is a legitimate TCP flag combination, unless
I'm reading the rule wrong. When I add them to the top of my ruleset
with other invalid TCP Flag rules, the above two rules seem to fire
fairly frequently. What about this rule detects a port scan? I have a
rule that accepts established and related states. The rules seem to
fire mostly on legitimate ldap connections.
next reply other threads:[~2011-05-04 21:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-04 21:16 netfilter [this message]
2011-05-04 22:42 ` Port Scan Detection Jan Engelhardt
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=1304543808.31120.1448324677@webmail.messagingengine.com \
--to=netfilter@buglecreek.com \
--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 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.