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