Board logo

标题: [求助] 我不小心把自带的防火墙规则清空了。。 [打印本页]

作者: linwuliao    时间: 2013-1-16 13:52     标题: 我不小心把自带的防火墙规则清空了。。

如题,求防火墙规则恢复脚本。。。我把wdcp的安装脚本打开,结果找不到哪里添加了防火墙规则。。。奇怪。。
作者: admin    时间: 2013-1-16 14:05

  1. # iptables conf /etc/sysconfig/iptables
  2. # Created by http://www.wdlinux.cn
  3. # Last Updated 2010.06.01

  4. # Firewall configuration written by system-config-securitylevel
  5. # Manual customization of this file is not recommended.
  6. *filter
  7. :FORWARD ACCEPT [0:0]
  8. :INPUT ACCEPT [0:0]
  9. :RH-Firewall-1-INPUT - [0:0]
  10. :OUTPUT ACCEPT [0:0]
  11. -A INPUT -j RH-Firewall-1-INPUT
  12. -A FORWARD -j RH-Firewall-1-INPUT
  13. -A RH-Firewall-1-INPUT -i lo -j ACCEPT
  14. -A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
  15. -A RH-Firewall-1-INPUT -p 50 -j ACCEPT
  16. -A RH-Firewall-1-INPUT -p 51 -j ACCEPT
  17. -A RH-Firewall-1-INPUT -p udp -d 224.0.0.251 --dport 5353 -j ACCEPT
  18. -A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
  19. -A RH-Firewall-1-INPUT -p tcp -m state -m tcp --dport 22 --state NEW -j ACCEPT
  20. -A RH-Firewall-1-INPUT -p tcp -m state -m tcp --dport 21 --state NEW -j ACCEPT
  21. -A RH-Firewall-1-INPUT -p tcp -m state -m tcp --dport 80 --state NEW -j ACCEPT
  22. -A RH-Firewall-1-INPUT -p tcp -m state -m tcp --dport 8080 --state NEW -j ACCEPT
  23. -A RH-Firewall-1-INPUT -p tcp -m state -m tcp --dport 20000:20500 --state NEW -j ACCEPT
  24. -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
  25. COMMIT
复制代码

作者: linwuliao    时间: 2013-1-16 15:57

回复 2# admin


   Thanks




欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/) Powered by Discuz! 7.2