Re: Differences between closed and filtered ports
From: simon chan (simon@redsentry.net)Date: 11/19/01
- Previous message: gregory@gregory.wox.org: "Re: IIS Hack Attempt"
- In reply to: Golden_Eternity: "RE: Differences between closed and filtered ports"
- Next in thread: Golden_Eternity: "RE: Differences between closed and filtered ports"
- Reply: Golden_Eternity: "RE: Differences between closed and filtered ports"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "simon chan" <simon@redsentry.net> Subject: Re: Differences between closed and filtered ports To: "Golden_Eternity" <bhodi_jabir@yahoo.com>, "Bandi" <05.08@web.de>, <SECURITY-BASICS@SECURITYFOCUS.COM> Date: Mon, 19 Nov 2001 11:35:38 +0800 Message-ID: <web-1050009@redsentry.net>
Hi,
> > I recently thought about the following. If a port is
> closed the host
> > refuses the connection. What does the host exactly
> response?
>
> It sends a reset.
Correct if I'm wrong, but the host would respond with FIN,
ACK.
Client sync--> host
client <--sync,ack host
cllent ack---> host
(if host port is closed )
client <---fin,ack host
client ack---> host
client rst---> host
>
> > Is it necessary that the host responses on a closed
> port (couldn't that be
> > managed in some way with timeouts)?
>
> If the host is alive it sends back a reset so that you
> don't have to wait
> for the timeout, otherwise the application would be
> stalled waiting for the
> timeout.
>
> > Could you suggest a way to make ipchains act like a
> port was closed when
> > filtering it, so that a portscanner from certain
> machines wouldn't notice
> > the firewall?
>
> Use '-j REJECT' instead of '-j DROP'.
>
> For more info on this subject you can see my paper
> "Firewall rule exposure
> on ACK based filters" (http://www.bhodisoft.com/Sec/ba-2001-02.html)
> but
> your best bet is one of Fyodor's papers on how nmap
> (http://www.insecure.org/nmap/) works.
>
> -G_E
>
>
"Security of information is an illusion.
What is in one's mind gets into the collective consciousness
(akasha),
so that can be read with meditation ;-) You don't have to
hack.
Just 'remember'! You're the one."
- Previous message: gregory@gregory.wox.org: "Re: IIS Hack Attempt"
- In reply to: Golden_Eternity: "RE: Differences between closed and filtered ports"
- Next in thread: Golden_Eternity: "RE: Differences between closed and filtered ports"
- Reply: Golden_Eternity: "RE: Differences between closed and filtered ports"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|