V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
pythonee
V2EX  ›  Linux

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

  •  
  •   pythonee · 2015-07-14 10:49:55 +08:00 · 2409 次点击
    这是一个创建于 3210 天前的主题,其中的信息可能已经有所发展或是发生改变。
    7 条回复    2015-07-14 14:46:54 +08:00
    usernametoolong
        1
    usernametoolong  
       2015-07-14 11:45:15 +08:00
    /etc/sysconfig/iptables 编辑一下 然后reload或者restart,暴力点可以直接清空。

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

    如果是 CentOS 执行:
    iptables -F
    service iptables save
    venster
        4
    venster  
       2015-07-14 12:50:23 +08:00
    @fengyqf 今天上午我刚好在折腾这个。打算装个squid代理,在CentOS7上折腾了一早上iptables,临下班时发现人家该用firewall d了
    yaxin
        5
    yaxin  
       2015-07-14 13:43:06 +08:00
    楼主,请不要告诉我你是hwclouds的
    pythonee
        6
    pythonee  
    OP
       2015-07-14 14:18:39 +08:00
    @yaxin 什么意思
    yaxin
        7
    yaxin  
       2015-07-14 14:46:54 +08:00
    @pythonee 我以为你是我同事呢,我也遇到一个相同的问题,一模一样
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2721 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 00:31 · PVG 08:31 · LAX 17:31 · JFK 20:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.