This script closely echoes previous scripts we put out to check on web server status and check on network server port-health insofar as the end result is concerned. It should run fairly simply, too (you'll probably just need to change the target host, target port and, possibly, the location of the ping command, and its arguments, to suit your taste - or have those all fed to the script from the command line using the @ARGV array): Knowing the status of open ports on your computer is a good basic secure habit all Linux users should do. I use Nmap for all my port scanning needs but I found this simple port scanning script to be something to learn from. Have you wrote any good simple scripts to help your machines security? . The link for this article located at Linux Shell Account is no longer available. . Enhance your network's safety by monitoring port activity on Linux through this Perl CGI scripting tutorial.. Port Monitoring, Perl Scripts, Network Security, CGI on Linux. . Bill Locke
When ten plus people are yelling at you at the same time, who do you listen to? It wouldn't matter if everyone was yelling out the scores from yesterday's ball game, however, what if they were yelling about which box / server / service is down? Organize and get your battle plan set by having Nagios sort it all out for you. In fact, make sure everything is working properly with a secured SSH server first and you'll have an easier time bouncing around your network to mitigate any damages. . There isn't an easy and automated way to monitor open ports in Red Hat Enterprise Linux 5 (RHEL 5), says the author of Hardening Linux, James Turnbull. However, you can scan with some handy open source tools. Turnbull recommends using hardscan, a Netstat-based tool, if you think you have been compromised. The link for this article located at Linux Today is no longer available. . Learn how to track active ports in RHEL 5 through Nagios, configure SSH servers, and utilize efficient open-source solutions.. Nagios,BMC Patrol,Port Monitoring,RHEL 5,Open Source Tools. . LinuxSecurity.com Team
Get the latest Linux and open source security news straight to your inbox.