#iptables规则保存(Debian) root身份登陆
iptables-save > /etc/iptables
touch /etc/network/if-pre-up.d/iptables
chmod +x /etc/network/if-pre-up.d/iptables
nano /etc/network/if-pre-up.d/iptables
iptables
内容为
#!/bin/sh
/sbin/iptables-restore < /etc/iptables
#iptables规则保存(Debian) root身份登陆
iptables-save > /etc/iptables
touch /etc/network/if-pre-up.d/iptables
chmod +x /etc/network/if-pre-up.d/iptables
nano /etc/network/if-pre-up.d/iptables
iptables
内容为
#!/bin/sh
/sbin/iptables-restore < /etc/iptables