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

2013-07-11 01:08:27 +08:00
 fishforward
应用的场景是:在应用中加载某个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
3595 次点击
所在节点    问与答
3 条回复
zhttty
2013-07-11 07:23:12 +08:00
service iptables stop
fishforward
2013-07-11 09:03:29 +08:00
@zhttty 我用的Ubuntu,返回“iptables: unrecognized service” 是没有这个service吧
fishforward
2013-07-11 16:49:08 +08:00
额,是太简单了么,新手求帮助啊

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/75420

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX