distribution/packages/network/iptables/system.d/iptables.service
2022-07-02 21:23:36 -04:00

17 lines
494 B
Desktop File

[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