[Unit] Description=iptables Before=network.target [Service] Type=oneshot RemainAfterExit=yes EnvironmentFile=/etc/conf.d/iptables ExecStart=/sbin/iptables-restore ${SAVE_RESTORE_OPTIONS} ${IPTABLES_SAVE} ExecStop=/sbin/iptables-save ${SAVE_RESTORE_OPTIONS} ${IPTABLES_SAVE} [Install] WantedBy=multi-user.target