Fail2ban scans log files (e.g. /var/log/apache/error_log) and bans IPs that show the malicious signs -- too many password failures, seeking for exploits, etc.

learn more… | top users | synonyms

1
vote
1answer
98 views

Fail2ban fails to start after update?

I have been using fail2ban for a while on my Ubuntu server. Recently (after upgrading to ubuntu 15.04 I assume) fail2ban has been failing to start. Initially, this was because the port option had ...
4
votes
2answers
1k views

vivid - failed to connect to upstart: connection refused

Just updated via do-release-upgrade and now certain upstart jobs such as fail2ban and plexmediaserver will not start (have tried reinstalling) sudo service fail2ban start Job for fail2ban.service ...
0
votes
1answer
48 views

How can I get fail2ban to stop banning my Filezilla SFTP?

When I started with an Ubuntu home server, fail2ban was a lifesaver - alerting me to multiple attempts at unauthorized SSH access to my server. Recently, after moving to a way off port, the only ...
0
votes
0answers
30 views

Update dynamic IP and fail2ban

i have a script running via cron to allow ssh only through some known IP's. Since my Home-IP is dynamically associated i use this script running every 15min: #!/bin/bash ...
0
votes
0answers
179 views

Can You use fail2ban to permanently ban IPs?

I would like to know if fail2ban can be used to permanently ban IP addresses. I recently installed tightvnc server on my PC running Ubuntu server 14.04.1. Often when trying to log in through VNC it ...
0
votes
0answers
93 views

minimal data showing in auth.log

I have locked my server down and to help troubleshoot any holes, I look in the logs, especially auth.log. In the logs, it shows that there are attempts to log in but no data shows. I am not able to ...
2
votes
1answer
676 views

How to easily secure Ubuntu Server [closed]

I'm in the process of learning how to manage a dedicated server. I currently have a server with Ubuntu 14.04. There will only be a game server installed on it, and fall2ban. I was wondering if you ...
2
votes
1answer
818 views

Fail2Ban Regex SSH Will not Match Auth.Log - Searched Everywhere for a Solution

Im trying to get Fail2Ban to work with the SSHD Config provided. When i run fail2ban-regex /var/log/auth.log /etc/fail2ban/filter.d/sshd.conf The Output is as follows ...
1
vote
0answers
80 views

using MAC address for fail2ban

Is it possible to use MAC Address with fail2ban as authentication for logging to ssh, since I am not using a static IP? if not, is there a way to do so?
3
votes
3answers
185 views

How do I tell if my brute force protection (fail2ban) is running?

I'm not sure if my fail2ban is running. How can I tell if it's currently running? Also, how do I tell if it is even running on startup?
1
vote
2answers
510 views

How do you view all of the banned IP's for Ubuntu 12.04 via the command line?

I can't seem to find a quick command to just view all the banned IP's on the server. Or is there a file I can just edit? I'm guessing fail2ban is the one that inputs all the IP's to ban. Where do I ...
1
vote
1answer
569 views

fail2ban: Creating a custom action that gives parameters to script

I'm having a few problems to understand the workflow of fail2ban. My goal is the following action: name: pamysql used to: exec command with <name>, <failures>, <ip>, ... as ...
1
vote
1answer
485 views

Fail2Ban/IPTables & Pure-Ftpd

I have pure-ftpd running on web server with Fail2Ban. Fail2Ban is letting apache2 connections in but are denying any FTP connection from anything but local host. I have attempted to modify the ...
0
votes
2answers
628 views

I can't start deluge with init.d with the ability to log

I try to set fail2ban to ban ip which mistype my password on the deluge-web interface, but I have a problem with the logging. I try to set deluge to log the errors according to this website: ...
0
votes
5answers
4k views

fail2ban or denyhosts to block invalid username login attempts

Is there a way to automatically block IP address when a user tries to login as any invalid username? I already have: [ssh] enabled = true port = ssh filter = sshd logpath = /var/log/auth.log ...
1
vote
1answer
443 views

Configure Fail2Ban with bash script

I'm trying to configure the /etc/fail2ban/jail.local config with an bash script. I was thinking to use sed and regular expression to change the sections I need. sed -i "s/^bantime = 600/bantime = ...
1
vote
1answer
2k views

fail2ban is not sending mail when it bans an ip!

I have configured fail2ban to send me a mail when it bans an IP, but it is not working. I get a message when the jails start and stop but nothing else . I am using ssmtp to send mail via Google Mail. ...
1
vote
1answer
2k views

fail2ban broken after dist upgrade

My fail2ban install is broken after a dist update. I have no idea why it stopped to work. The logfile is over weeks 0 byte. Even if I can see in my server logs that the client should be blocked. Here ...
2
votes
1answer
2k views

How to set fail2ban with apf?

I just installed fail2ban and the apf firewall. Those 2 seems to be not working together. Fail2ban have added some ipatble rules but they are not working. When I issue "/etc/init.d/iptables status" ...
10
votes
2answers
4k views

potential ufw and fail2ban conflicts

Will running both fail2ban and ufw cause problems? I noticed that fail2ban modifies iptables rules, but ufw already has a ton of iptables rules defined... so I'm not sure if fail2ban will mess these ...
1
vote
1answer
285 views

fail2ban doesn't match anything

I'm working on a new build of my FTP server and I can't get the ssh part of fail2ban to match anything. Manually checking with the regex command shows nothing. Pam and proftpd are working fine, just ...
3
votes
1answer
856 views

Fail2ban misses some relay attempts

I have some relay attempts like these in my mail.log (they total 281 connection attempts in less than 3 minutes): May 16 04:58:30 MyServer postfix/smtpd[18950]: connect from unknown[xx.yy.zzz.www] ...
3
votes
2answers
6k views

What are fail2ban's log iptables “returned NNN” entries? (Fail2ban is failing to ban)

In my fail2ban.log there are some entries the meaning of which I don't understand (and haven't found searching around)... I have several "jails", and I have created one particular one that bans IP's ...