我用的是云梯的VPN服务,Windows下连接没有问题,可见服务器应该没有问题,我觉得问题应该处在pptpclient的设置上。
代码: 全选
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.101 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::9a4b:e1ff:feb8:30d8 prefixlen 64 scopeid 0x20<link>
ether 98:4b:e1:b8:30:d8 txqueuelen 1000 (Ethernet)
RX packets 5031 bytes 3871939 (3.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5499 bytes 767981 (749.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1496
inet 10.10.0.36 netmask 255.255.255.255 destination 10.10.0.1
ppp txqueuelen 3 (Point-to-Point Protocol)
RX packets 295 bytes 46155 (45.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 412 bytes 45059 (44.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
sit0: flags=193<UP,RUNNING,NOARP> mtu 1480
inet6 ::127.0.0.1 prefixlen 96 scopeid 0x90<compat,host>
sit txqueuelen 0 (IPv6-in-IPv4)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlo1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether ec:55:f9:19:95:3b txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
代码: 全选
$ ping 173.255.216.225
PING 173.255.216.225 (173.255.216.225) 56(84) bytes of data.
64 bytes from 173.255.216.225: icmp_seq=1 ttl=52 time=183 ms
64 bytes from 173.255.216.225: icmp_seq=3 ttl=52 time=182 ms
--- 173.255.216.225 ping statistics ---
3 packets transmitted, 2 received, 33% packet loss, time 2001ms
rtt min/avg/max/mdev = 182.477/183.052/183.628/0.717 ms
代码: 全选
$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=2 ttl=48 time=504 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=48 time=1503 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=48 time=235 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 235.322/747.822/1503.831/545.741 ms, pipe 2
代码: 全选
$ ping www.yahoo.com
PING ds-any-fp3-real.wa1.b.yahoo.com (206.190.36.105) 56(84) bytes of data.
64 bytes from ir2.fp.vip.gq1.yahoo.com (206.190.36.105): icmp_seq=1 ttl=53 time=205 ms
64 bytes from ir2.fp.vip.gq1.yahoo.com (206.190.36.105): icmp_seq=2 ttl=53 time=206 ms
64 bytes from ir2.fp.vip.gq1.yahoo.com (206.190.36.105): icmp_seq=3 ttl=53 time=225 ms
--- ds-any-fp3-real.wa1.b.yahoo.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 205.808/212.638/225.964/9.438 ms
代码: 全选
$ ping www.sina.com.cn
PING ara.sina.com.cn (58.63.236.46) 56(84) bytes of data.
64 bytes from 58.63.236.46: icmp_seq=1 ttl=52 time=341 ms
64 bytes from 58.63.236.46: icmp_seq=2 ttl=52 time=341 ms
64 bytes from 58.63.236.46: icmp_seq=3 ttl=52 time=339 ms
--- ara.sina.com.cn ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 339.388/340.620/341.473/1.011 ms
pptpclient配置文件如下,
代码: 全选
$ cat /etc/ppp/options
lock
noauth
nobsdcomp
nodeflate
refuse-pap
refuse-eap
refuse-chap
usepeerdns
代码: 全选
$ cat /etc/ppp/peers/ytvpn
pty "pptp us1.vpnko.com --nolaunchpppd"
name yufw
remotename ytvpn
ipparam ytvpn
require-mppe-128
file /etc/ppp/options