Hi All,
I Installed Fail2Ban through de admin panel. All seems ok, but when I look in the log I get permission denied errors on the Iptables. When I run the commands manually with Sudo they seem to work.
Error message:
"
ERROR iptables -N f2b-SSH
iptables -A f2b-SSH -j RETURN
iptables -I INPUT -p tcp --dport ssh -j f2b-SSH -- stdout: ''
2016-03-18 09:24:43,972 fail2ban.action [5722]: ERROR iptables -N f2b-SSH
iptables -A f2b-SSH -j RETURN
iptables -I INPUT -p tcp --dport ssh -j f2b-SSH -- stderr: "iptables v1.4.7: can't initialize iptables table `filter': Permission denied\nPerhaps iptables or your kernel needs to be upgraded.\niptables v1.4.7: can't initialize iptables table `filter': Permission denied\nPerhaps iptables or your kernel needs to be upgraded.\niptables v1.4.7: can't initialize iptables table `filter': Permission denied\nPerhaps iptables or your kernel needs to be upgraded.\n"
2016-03-18 09:24:43,972 fail2ban.action [5722]: ERROR iptables -N f2b-SSH
"
Any ideas? How to let fail2ban run the commands in root or other admin mode?
Regards!
I Installed Fail2Ban through de admin panel. All seems ok, but when I look in the log I get permission denied errors on the Iptables. When I run the commands manually with Sudo they seem to work.
Error message:
"
ERROR iptables -N f2b-SSH
iptables -A f2b-SSH -j RETURN
iptables -I INPUT -p tcp --dport ssh -j f2b-SSH -- stdout: ''
2016-03-18 09:24:43,972 fail2ban.action [5722]: ERROR iptables -N f2b-SSH
iptables -A f2b-SSH -j RETURN
iptables -I INPUT -p tcp --dport ssh -j f2b-SSH -- stderr: "iptables v1.4.7: can't initialize iptables table `filter': Permission denied\nPerhaps iptables or your kernel needs to be upgraded.\niptables v1.4.7: can't initialize iptables table `filter': Permission denied\nPerhaps iptables or your kernel needs to be upgraded.\niptables v1.4.7: can't initialize iptables table `filter': Permission denied\nPerhaps iptables or your kernel needs to be upgraded.\n"
2016-03-18 09:24:43,972 fail2ban.action [5722]: ERROR iptables -N f2b-SSH
"
Any ideas? How to let fail2ban run the commands in root or other admin mode?
Regards!