
1 bobopu OP 我晕,是没chkconfig iptables on,太大意。。 |
2 sofs May 27, 2014 service iptables save service iptables restart |
3 Honwhy May 27, 2014 如果你是在/etc/iptables文件中编辑的话,重启iptables后更改的规则会生效的。 但是如果用命令方式: iptables ... --dport xxx-j ACCEPT 这类的话,只是临时保存而已,并没有保存到/etc/iptables文件中,这时重启(restart),还是从原来的/etc/iptables读取配置规则,所以刚才用命令行添加的规则就丢掉了。 一般是iptables-save>/etc/iptables吧 有的就是直接编辑/etc/iptables了 |
4 wanjun May 27, 2014 上次我在没有关闭iptables时,把规则清空,然后ssh就锻炼... |