Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] IPTABLES fail2ban debian #1153

Open
filex100 opened this issue Apr 8, 2024 · 0 comments
Open

[BUG] IPTABLES fail2ban debian #1153

filex100 opened this issue Apr 8, 2024 · 0 comments
Labels

Comments

@filex100
Copy link

filex100 commented Apr 8, 2024

What happened?

Steps to reproduce:

  1. Install package 'swizzin'
  2. Go to 'fail2ban'
  3. Error 'iptables is not installed'

Debian stopped using iptables since debian 10, so fail2ban does not work as it should.

You need to install iptables manually for fail2ban to work properly.

https://wiki.debian.org/iptables

https://www.netfilter.org/index.html

The netfilter project is commonly associated with iptables and its successor nftables.

Swizzin commit

9a23fc3

What OS are you using?

Debian 11 (Bullseye)

What architecture is your OS?

amd64

Relevant logs and output

2024-03-31 00:01:55,237 fail2ban.filter         [939]: INFO    [sshd] Found 218.x.x.x - 2024-03-31 00:01:55
2024-03-31 00:01:58,643 fail2ban.filter         [939]: INFO    [sshd] Found 218.x.x - 2024-03-31 00:01:58
2024-03-31 00:01:58,867 fail2ban.actions        [939]: NOTICE  [sshd] Ban 218.x.x.x
2024-03-31 00:01:59,143 fail2ban.utils          [939]: ERROR   7e9eb831b5b0 -- exec: iptables -w -N f2b-sshd
iptables -w -A f2b-sshd -j RETURN
iptables -w -I INPUT -p tcp -m multiport --dports ssh -j f2b-sshd
2024-03-31 00:01:59,143 fail2ban.utils          [939]: ERROR   7e9eb831b5b0 -- stderr: '/bin/sh: 1: iptables: not found'
2024-03-31 00:01:59,224 fail2ban.utils          [939]: ERROR   7e9eb831b5b0 -- stderr: '/bin/sh: 2: iptables: not found'
2024-03-31 00:01:59,224 fail2ban.utils          [939]: ERROR   7e9eb831b5b0 -- stderr: '/bin/sh: 3: iptables: not found'
2024-03-31 00:01:59,224 fail2ban.utils          [939]: ERROR   7e9eb831b5b0 -- returned 127
2024-03-31 00:01:59,224 fail2ban.utils          [939]: INFO    HINT on 127: "Command not found".  Make sure that all commands in 'iptables -w -N f2b-sshd\niptables -w >
2024-03-31 00:01:59,227 fail2ban.actions        [939]: ERROR   Failed to execute ban jail 'sshd' action 'iptables-multiport' info 'ActionInfo({'ip': '218.x.x.x', 'fa>
@filex100 filex100 added the bug label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant