From: Tasha Smith <natasha3641@yahoo.com>
To: netfilter@lists.netfilter.org
Subject: Logging Portscans
Date: Mon, 21 Oct 2002 02:39:12 -0700 (PDT) [thread overview]
Message-ID: <20021021093912.87487.qmail@web40709.mail.yahoo.com> (raw)
Hii,
I was wandering why iptables is NOT logging to my /var/log/messages/ NMAPS
stealth port scans or when i telnet any port?. Here are what the first part of
my rules look like. How can u add some rules soo i can see (LOG) all ports scans
or connection attemps on my machine????
iptables 1.2.7
kernel 2.4.19
iptables --flush
iptables -t nat --flush
iptables -t mangle --flush
iptables -A INPUT -i lo -j ACEPT
iptables -A OUTPUT -o lo -j ACCEPT
# I tryed to put in a logging rule here and it didnt log the port scan!
iptables -A INPUT -i eth0 -p tcp \
--dport 111 -j LOG-prefix "DROP sunrpc: "
iptables --policy INPUT DROP
iptables --policy FORWARD DROP
iptables --policy OUTPUT ACCEPT
# I tryed a LOG Policy here too like this!
iptables -i INPUT -p tcp -j LOG --log-prefix "log-tcp-test: "
iptables -A INPUT -m state --state ESTABLSIHED,RELATED -j ACCEPT
iptables -A FOWARD -m state --state ESTABLSIHED,RELATED -j ACCEPT
iptables -A OUTPUT -m state --state ESTABLSIHED,RELATED -j ACCEPT
And then after this i have all stuff that is allowed on my machine like DNS,
DHCP, and my forwarding rules!
__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/
next reply other threads:[~2002-10-21 9:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-21 9:39 Tasha Smith [this message]
2002-10-21 9:52 ` Logging Portscans netfilter
2002-10-21 11:18 ` Nick Drage
2002-10-21 11:27 ` Antony Stone
-- strict thread matches above, loose matches on Subject: below --
2002-10-21 10:15 Ferry van Steen
2002-10-21 23:33 Tasha Smith
2002-10-22 10:14 ` Antony Stone
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=20021021093912.87487.qmail@web40709.mail.yahoo.com \
--to=natasha3641@yahoo.com \
--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