Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
ok i need some help blocking certain ips from trying to access my ftp server. i have like 3 ips that keep trying to access my ftp server, using a script trying diffrent username and password combanations. is there a way of just blocking those ips from accesssing the server at all ?
# Option: failregex
# Notes.: regex to match the password failures messages in the logfile. The
# host must be matched by a group named "host". The tag "<HOST>" can
# be used for standard IP/hostname matching and is only an alias for
# (?:::f{4,6}?(?P<host>\S+)
# Values: TEXT
#
failregex = USER \S+: no such user found from \S* ?\[<HOST>\] to \S+\s*$
# Option: ignoreregex
# Notes.: regex to ignore. If this regex matches, the line is ignored.
# Values: TEXT
#
ignoreregex =
TBH, looking at those links, they aren't *actually* that useful are they? Are you clear on what fail2ban will do for you? should just take all the specifics like ip addresses away from attackers, and continualy block attackers as and when they come in from wherever.
well we're already heading down one valid path, wouldn't change that for no reason... not seen blockhosts myself, doesn't look nearly as versatile as fail2ban. what problems are you actually having with fail2ban?
well i did finnaly got it configed correctly and seems to be working at this time. i did get a email saying that it did ban a ip for unsecsessfull login attemps. I did change the allowed attempt times. Next question i have. i take it it will unban the ip after a certain amount of time, so i am looking for that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.