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.
My website is USA based and offers a local service. My apache logs are filled with attacks from Korea, Germany, Russia, ... The fewer automated attacks i see in my logs, the happier i am.
What is the best way to ban blocks of IP addresses - meaning what option has the best performance. I do not want to bring my server down to a crawl.
Ways I have found (please suggest others too)
* iptables
* mod_security 1.9
* mod_access
It sounds like you want to block IP addresses based on perceived attacks.
There are several packages that will automatically maintain iptables for you, based on attack patterns. "snort" might be the most prominent freely available package that does this (www.snort.org). Another package, "ipcop" is a package that includes snort, and wraps everything in a GUI to ease the whole thing for the end-user.
I use the iptables save/restore mechanisms because I'm an old gheezer. But I am considering snort to help detect attacks and add short-term rules to thwart them.
i'd like a smart way to do it because a banlist with 20K lines of ip masks is
ipcop is a firewall distro, i only have 1 box so i can't use it.
snort looks nice but i did not see anything that interfaces with iptables (at least a few months ago). there was something to change snort rules to modsec rules, not sure how production ready it is.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.