Devraj Mukherjee wrote:
Hi all,
I am trying to get fail2ban going on my server and its log message reports the following error
2009-02-16 17:42:05,339 ERROR: 'iptables -L INPUT | grep -q fail2ban-SSH' returned 256 2009-02-16 17:42:05,354 ERROR: 'iptables -D INPUT -p tcp --dport ssh -j fail2ban-SSH
Is this because of the way the RedHat tool sets up the firewall?
Thanks for any responses.
First, have you installed iptables, shorewall, and tcp-wrappers installed?
Second, have you tried the failed grep expression, i.e., have you tried
iptables -L INPUT | grep -q fail2ban-SSH
As to why this would fail, you need to ask on the fail2ban mailing list since evidently this appears to be part of the installation.
The iptables can be setup by anyone - RedHat simply provides a default set of rules.