Linux Netfilter discussions
 help / color / mirror / Atom feed
From: SBlaze <dagent.geo@yahoo.com>
To: netfilter@lists.netfilter.org
Subject: Re: Port Scanner
Date: Wed, 5 Nov 2003 11:19:55 -0800 (PST)	[thread overview]
Message-ID: <20031105191955.89083.qmail@web40207.mail.yahoo.com> (raw)
In-Reply-To: <200311051707.hA5H7qr13228@agate.rockstone.co.uk>

In the interest of sharing.. I'ld like to show how I stop portscanning.

Please take note about this and my method. It's for a NATed network on a home
cable line. If you want to open services to the world they should preceed these
lines. This is a very hard nosed way to stop portscanning and any other types
of connections to your computer. Please note that you may want to add other
protcols to the list as well if you use this method.. such as IGMP etc etc

This does stop any and all of NMAPs cuurrent scans.

# NMAP and Connection killer
#
# iptables -A INPUT -p tcp -i eth0 -m state --state NEW -j LOG
iptables -A INPUT -p tcp -i eth0 -m state --state NEW,INVALID -j DROP
iptables -A INPUT -p tcp -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT

# UDP Filters
#
#iptables -A INPUT -p udp -i eth0 -m state --state NEW,INVALID -j LOG
iptables -A INPUT -p udp -i eth0 -m state --state NEW,INVALID -j DROP
iptables -A INPUT -p udp -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT

# ICMP Filtration
#
iptables -A INPUT -p icmp -i eth0 -m state --state NEW,INVALID -j DROP
iptables -A INPUT -p icmp -i eth0 -m state --state ESTABLISHED,RELATED -j
ACCEPT

SBlaze

=====
In the absence of order there will be chaos.

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


  reply	other threads:[~2003-11-05 19:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-05 16:38 Port Scanner tsh
2003-11-05 17:07 ` Antony Stone
2003-11-05 19:19   ` SBlaze [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-11-05 15:06 tsh
2003-11-05 15:22 ` Antony Stone
2003-11-05 15:25 ` Martín
2003-11-05 14:14 Leandro Takashi Hirano
2003-11-05 14:19 ` Antony Stone
2003-11-05 14:44   ` Leandro Takashi Hirano
2003-11-05 15:15     ` Antony Stone
2003-11-05 14:37 ` Cedric Blancher
2003-11-05 15:15   ` hare ram
2003-11-05 15:28     ` 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=20031105191955.89083.qmail@web40207.mail.yahoo.com \
    --to=dagent.geo@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