V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
fishforward
V2EX  ›  问与答

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

  •  
  •   fishforward · Jul 11, 2013 · 4312 views
    This topic created in 4676 days ago, the information mentioned may be changed or developed.
    应用的场景是:在应用中加载某个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 replies    1970-01-01 08:00:00 +08:00
    zhttty
        1
    zhttty  
       Jul 11, 2013
    service iptables stop
    fishforward
        2
    fishforward  
    OP
       Jul 11, 2013
    @zhttty 我用的Ubuntu,返回“iptables: unrecognized service” 是没有这个service吧
    fishforward
        3
    fishforward  
    OP
       Jul 11, 2013
    额,是太简单了么,新手求帮助啊
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4546 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 00:13 · PVG 08:13 · LAX 17:13 · JFK 20:13
    ♥ Do have faith in what you're doing.