distribution/packages/network/iptables/system.d/iptables.service

18 lines
494 B
SYSTEMD
Raw Normal View History

2022-02-05 14:23:32 +00:00
[Unit]
Description=IPTABLES Packet Filtering
ConditionPathExists=/usr/lib/coreelec/iptables_helper
ConditionPathExists=|/storage/.cache/services/iptables.conf
Before=network.target
Wants=network.target
[Service]
Type=oneshot
EnvironmentFile=-/storage/.cache/services/iptables.conf
ExecStart=/usr/lib/coreelec/iptables_helper enable
ExecReload=/usr/lib/coreelec/iptables_helper enable
ExecStop=/usr/lib/coreelec/iptables_helper disable
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target