20 lines
632 B
Desktop File
20 lines
632 B
Desktop File
[Unit]
|
|
Description=tomswall firewall (apply local config at boot)
|
|
Documentation=https://git.unkin.net/unkin/tomswall
|
|
Wants=network-pre.target
|
|
Before=network-pre.target
|
|
After=local-fs.target systemd-sysctl.service
|
|
Conflicts=tomswall-agent.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
Environment=TOMSWALL_CONFIG=/etc/tomswall/tomswall.yaml
|
|
EnvironmentFile=-/etc/tomswall/tomswall.env
|
|
ExecStart=/usr/sbin/tomswall apply -c ${TOMSWALL_CONFIG}
|
|
ExecReload=/usr/sbin/tomswall apply -c ${TOMSWALL_CONFIG}
|
|
# No ExecStop: stopping the unit leaves the ruleset in place (flush would open the firewall).
|
|
|
|
[Install]
|
|
WantedBy=basic.target
|