I've setup a PPTPD on my VPS(Debian) which I used to use very well from my android phone and windows laptop. Now I want my new Mac Mini to use it too. It's shown the Mac can establish the vpn connection, only the browser(or curl) cannot open any webpages.
What's the problem?
BTW, I'm accessing internet through my wifi router. My android phone and windows laptop can use the vpn without any problems. Another strange thing: If my mac mini access internet directly without the router, the vpn works fine, i.e., I can connect the vpn and browser webpage as well.
The following is a session after it shows that my Mac has established a VPN connection:
JohnsMM:~ john$ nslookup www.youtube.com Server: 184.108.40.206 Address: 220.127.116.11#53 Non-authoritative answer: www.youtube.com canonical name = youtube-ui.l.google.com. Name: youtube-ui.l.google.com Address: 18.104.22.168 Name: youtube-ui.l.google.com Address: 22.214.171.124 JohnsMM:~ john$ ping www.youtube.com PING youtube-ui.l.google.com (126.96.36.199): 56 data bytes Request timeout for icmp_seq 0 64 bytes from 188.8.131.52: icmp_seq=0 ttl=49 time=1202.066 ms 64 bytes from 184.108.40.206: icmp_seq=1 ttl=49 time=306.454 ms ^C --- youtube-ui.l.google.com ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 306.454/605.227/1202.066/422.029 ms JohnsMM:~ john$ curl -v www.youtube.com * About to connect() to www.youtube.com port 80 (#0) * Trying 220.127.116.11... * connected * Connected to www.youtube.com (18.104.22.168) port 80 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5 > Host: www.youtube.com > Accept: */* >
As the above shows, when I use curl to access youtube, it stopped at the last line(after the line
> Accept: */*), looks like curl is waiting for a response.