Securing and Optimizing Linux: RedHat Edition -A Hands on Guide | ||
---|---|---|
Prev | Chapter 14. Software -Security/Monitoring | Next |
The PortSentry program can be configured in six different modes of operation, but be aware that only one protocol mode type can be started at a time. To be more accurate, you can start one TCP mode and one UDP mode, so two TCP modes and one UDP modes, for example, doesn't work. The available modes are:
basic port-bound TCP mode
basic port-bound UDP mode
Stealth TCP scan detection
Advanced TCP stealth scan detection
Stealth UDP scan detection
Advanced Stealth UDP scan detection
In my case I prefer to start TCP in Advanced TCP stealth scan detection protocol mode and UDP in Stealth UDP scan detection protocol mode. For information about the other protocol modes, please refer to the README.install and README.stealth file under the PortSentry source directory. For TCP mode I choose:
Advanced TCP stealth scan detection mode
For UDP mode I choose:
Stealth UDP scan detection mode
To start PortSentry in the two modes selected above, use the commands:
[root@deep] /# /usr/psionic/portsentry/portsentry -atcp [root@deep] /# /usr/psionic/portsentry/portsentry -sudp |
: You can add the above lines to your /etc/rc.d/rc.local script file and PortSentry software will be automatically started if you reboot your system.
These are the files Installed by Portsentry on your system:
/usr/psionic |
/usr/psionic/portsentry |
/usr/psionic/portsentry/portsentry.conf |
/usr/psionic/portsentry/portsentry.ignore |
/usr/psionic/portsentry/portsentry |