2023-09-11 01:58:32 +02:00
|
|
|
{{ ansible_managed | comment }}
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=firewall
|
|
|
|
Wants=network-pre.target
|
|
|
|
Before=network-pre.target shutdown.target
|
|
|
|
Conflicts=shutdown.target
|
|
|
|
DefaultDependencies=no
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
|
|
|
StandardInput=null
|
|
|
|
ProtectSystem=full
|
|
|
|
ProtectHome=true
|
|
|
|
ExecStart=/usr/local/sbin/firewall /etc/firewall/rules.yml
|
|
|
|
ExecReload=/usr/local/sbin/firewall /etc/firewall/rules.yml
|
|
|
|
ExecStop=/usr/sbin/nft flush ruleset
|
2023-09-16 01:52:35 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=sysinit.target
|