From: Roger <roger@efn.org>
To: Sven Schuster <schuster.sven@gmx.de>
Cc: netfilter@lists.netfilter.org
Subject: Re: Portscan logging?
Date: Sun, 13 Oct 2002 18:16:20 -0700 [thread overview]
Message-ID: <20021014011620.GA1572@efn.org> (raw)
In-Reply-To: <3DAA09B7.9040305@gmx.de>
Around Mon,Oct 14 2002, at 02:03, Sven Schuster, wrote:
> Hello everybody,
> are down and the default policy is ACCEPT. But when I put in all my
> rules, the scanlogd doesn't log any portscans from the internet. I think
> that is because the packets are already dropped in the kernel by the
> iptables module, am I right??
>
> And know my question is if there's a chance to log portscans (maybe also
> the different kinds??) via some iptables-rules, an extra iptables-module
> or any other tool?? I hope that somebody knows something about it,
> because I think it's very nice to see how much people try to find holes
> in any system...it's already quite interesting to review the Apache-Logs
> everyday, with peoples thinking there's an IIS running on my system :-)))
use the logging feature.
iptables -I INPUT -t tcp -j LOG --log-prefix "IPTABLES-IN "
would log *any* inbound tcp connection to syslog. Including traffic
you have created (the return of an HTTP or FTP session)
You could pick a couple of ports and set logging on those ports:
iptables -I INPUT -t tcp --dport 80 -j --log-prefix "IPTABLES-IN "
would log any ports that attempt a scan of your port 80. Your outbound
HTTP would not be picked up by this.
I use IN as part of my INPUT log prefix, and OUT as part of my OUTPUT log
prefix, it makes it easier to track.
Roger
--
roger@efn.org
prev parent reply other threads:[~2002-10-14 1:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-14 0:03 Portscan logging? Sven Schuster
2002-10-14 1:16 ` Roger [this message]
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=20021014011620.GA1572@efn.org \
--to=roger@efn.org \
--cc=netfilter@lists.netfilter.org \
--cc=schuster.sven@gmx.de \
/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