vpn上网过慢

最大的社区版本,Ubuntu的发源地
回复
yangdawei.hit
帖子: 245
注册时间: 2015-01-02 15:32
系统: Debian

vpn上网过慢

#1

帖子 yangdawei.hit » 2015-11-10 18:03

vpn登录后ping google速度还可以,但iceweasel就是打不开网页。

代码: 全选

ping www.google.com
PING www.google.com (74.125.20.147) 56(84) bytes of data.
64 bytes from pe-in-f147.1e100.net (74.125.20.147): icmp_seq=1 ttl=47 time=207 ms
64 bytes from pe-in-f147.1e100.net (74.125.20.147): icmp_seq=2 ttl=47 time=210 ms
64 bytes from pe-in-f147.1e100.net (74.125.20.147): icmp_seq=3 ttl=47 time=206 ms
64 bytes from pe-in-f147.1e100.net (74.125.20.147): icmp_seq=4 ttl=47 time=209 ms
64 bytes from pe-in-f147.1e100.net (74.125.20.147): icmp_seq=5 ttl=47 time=210 ms
64 bytes from pe-in-f147.1e100.net (74.125.20.147): icmp_seq=6 ttl=47 time=208 ms
^C
--- www.google.com ping statistics ---
7 packets transmitted, 6 received, 14% packet loss, time 6009ms
rtt min/avg/max/mdev = 206.934/208.917/210.746/1.441 ms
请问问题可能出在哪里?
头像
九天星
帖子: 1441
注册时间: 2007-07-14 20:45

Re: vpn上网过慢

#2

帖子 九天星 » 2015-11-10 21:54

你用的什么VPN?
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: vpn上网过慢

#3

帖子 vickycq » 2015-11-11 9:10

今天看到一篇文章,其中 写了:vpn慢的原因,可能是虚拟出的网络mtu大过了中间的网络mtu值。
具体我就不懂了。

参见
http://2014.54chen.com/blog/2014/12/30/pptpd-scp-slow/
http://www.chicagotech.net/vpnslow.htm
http://www.alfredtong.com/cisco/trouble ... ok-at-mtu/
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
yangdawei.hit
帖子: 245
注册时间: 2015-01-02 15:32
系统: Debian

Re: vpn上网过慢

#4

帖子 yangdawei.hit » 2015-11-11 17:22

你用的什么VPN?
cocovpn 付费
yangdawei.hit
帖子: 245
注册时间: 2015-01-02 15:32
系统: Debian

Re: vpn上网过慢

#5

帖子 yangdawei.hit » 2015-11-11 17:30

vpn慢的原因,可能是虚拟出的网络mtu大过了中间的网络mtu值。
问题解决了,就是按http://2014.54chen.com/blog/2014/12/30/pptpd-scp-slow/中的操作方式。
server: /etc/ppp/options.pptpd 最后一行添加 mtu 1300,解决下载慢。
没有找到options.pptpd,我改的是options.pptp
client: ifconfig ppp0 mtu 1300 解决上传慢的问题。
在登录vpn后再执行这条命令。

这是修改mtu之后的网络情况:

代码: 全选

sudo netstat -i
Kernel Interface table
Iface      MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR 囗囗囗
enp9s0    1500        0      0      0 0             0      0      0      0 BMU
lo       65536    12141      0      0 0         12141      0      0      0 LRU
ppp0      1300       14      0      0 0            16      0      0      0 MOPRU
wlp3s0    1500   144108      0      0 0        120883      0      0      0 BMRU
回复