2018-02-06 16:58:18 +01:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
[Unit]
|
|
|
|
Description={{ nft_service_name }}
|
|
|
|
Documentation=man:nft(8) http://wiki.nftables.org
|
2018-08-07 11:03:29 +02:00
|
|
|
;Before=fail2ban.service
|
2018-02-06 16:58:18 +01:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
|
|
|
StandardInput=null
|
2019-03-15 11:13:26 +01:00
|
|
|
{% if nft__service_protect %}
|
2018-02-06 16:58:18 +01:00
|
|
|
ProtectSystem=full
|
|
|
|
ProtectHome=true
|
2019-03-15 11:13:26 +01:00
|
|
|
{% endif %}
|
2021-08-07 01:23:36 +02:00
|
|
|
ExecStart={{ nft__bin_location }} -f {{ nft_main_conf_path }}
|
|
|
|
ExecReload={{ nft__bin_location }} -f {{ nft_main_conf_path }}
|
|
|
|
ExecStop={{ nft__bin_location }} flush ruleset
|
2018-02-06 16:58:18 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|