start: loads /etc/iptables/rules.v4,/etc/iptables/rules.v6 restart: convenience start & stop command reload:reload rules from /etc/iptables/rules.v4,/etc/iptables/rules.v6 force-reload:force-reload rules from /etc/iptables/rules.v4,/etc/iptables/rules.v6 save:saves the current rules to /etc/iptables/rules.v4 and /etc/iptables/rules.v6 flush: flushes iptables completely, and enforces ACCEPT policy
示例
1 2 3 4 5 6
service iptables-persistent start service iptables-persistent restart service iptables-persistent reload service iptables-persistent force-reload service iptables-persistent save service iptables-persistent flush
使用iptables-init-debian
Init script for controlling iptables as a service in a Debian box. Tested in Debian Squeeze, Wheezy and Sid.
This script relies on iptables-save and iptables-restore commands, to save and read the rules in /etc/iptables.rules. Once installed, this file must be created, by saving current rules (save command).