Port scan detection in ipfw2

Khoi Dinh khoi at oddworld.com
Thu Jun 10 20:37:51 GMT 2004


Excellent!  This is what I need.  The hint leads me to changing
"net.inet.icmp.icmplim" accordingly.

Thanks!
Khoi 

-----Original Message-----
From: Chuck Swiger [mailto:cswiger at mac.com] 
Sent: Thursday, June 10, 2004 1:00 PM
To: khoi at oddworld.com
Cc: freebsd-stable at freebsd.org
Subject: Re: Port scan detection in ipfw2

Khoi Dinh wrote:
> This is a repost and I was hoping there might be a solution to this.  
> I was wondering if ipfw2 has the ability to detect port scan like 
> iptables with the psd module.  I'm looking for a kernel-based 
> solution, not app-based like portsentry.

ipfw performs packet inspection and it can certainly recognize the traffic
associated with a port scan, yes.  The kernel provides support for limiting
the generation of ICMP error messages, which is what happens when someone
port scans a bunch of closed ports.  What else did you want to do?

> Also, is ipfw2 able to allow/disallow traffic according to time? ie. 
> If I wanted to allow http traffic only from 9am to 1pm, can I do this 
> with ipfw?

IPFW and IPFW2 have no notion of time, but one could very easily use cron to
change your firewall rulesets at specific times in order to accomplish what
you've asked for.

--
-Chuck




More information about the freebsd-stable mailing list