systemd iptables conflict

Issue #73 wontfix
K Yzxr created an issue

On ArchLinux (and possibly other distros, haven't tested beyond Arch), iptables was no longer being started upon reboot, as explained in this thread:

The problem was traced back to the fact iptables was changed from being named '' to now being named 'iptables.service'. Without the right dependency declared, sshguard doesn't properly wait for iptables to be initialized and so users were seeing that iptables would fail to load on boot, but could be loaded fine manually after kernel startup was finished.

Adding the line 'After=iptables.service' to the systemd [Unit] section resolves the issue.

Comments (3)

  1. Daniel Aleksandersen

    The Unit file is only an example. Do you happen to know whether this is an upstream or a Arch specific change?

  2. Daniel Aleksandersen

    Then the current example file serves it’s job. It’s not being automatically installed (exactly because of issues like this) and is only meant as an example for downstream maintainers and users.

  3. Log in to comment