Portsentry

portsentry from Psionic is a device that can help you determine if your system is being portscanned by nmap or some other portscanning device. All tools in this category do approximately the same thing: they watch the ports on the host looking for activity that is suspicious.

portsentry will run in several different modes as specified on the command line, and only one mode at a time can be used:

where mode is:

The advanced scan, -atcp, will detect all strobe-type connect scans, half-open scans, FIN scans, NULL scans, XMAS scans and UDP scans. Also, it will detect attempts to elicit responses by sending packets with wierd flag configurations.

portsentry installs in a single directory in which you find the executable as well as the configuration files. Typically, you might install in /usr/local/portsentry, or in /etc/portsentry.

Configuring Portsentry

Assuming that portsentry is installed at /etc/portsentry, /etc/portsentry/portsentry.conf is the primary configuration file and the commentary is the actually decent documentation. In this file you specify the parameters for the scans defined above. The more significant parameters defined in the file are: