Public bug reported:

Description:    Ubuntu 20.04.1 LTS
Release:        20.04
sshguard:       2.3.1-1ubuntu1.1

Even when using a different firewall like nftables(sshguard.conf ->
BACKEND="/usr/lib/x86_64-linux-gnu/sshg-fw-nft-sets"), sshguard always
initializes for iptables.

[Unit]
Description=SSHGuard
Documentation=man:sshguard(8)
After=network.target
Before=sshd.service

[Service]
PIDFile=/run/sshguard.pid
ExecStartPre=-/usr/sbin/iptables -N sshguard
ExecStartPre=-/usr/sbin/ip6tables -N sshguard
ExecStopPost=-/usr/sbin/iptables -X sshguard
ExecStopPost=-/usr/sbin/ip6tables -X sshguard
ExecStart=/usr/sbin/sshguard

[Install]
WantedBy=multi-user.target

Sure, I can create an override file for the unit (which I did), but to
me it just does not feel right. Looks like something that deserves a
more elegant solution?

** Affects: sshguard (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1900275

Title:
  sshguard unit file always initializes for iptables

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sshguard/+bug/1900275/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to