Linux Netfilter discussions
 help / color / mirror / Atom feed
* Portsweep
@ 2008-09-23  6:51 bahamin takhtaei
  2008-09-23 20:36 ` Portsweep Grant Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: bahamin takhtaei @ 2008-09-23  6:51 UTC (permalink / raw)
  To: netfilter

Hi everybody,
Do you know How to use iptables against Portsweep attacks?

Thank you.




      

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Portsweep
  2008-09-23  6:51 Portsweep bahamin takhtaei
@ 2008-09-23 20:36 ` Grant Taylor
  2008-09-24  7:59   ` Portsweep John Haxby
  2008-09-24  8:24   ` Portsweep bahamin takhtaei
  0 siblings, 2 replies; 5+ messages in thread
From: Grant Taylor @ 2008-09-23 20:36 UTC (permalink / raw)
  To: Mail List - Netfilter

On 09/23/08 01:51, bahamin takhtaei wrote:
> Do you know How to use iptables against Portsweep attacks?

There use to be a Port Scan Detection (psd) match extension that would 
help detecting this easier.  I.e. did it look like a system was 
initiating a port scan, and if so, handle it accordingly (drop / reject 
/ tar pit / etc.).  I don't know what the current state of the psd match 
is, so you will have to find out.



Grant. . . .

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Portsweep
  2008-09-23 20:36 ` Portsweep Grant Taylor
@ 2008-09-24  7:59   ` John Haxby
  2008-09-24 13:55     ` Portsweep Grant Taylor
  2008-09-24  8:24   ` Portsweep bahamin takhtaei
  1 sibling, 1 reply; 5+ messages in thread
From: John Haxby @ 2008-09-24  7:59 UTC (permalink / raw)
  To: Mail List - Netfilter

Grant Taylor wrote:
> On 09/23/08 01:51, bahamin takhtaei wrote:
>> Do you know How to use iptables against Portsweep attacks?
>
> There use to be a Port Scan Detection (psd) match extension that would 
> help detecting this easier.  I.e. did it look like a system was 
> initiating a port scan, and if so, handle it accordingly (drop / 
> reject / tar pit / etc.).  I don't know what the current state of the 
> psd match is, so you will have to find out.
FWIW, my Netgear DG834N has this in a chain called DOS:

SCAN       all  --  anywhere             anywhere           psd weight-threshold: 21 delay-threshold: 300 lo-ports-weight: 3 hi-ports-weight: 1



Netgear make their source available so you could try looking there.

jch

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Portsweep
  2008-09-23 20:36 ` Portsweep Grant Taylor
  2008-09-24  7:59   ` Portsweep John Haxby
@ 2008-09-24  8:24   ` bahamin takhtaei
  1 sibling, 0 replies; 5+ messages in thread
From: bahamin takhtaei @ 2008-09-24  8:24 UTC (permalink / raw)
  To: netfilter


Thanks for your attention,
but unfortunately psd match doesn't handle portsweep attacks.
It only handles portscan attacks; as you know in portscan an 
attacker scans many ports on a specific destination, but in 
portsweep attacker scans a few ports on many destinations.



--- On Tue, 9/23/08, Grant Taylor <gtaylor@riverviewtech.net> wrote:
From: Grant Taylor <gtaylor@riverviewtech.net>
Subject: Re: Portsweep
To: "Mail List - Netfilter" <netfilter@vger.kernel.org>
Date: Tuesday, September 23, 2008, 4:36 PM

On 09/23/08 01:51, bahamin takhtaei wrote:
> Do you know How to use iptables against Portsweep attacks?

There use to be a Port Scan Detection (psd) match extension that would 
help detecting this easier.  I.e. did it look like a system was 
initiating a port scan, and if so, handle it accordingly (drop / reject 
/ tar pit / etc.).  I don't know what the current state of the psd match 
is, so you will have to find out.



Grant. . . .
--
To unsubscribe from this list: send the line "unsubscribe netfilter"
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



      

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Portsweep
  2008-09-24  7:59   ` Portsweep John Haxby
@ 2008-09-24 13:55     ` Grant Taylor
  0 siblings, 0 replies; 5+ messages in thread
From: Grant Taylor @ 2008-09-24 13:55 UTC (permalink / raw)
  To: Mail List - Netfilter

On 09/24/08 02:59, John Haxby wrote:
> FWIW, my Netgear DG834N has this in a chain called DOS:
> 
> SCAN       all  --  anywhere             anywhere           psd 
> weight-threshold: 21 delay-threshold: 300 lo-ports-weight: 3 
> hi-ports-weight: 1
> 
> Netgear make their source available so you could try looking there.

I was wondering if it was not possible to make the psd match have a wild 
card in it like a netmask that would drop some of the least significant 
bits thus watching a larger range (network).  It looks like it might 
indeed do that.



Grant. . . .

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-09-24 13:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-23  6:51 Portsweep bahamin takhtaei
2008-09-23 20:36 ` Portsweep Grant Taylor
2008-09-24  7:59   ` Portsweep John Haxby
2008-09-24 13:55     ` Portsweep Grant Taylor
2008-09-24  8:24   ` Portsweep bahamin takhtaei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox