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.
I want to block regular attackers through the iptables. (..) I am using fail2ban.
Fail2ban already contains default configuration for blocking through the firewall. So unless you want change to a different table (raw versus filter) or better performing method (ipset instead of iptables) you don't need to fiddle with iptables rules.
Quote:
Originally Posted by countrydj
it doesn't seem top stop the attacks
You haven't told us what kind of attacks these are, if fail2ban was configured to catch these, what fail2ban logs about attacks and if rules get added to your iptables rule set.
can F2B catch CIFS buffer overflow attack? or an attack that is ingress targeting Flash player?
different tools for different purposes, F2B is just one tool with limitations, etc.
define your requirements for protecting the system, then find the right tool(s).
i am curious to know how you think iptables is stopping "intrusions". if the src IP changes are you still ok?
No. I am not covered.
However, I do have fail2ban running, which stops intrusions.
The reason that I wanted to ban a particular ip number, is that it was persistant in it's attempts. Each time it was banned I got an email telling me. After a couple of weeks of getting a stack of emails, I decided that I wanted to ban the ip number before it got to fail2ban.
I was concerned that if this ip number was persistant enough, it may eventually crack my security. Probably not, but I wanted to be sure.
Dropping it in iptables did that. I don't have any trouble now.
Hope this explains it for you...
if say attacker has a bunch of bots and each bot is executing different piece of the attack (like brute force ssh from a-c on bot1, and d-f on bot2, etc etc), fail2ban is not a 100% useful tool in protecting against this type of attack.
the Q from unSpawn was never answered,,,,,, what type of attacks are you talking about?
the Q from unSpawn was never answered,,,,,, what type of attacks are you talking about?
I didn't look at the logs.
I get an email every time an ip gets banned by fail2ban, and one particular ip number was showing up every time.
When I banned that ip number in iptables, I didn't get any more bans by fail2ban.
Maybe it was the same attacker using different bots, and gave up.
All I was interested in was stopping any attacks being picked up by fail2ban. And that has been achieved.
Hope this explains it better.
Basically, the process is this.
Copy the jail.conf to preserve your settings in case of an update/upgrade to fail2ban.
Any .conf files installed (and even modified) after installation will be lost if/when f2b is upgraded.
It's not too late to copy it now (post install or modify) using
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.