By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,677 Members | 1,069 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,677 IT Pros & Developers. It's quick & easy.

Trouble with dynamic IP

WhiteRider
P: 37
Hello, I am having some trouble with a guy that has a dynamic IP address. I noticed he is trying to brute-force my SSH account so I used IPtables to drop all incoming packets. The exact command was

iptables -I INPUT -s 84.74.xxx.xxx -j DROP

where x is the rest of his IP. This automatically blocked him. No more activity came from his IP, which is exactly what I want. However 5 minutes later he came back this time with a slightly different IP (the last three numbers had changed).

SO my question is: does anyone know the most effective way to block dynamic IPs from messing around with your computer services?

Thanks
Oct 8 '07 #1
Share this Question
Share on Google+
2 Replies


Motoma
Expert 2.5K+
P: 3,235
Hello, I am having some trouble with a guy that has a dynamic IP address. I noticed he is trying to brute-force my SSH account so I used IPtables to drop all incoming packets. The exact command was

iptables -I INPUT -s 84.74.xxx.xxx -j DROP

where x is the rest of his IP. This automatically blocked him. No more activity came from his IP, which is exactly what I want. However 5 minutes later he came back this time with a slightly different IP (the last three numbers had changed).

SO my question is: does anyone know the most effective way to block dynamic IPs from messing around with your computer services?

Thanks
Take a look at the sourceforge page for DenyHosts, which is exactly what you are looking for.
Oct 9 '07 #2

WhiteRider
P: 37
Take a look at the sourceforge page for DenyHosts, which is exactly what you are looking for.
Thanks, thats helped a lot. I've also found out about a script called sshdfilter. Very useful against SSH dictionary attacks and such too.
Oct 10 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.