Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi All, posted this a little while ago but it went missing from the forum, bit strange. I have noticed recently that I have been receiving a lot of SSH bruteforce attacks on my SSH landing server, as a precaution I have enabled google 2 step verification and also installed fail2ban which blocks permanently the IP addresses of the what can only be bots. I have a couple of questions.
Firstly, I have found this website where they publish bruteforce attempt IP addresses from the last 90 days into a text file, I want to use this file to add to a iptables deny rule(s). Do I need to run a cronjob script to import these into the deny list or can I get IP tables to check the IP addresses from the file that has been downloaded (wget via cronjob)?
Last edited by unSpawn; 05-02-2013 at 07:11 PM.
Reason: //Post split ops
posted this a little while ago but it went missing from the forum, bit strange.
No it didn't. You didn't post it at LQ. One hundred per cent sure. Maybe you posted elsewhere.
Quote:
Originally Posted by yodds
Do I need to run a cronjob script to import these into the deny list or can I get IP tables to check the IP addresses from the file that has been downloaded (wget via cronjob)?
Best way would be a daily cron job. (And try ipset instead of gazillions of iptables rules or even worse: /etc/hosts.deny.)
If they are attempting to break in by shoving passwords down your throat, there is your real problem: you have an open avenue shell access to your computer, with only a password standing in the way.
You should be using digital certificates, each one encrypted with a passphrase. You should specifically prohibit the use of password authentication. (Remember that SSH will, quite inexplicably, accept the least powerful identification-mechanism that it has been told that it's permitted to use, so you must block all options except certificates.)
Yes, when you shell into that computer, you won't be asked for a password ... because you're wearing your badge. Only this arrangement can be called "truly secure."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.