Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143690 - net-analyzer/fail2ban-0.6.0 fails to run with iptables-1.3.5-r1
Summary: net-analyzer/fail2ban-0.6.0 fails to run with iptables-1.3.5-r1
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-12 09:38 UTC by Andreas Korinek
Modified: 2007-02-01 19:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fail2ban config file (fail2ban.conf,9.03 KB, text/plain)
2006-12-12 10:19 UTC, Andreas Korinek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Korinek 2006-08-12 09:38:54 UTC
I installed net-analyzer/fail2ban-0.6.0 on my stable x86 server, running fail2ban results in the following error logged in the /var/log/fail2ban.log:

2006-08-12 18:29:22,637 WARNING: Verbose level is 1
2006-08-12 18:29:22,640 INFO: Fail2Ban v0.6.0 is running
2006-08-12 18:29:22,661 ERROR: 'iptables -N fail2ban-ssh
iptables -I INPUT -p tcp --dport ssh -j fail2ban-ssh
iptables -A fail2ban-ssh -j RETURN' returned 768
2006-08-12 18:29:22,666 ERROR: Fail2Ban got an unhandled exception and died.
2006-08-12 18:29:22,667 ERROR: Type: 'ExternalError'
Value: ("Execution of command 'iptables -N fail2ban-ssh\niptables -I INPUT -p tcp --dport ssh -j fail2ban-ssh\niptables -A fail2ban-ssh -j RETURN' failed",)
TB: [('/usr/bin/fail2ban', 46, '?', 'fail2ban.main()'), ('/usr/lib/fail2ban/fail2ban.py', 423, 'main', 'initializeFwRules()'), ('/usr/lib/fail2ban/fail2ban.py', 110, 'initializeFwRules', 'element[2].initialize(conf["debug"])'), ('/usr/lib/fail2ban/firewall/firewall.py', 73, 'initialize', 'executeCmd(self.startRule, debug)'), ('/usr/lib/fail2ban/utils/process.py', 134, 'executeCmd', 'raise ExternalError("Execution of command \'%s\' failed" % cmd)')]
2006-08-12 18:29:22,668 WARNING: Restoring firewall rules...
2006-08-12 18:29:22,793 ERROR: 'iptables -D INPUT -p tcp --dport ssh -j fail2ban-ssh
iptables -F fail2ban-ssh
iptables -X fail2ban-ssh' returned 768


iptables says:
valiant ~ # iptables -N fail2ban-ssh\niptables -I INPUT -p tcp --dport ssh -j fail2ban-ssh\niptables -A fail2ban-ssh -j RETURN
iptables v1.3.5: Can't use -I with -N
Comment 1 Cédric Krier gentoo-dev 2006-12-09 10:37:56 UTC
Can you put your fail2ban.conf?
Comment 2 Andreas Korinek 2006-12-12 10:19:37 UTC
Created attachment 103881 [details]
fail2ban config file

here it is...
Comment 3 Markus Ullmann (RETIRED) gentoo-dev 2007-02-01 19:27:48 UTC
Please try again with a more recent version and reopen if the issue still persists