[Unit] Description=Coulobre Fail2ban instance After=coulobre-firewall.service network.target [Service] Type=exec UMask=0077 RuntimeDirectory=coulobre-fail2ban RuntimeDirectoryMode=0700 StateDirectory=coulobre/firewall StateDirectoryMode=0700 ExecStartPre=/opt/coulobre/bin/coulobre-firewall prepare-bans ExecStart=/usr/bin/fail2ban-server -xf -c /run/coulobre-fail2ban/config -s /run/coulobre-fail2ban/fail2ban.sock -p /run/coulobre-fail2ban/fail2ban.pid ExecReload=/opt/coulobre/bin/coulobre-firewall prepare-bans ExecReload=/usr/bin/fail2ban-client -c /run/coulobre-fail2ban/config -s /run/coulobre-fail2ban/fail2ban.sock reload ExecStop=/usr/bin/fail2ban-client -c /run/coulobre-fail2ban/config -s /run/coulobre-fail2ban/fail2ban.sock stop Restart=on-failure NoNewPrivileges=true ProtectHome=true ProtectSystem=strict [Install] WantedBy=multi-user.target