-
How I Ban I.P. Addresses From My Network
0October 16th, 2007Hmmmm Things, QuickiesEvery day my dedicated server automatically sends me a “LogWatch” email run at 4:00am every morning. For the most part, there is not much in there to worry about.
However, on some occassions I receive some details such as the following:
sshd:
Authentication Failures:
unknown (66.221.196.201): 6083 Time(s)
~~
etcWhat I do is use my PuTTy program (to access SSH) and post ..
iptables -I INPUT -s 66.221.196.201 -j DROP
… and voila – that IP is permanently banned from accessing anything on my server, or in technical terms denies a specific host from accessing my gateway!
It’s a neat trick my server Tech Support taught me to do – and, it works. I wish I was more technically adept at stuff like this, but with a blog .. it’s easier to post about something and search for it later, than find a stickum on my office wall fall down behind my desk onto the floor!
So, if you knew about this – nothing new to see here~! In the meantime, welcome to my new stickum site! hehe
These Posts May (or may not) Be Related!