Skip to content

Debian 11 fail2ban ssh jail error #375

Description

@mvldebian

Error on logs:

2023-02-08 19:38:24,663 fail2ban.utils [49680]: INFO HINT on 127: "Command not found". Make sure that all commands in 'iptables -w -N f2b-sshd\niptables -w -A f2b-sshd -j RETURN\niptables -w -I INPUT -p tcp -m multiport --dports ssh -j f2b-sshd' are in the PATH of fail2ban-server process (grep -a PATH= /proc/pidof -x fail2ban-server/environ). You may want to start "fail2ban-server -f" separately, initiate it with "fail2ban-client reload" in another shell session and observe if additional informative error messages appear in the terminals.

2023-02-08 19:38:24,663 fail2ban.actions [49680]: ERROR Failed to execute ban jail 'sshd' action 'iptables-multiport' info 'ActionInfo({'ip': '183.99.143.30', 'family': 'inet4', 'fid': at 0x7f1151a88790>, 'raw-ticket': at 0x7f1151a88e50>})': Error starting action Jail('sshd')/iptables-multiport: 'Script error'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions