Can't connect to some sites over VPN
When I'm connected to my company's VPN, some websites won't load. For example, both imgur and tumblr will just hang trying to connect:
$ curl -v http://imgur.com
* About to connect() to imgur.com port 80 (#0)
* Trying 23.23.110.81...
* connected
* Connected to imgur.com (23.23.110.81) 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.8x zlib/1.2.5
> Host: imgur.com
> Accept: */*
>
Other sites, like twitter and the AWS console will load eventually but without any CSS applied (some pages will load properly though).
The VPN uses PPP and so pretty much all of my traffic shows up in Wireshark as PPP Compressed Datagrams. ppp.log
doesn`t show anything but connect/disconnect info.
I had been using this exact same setup for a month or two without any issues. It was in the last week or two that I noticed this issue. Running iOS 10.8.4.
Any idea on how to debug this?
Solution 1:
Talked to a coworker who had the same problem. The issue was that the mtu was set too high on the ppp0 interface.
$ ifconfig ppp0
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1396
inet 192.168.0.207 --> 192.168.0.200 netmask 0xffffff00
I changed it from 1396
to 1250
and it now works fine. To make the change permanent, I did the following:
$ sudo <your_text_editor_of_choice> /etc/ppp/ip-up
#!/bin/sh
/sbin/ifconfig ppp0 mtu 1250
$ sudo chmod 755 /etc/ppp/ip-up