a0fbec
[Unit]
a0fbec
Description=IP sets for iptables
a0fbec
Before=iptables.service
a0fbec
Before=ip6tables.service
a0fbec
a0fbec
[Service]
a0fbec
Type=oneshot
a0fbec
RemainAfterExit=yes
a0fbec
ExecStart=/usr/libexec/ipset/ipset.start-stop start
a0fbec
ExecStop=/usr/libexec/ipset/ipset.start-stop stop
a0fbec
ExecReload=/usr/libexec/ipset/ipset.start-stop reload
74182f
# Save current ipset entries on stop.
a0fbec
#   Value: yes|no,  default: no
74182f
# Saves all ipsets to /etc/sysconfig/ipset if ipset gets stopped
74182f
Environment=IPSET_SAVE_ON_STOP=no
74182f
EnvironmentFile=-/etc/sysconfig/ipset-config
a0fbec
a0fbec
[Install]
a0fbec
WantedBy=basic.target