V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
fishforward
V2EX  ?  问与答

求解:VPS无法部分外网无法访问,ping也不通

  •  
  •   fishforward · 2013-07-11 01:08:27 +08:00 · 3549 次点击
    这是一个创建于 3949 天前的主题,其中的信息可能已经有所发展或是发生改变。
    应用的场景是:在应用中加载某个url解析,但部分地址是读取不到
    ping的话,部分通的:www.qq.com www.yahoo.com
    大部分不通:www.upyun.com,www.baidu.com

    查了下貌似需要设置iptables,新手不太理解原理
    现在的设置是:
    # iptables -L
    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
    ACCEPT tcp -- anywhere anywhere tcp dpt:http

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination
    ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
    3 条回复  ?  1970-01-01 08:00:00 +08:00
    zhttty
        1
    zhttty  
       2013-07-11 07:23:12 +08:00
    service iptables stop
    fishforward
        2
    fishforward  
    OP
       2013-07-11 09:03:29 +08:00
    @zhttty 我用的Ubuntu,返回“iptables: unrecognized service” 是没有这个service吧
    fishforward
        3
    fishforward  
    OP
       2013-07-11 16:49:08 +08:00
    额,是太简单了么,新手求帮助啊
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   767 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 20:28 · PVG 04:28 · LAX 13:28 · JFK 16:28
    Developed with CodeLauncher
    ? Do have faith in what you're doing.


    http://www.vxiaotou.com