taoCMS是基于php+sqlite/mysql的国内最小(100Kb左右)的功能完善的CMS管理系统

用Windows连接pptpd无法上网MAC没问题的解决办法

2015-05-05

After setting up pptpd on a cheap VPS sat in New York to gain access to Netflix USA, I noticed some problems with several websites when connected to the VPN on Windows. Strangely these issues can not be replicated using a Mac.

After a little bit of playing around, I noticed an interesting difference between a Windows and Mac connection in the ifconfig output:

Windows:

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:10.6.0.1  P-t-P:10.6.0.101 Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1396  Metric:1
          RX packets:126 errors:0 dropped:0 overruns:0 frame:0
          TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:14384 (14.3 KB)  TX bytes:6301 (6.3 KB)

Mac:

ppp1      Link encap:Point-to-Point Protocol  
          inet addr:10.6.0.1  P-t-P:10.6.0.102  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1496  Metric:1
          RX packets:2412 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1742 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:1174836 (1.1 MB)  TX bytes:644382 (644.3 KB)

For some reason the Windows machine is using an MTU of 1396 while the Mac is using 1496. It seems to be a common problem that a lower than normal MTU causes some websites not to load (at least there are numerous similar or related articles on Google).

Fortunately there is a simple fix, I just added this line to the bottom of /etc/ppp/ip-up:

/sbin/ifconfig $PPP_IFACE mtu 1500

Future connections now all use an MTU of 1500 and the browsing issues are gone.

类别:未分组 | 阅读:171140 | 评论:92 | 标签:MTU windows mac pptpd

想收藏或者和大家分享这篇好文章→

“用Windows连接pptpd无法上网MAC没问题的解决办法”共有0条留言

发表评论

姓名:

邮箱:

网址:

验证码:

公告

taoCMS发布taoCMS 3.0.2(最后更新21年03月15日),请大家速速升级,欢迎大家试用和提出您宝贵的意见建议。

捐助与联系

☟请使用新浪微博联系我☟

☟在github上follow我☟

标签云