Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Disable ssh access for password-guessing bots' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Disable ssh access for password-guessing bots
Authored by: thejoecarroll on Mar 24, '09 06:22:19AM
Thanks very much for this script.

I'd like to suggest the following amendment to avoid needlessly filling up logs with errors even though the script is working normally. To check first if the script already has a rule in place before attempting to delete it, simply replace the line:

s = "ipfw delete 101; "


if (system("ipfw list | cut -d ' ' -f 1 | grep 00101") == 0) {


s = "ipfw delete 00101; ";

} else {

s = "";


[ Reply to This | # ]