Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么连接是建立在ipv6上,这正常吗 #16

Closed
tony1016 opened this issue Dec 21, 2016 · 5 comments
Closed

为什么连接是建立在ipv6上,这正常吗 #16

tony1016 opened this issue Dec 21, 2016 · 5 comments

Comments

@tony1016
Copy link

运行后感觉日志正常,但是客户端连接不上。netstat的状态显示连接是建立在ipv6上,这正常吗??

@hwdsl2
Copy link
Owner

hwdsl2 commented Dec 21, 2016

@tony1016 你好!在我的服务器上,命令 netstat -anput 的输出如下:

$ netstat -anput
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
... ...
udp6       0      0 :::4500                 :::*                                1270/docker-proxy
udp6       0      0 :::500                  :::*                                1278/docker-proxy

虽然上面的输出看起来似乎连接通过 IPv6 建立,但其实不是。它是通过 IPv4 建立的。如果你的命令输出像上面这样,那么一切都正常。你需要另外查找一下客户端无法连接的其它原因。可以参见 [1]。

[1] https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients-zh.md#故障排除

@hwdsl2 hwdsl2 closed this as completed Dec 21, 2016
@tony1016
Copy link
Author

@hwdsl2 非常感谢。我现在很怀疑是当地GFW干的。因为我用nc测试,尽然所有udp端口都是success的,OMG

@tony1016
Copy link
Author

@hwdsl2 我是指从1-65535

@hwdsl2
Copy link
Owner

hwdsl2 commented Dec 21, 2016

@tony1016 嗯,有这个可能。你可以另行尝试一下 Shadowsocks [1] 或 ShadowsocksR [2]。

[1] https://github.com/shadowsocks/shadowsocks-libev
[2] https://github.com/breakwa11/shadowsocks-rss

@tony1016
Copy link
Author

@hwdsl2 ss没有问题,因为最近苹果地图的一些问题,需要VPN。感谢回复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants