IPTables保持重置

我在我的服务器上设置了一个代理,只允许我的IP通过IP表连接到它。 问题是晚上有一段时间,发生了一些事情,我无法连接到它。

我可以再次访问它的唯一方法是如果我SSH进入并运行这个:

[root@host ~]# service iptables restart Flushing firewall rules: [ OK ] Setting chains to policy ACCEPT: mangle filter [ OK ] Unloading iptables modules: [ OK ] Applying iptables firewall rules: [ OK ] 

通过你的crontab,find什么是重置您的防火墙。

比较你build立和正确的规则集与正在运行的规则集,以确定iptables是否拒绝您的代理连接。

 iptables -L > iptables.conf.orig #Wait till fault iptables -L > iptables.conf.error diff iptables.conf.orig iptables.conf.error