[root@~]# vi /etc/sysconfig/iptables-config
# Save current firewall rules on restart.
# Value: yes|no, default: no
# Saves all firewall rules to /etc/sysconfig/iptables if firewall gets
# restarted.
IPTABLES_SAVE_ON_RESTART=”yes”
# Save (and restore) rule and chain counter.
# Value: yes|no, default: no
# Save counters for rules and chains to /etc/sysconfig/iptables if
# ‘service iptables save’ is called or on stop or restart if SAVE_ON_STOP or
# SAVE_ON_RESTART is enabled.
IPTABLES_SAVE_COUNTER=”yes”
에러 : 적용오류
ERROR: iptables: Index of deletion too big
1 2 3 |
ERROR: iptables: Index of deletion too big |
1 2 3 4 5 |
iptables-save >/tmp/somefile vi /tmp/somefile iptables-restore < /tmp/somefile |
참조 : https://www.jianshu.com/p/6617dc9ba7f7