| Author |
Message |
jaythebull
Joined: 06 Apr 2010
Posts: 3
|
| Posted: Tue Apr 06, 2010 1:18 pm Post subject: Fail2Ban Errors |
|
|
I am seeing these errors more frequently in the fail2ban.log This is a new setup - Ubuntu 8.04. No LAMP stack installed.
fail2ban.actions.action: ERROR iptables -n -L INPUT | grep -q fail2ban-ssh returned 100
fail2ban.actions.action: CRITICAL Unable to restore environment |
|
| Back to top |
|
jaythebull
Joined: 06 Apr 2010
Posts: 3
|
| Posted: Tue Apr 06, 2010 3:50 pm Post subject: |
|
|
I think I found part of the problem. It didn't look like IPTABLES was installed. Is it not installed as part of the package in Ubuntu 8.04?
when I issued the command iptables -L
I got back:
-bash: iptables: command not found
I ran:
apt-get install iptables
Then restarted Fail2Ban - I'll see if that clears up my fail2ban.log |
|
| Back to top |
|
Guspaz
Joined: 26 May 2009
Posts: 1147
Location: Montreal, QC
|
| Posted: Wed Apr 07, 2010 3:09 pm Post subject: |
|
|
It's recommended, not required:
http://packages.ubuntu.com/hardy/fail2ban
It looks like it was required in dapper (7.10), but changed to recommended in 8.04 and all later releases. |
|
| Back to top |
|
jaythebull
Joined: 06 Apr 2010
Posts: 3
|
| Posted: Wed Apr 07, 2010 3:12 pm Post subject: |
|
|
| Thanks Guspaz. It (iptables) eliminated the errors I was seeing in the log for fail2ban. |
|
| Back to top |
|
| |