From: Chris Brenton <cbrenton@chrisbrenton.org>
To: Tarmo Lehtpuu <tarmo@ping.ee>
Cc: netfilter@lists.netfilter.org
Subject: Re: tcp-reset not working for some ports?
Date: 31 Oct 2003 05:47:33 -0500 [thread overview]
Message-ID: <1067597253.1137.24.camel@valhalla> (raw)
In-Reply-To: <1067482221.4835.32.camel@ettan.ping.ee>
On Wed, 2003-10-29 at 21:50, Tarmo Lehtpuu wrote:
>
> I'm having problems properly closing all ports (I don't want a
> "stealthy" firewall).
"Stealthy" is a myth, but we will not start that flame war. ;-)
> When doing a portscan with nmap the following ports show up
> as being filtered:
> 1:13, 135:139, 445, 1080, 444 (tcp)
I've run into this myself. Make sure you have:
CONFIG_IP_NF_TARGET_REJECT
enabled within the kernel. You might also wish to sniff outside the
firewall (right on the nmap system is OK) to ensure that you are
actually sending back TCP resets.
> -A INPUT -i eth0 -p icmp -m icmp --icmp-type 3 -j ACCEPT
> -A INPUT -i eth0 -p icmp -m icmp --icmp-type 11 -j ACCEPT
> -A INPUT -i eth0 -p icmp -m icmp --icmp-type 0 -j ACCEPT
As a side note, the above lines are not needed as you are accepting back
"RELATED" traffic. The above lines will let in _all_ type 0's, 3's &
11's, even bogus ones. The RELATED specification will only let in
legitimate ICMP errors so you are better off removing these lines.
HTH,
C
prev parent reply other threads:[~2003-10-31 10:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-30 2:50 tcp-reset not working for some ports? Tarmo Lehtpuu
2003-10-31 10:47 ` Chris Brenton [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=1067597253.1137.24.camel@valhalla \
--to=cbrenton@chrisbrenton.org \
--cc=netfilter@lists.netfilter.org \
--cc=tarmo@ping.ee \
/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.