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

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

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

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

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