The sys admin’s daily grind: PortSentry

Ten Years After

Article from Issue 136/2012
Author(s):

To celebrate 10 years of his column, Charly sets up a sensitive detector that measures the cosmic background radiation of the Internet.

Scanning the ports on a machine belonging to someone else is not generally regarded as an attack. Of course, any serious attack will be preceded by a port scan. Administrators who take their security seriously always take a proactive approach to port scans, such as blocking the IP address that initiated the port scan for an extended period of time. The tool that lets you do this goes by the name of PortSentry [1] and is included in most distributions. The daemon identifies and logs port scans and runs commands after doing so.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Customizing PortSentry

    PortSentry monitors your ports and lets you know when they’ve been scanned.

  • Charly's Column

    Conventional, woodpecker-style port knocking is open to sniffing and brute force knocking attacks. Sending an encrypted packet with an access request to the server is safer and more modern. Learn more about Firewall Knock Operator, a.k.a. Fwknop.

  • Charly's Column

    Some of Charly’s servers run the SSH daemon on port 443 rather than on the standard port 22. If an SSL-capable Apache web server starts causing trouble, his method of settling the dispute is sslh.

  • Charly's Column

    Horror stories are full of scary characters knocking on doors at night. On Linux, we just call this port knocking, and it can actually be quite useful.

  • Tool Tips

    Mobiki wiki engine, jEdit cross-platform text editor, youtube-dl movie downloader, and Inadyn compact DDNS client.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News