ITPub博客

首页 > Linux操作系统 > Linux操作系统 > How do I disable the iptables firewall in Fedora Core Linux?

How do I disable the iptables firewall in Fedora Core Linux?

原创 Linux操作系统 作者:ysjxjf 时间:2012-03-20 09:53:26 0 删除 编辑
How do I disable the iptables firewall in Fedora Core Linux?[@more@]

Q. How do I disable the iptables firewall in Fedora Core Linux?

A. Iptables is used to set up, maintain, and inspect the tables of IP packet filter rules in the Linux kernel.

If you are using RHEL (Redhat), Fedora core or Cent os Linux just type following commands to disable the iptables firewall:
# service iptables save
# service iptables stop
# chkconfig iptables off

If you are using any other Linux distribution type the following command to clear up firewall rules:
# iptables -F
# iptables -X
# iptables -t nat -F
# iptables -t nat -X
# iptables -t mangle -F
# iptables -t mangle -X
# iptables -P INPUT ACCEPT
# iptables -P OUTPUT ACCEPT

You may need to put above rules in a shell script and execute the same. Also remove your iptables startup script from your network configuration file such as /etc/network/interfaces. Look for post-up directive.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/66634/viewspace-1057651/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 相信未来
请登录后发表评论 登录
全部评论

注册时间:2008-04-24

  • 博文量
    376
  • 访问量
    3279025