新建文件 /etc/network/if-pre-up.d/iptables
Add these lines to it:
#!/bin/bash
/sbin/iptables-restore < /etc/iptables.up.rules
chmod +x /etc/network/if-pre-up.d/iptables
以上reboot,无效
/etc/rc.local 中添加脚本 reboot,无效
Add these lines to it:
#!/bin/bash
/sbin/iptables-restore < /etc/iptables.up.rules
chmod +x /etc/network/if-pre-up.d/iptables
以上reboot,无效
/etc/rc.local 中添加脚本 reboot,无效