我使用openvpn连接后,出现如题的情况,client 和 server都是centos 6.5。
在client上curl -v http://www.github.com
可以看到:
* About to connect() to www.github.com port 80 (#0) * Trying 192.30.252.130... connected * Connected to www.github.com (192.30.252.130) port 80 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 > Host: www.github.com > Accept: */* > * Empty reply from server * Connection #0 to host www.github.com left intact curl: (52) Empty reply from server * Closing connection #0
在server上通过tcpdump
看到:
在正常通过server的IP与github建立连接后,确换成了用vpn client的IP来请求数据,这样服务端的返回不能正常接收导致了这种情况,求解决方案