nftables Init failing

Issue #138 closed
Former user created an issue

Operating system: Debian 10.7 Buster SSHGuard version: 2.3.1-1 Firewall: nftables

When starting SSHGuard via systemd, I would get the following error and notice that the tables/sets/etc. were not being created in nftables:

sshg-fw-nft-sets: Could not initialize firewall

I reviewed the script that was run (/usr/lib/x86_64-linux-gnu/sshg-fw-nft-sets). If you remove the redirection to /dev/null on L20, the firewall initializes correctly and everything works great.

Comments (2)

  1. Kevin Zheng
    • changed status to open

    Thanks for the report. Do you know why the redirect is failing? Any other error messages that show up?

    Do you know what shell is used for your Debian release's /bin/sh? Is it bash, ash, or something else?

  2. Log in to comment