2013-08-30 05:49:08 +00:00
|
|
|
[Unit]
|
|
|
|
Description=IP sets for iptables
|
|
|
|
Before=iptables.service
|
|
|
|
Before=ip6tables.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
|
|
|
ExecStart=/usr/libexec/ipset/ipset.start-stop start
|
|
|
|
ExecStop=/usr/libexec/ipset/ipset.start-stop stop
|
|
|
|
ExecReload=/usr/libexec/ipset/ipset.start-stop reload
|
2022-03-15 17:34:19 +00:00
|
|
|
# Save current ipset entries on stop.
|
2013-08-30 05:49:08 +00:00
|
|
|
# Value: yes|no, default: no
|
2022-03-15 17:34:19 +00:00
|
|
|
# Saves all ipsets to /etc/sysconfig/ipset if ipset gets stopped
|
|
|
|
Environment=IPSET_SAVE_ON_STOP=no
|
|
|
|
EnvironmentFile=-/etc/sysconfig/ipset-config
|
2013-08-30 05:49:08 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=basic.target
|