Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
pythonee
V2EX  ›  Linux

iptables 限制了访问本机 ip,即使从自身访问自身也不行, iptables -F 之后又会自动添加,怎么回事呢

  •  
  •   pythonee · Jul 14, 2015 · 3191 views
    This topic created in 4133 days ago, the information mentioned may be changed or developed.
    7 replies  •  2015-07-14 14:46:54 +08:00
    usernametoolong
    usernametoolong
    Jul 14, 2015
    1
    /etc/sysconfig/iptables 编辑一下 然后reload或者restart,暴力点可以直接清空。

    以上说法基于redhat centos 家族的,deb的请略过不要喷我。。。。。
    fengyqf
    fengyqf
    Jul 14, 2015
    2
    是不是用rhel/centos 7,或新版本的fedora,已经不再是iptables了,而是改用 FirewallD,不过兼容iptables命令。这货不太熟悉,得慢研究一下
    mN71eOOprFyMsnPx
    mN71eOOprFyMsnPx
    Jul 14, 2015
    3
    看样子你只是想关闭iptables

    如果是 CentOS 执行:
    iptables -F
    service iptables save
    venster
    venster
    Jul 14, 2015
    4
    @fengyqf 今天上午我刚好在折腾这个。打算装个squid代理,在CentOS7上折腾了一早上iptables,临下班时发现人家该用firewall d了
    yaxin
    yaxin
    Jul 14, 2015
    5
    楼主,请不要告诉我你是hwclouds的
    pythonee
    pythonee
    OP
    Jul 14, 2015
    6
    @yaxin 什么意思
    yaxin
    yaxin
    Jul 14, 2015
    7
    @pythonee 我以为你是我同事呢,我也遇到一个相同的问题,一模一样
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1903 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 15:25 · PVG 23:25 · LAX 07:25 · JFK 10:25
    ♥ Do have faith in what you're doing.