lubuntu配置pptp

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
sluding
帖子: 70
注册时间: 2010-02-12 19:47

lubuntu配置pptp

#1

帖子 sluding » 2016-11-08 16:19

lubuntu 16.1 VPN没有PPTP,看帖子想命令行设置VPN。

pptpd是在论坛上买的服务器里根据教程配置的。教程:http://wiki.ubuntu.org.cn/Vps#.E9.85.8D ... 。参数除了密码不一样,其它完全一致。
服务器那应该没什么问题,手机可以联上,以前ubuntu用图形界面配置VPN也可以联上。

客户端这边装的是 pptp-linux。
下面是我能想到的有关的信息,可能是哪配置不对?

代码: 全选

y@y-desktop:/etc/ppp/peers$ ifconfig
enp1s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.104  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::4d4a:b076:98c6:4892  prefixlen 64  scopeid 0x20<link>
        ether 00:16:96:19:87:f0  txqueuelen 1000  (Ethernet)
        RX packets 246788  bytes 268066251 (268.0 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 218063  bytes 27045741 (27.0 MB)
        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 1  (Local Loopback)
        RX packets 91223  bytes 50573991 (50.5 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 91223  bytes 50573991 (50.5 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1496
        inet 10.0.0.2  netmask 255.255.255.255  destination 10.0.0.1
        ppp  txqueuelen 3  (Point-to-Point Protocol)
        RX packets 6  bytes 60 (60.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 6  bytes 66 (66.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

代码: 全选

y@y-desktop:/etc/ppp/peers$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0
10.0.0.1        0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
172.246.141.147 192.168.0.1     255.255.255.255 UGH   0      0        0 enp1s8
192.168.0.0     0.0.0.0         255.255.255.0   U     100    0        0 enp1s8

代码: 全选

y@y-desktop:/etc/ppp/peers$ ip route
default dev ppp0  scope link 
10.0.0.1 dev ppp0  proto kernel  scope link  src 10.0.0.2 
172.246.141.147 via 192.168.0.1 dev enp1s8  src 192.168.0.104 
192.168.0.0/24 dev enp1s8  proto kernel  scope link  src 192.168.0.104  metric 100

代码: 全选

y@y-desktop:/etc/ppp$ cat options.pptp
###############################################################################
# $Id: options.pptp,v 1.4 2012/08/30 21:34:13 quozl Exp $
#
# Sample PPTP PPP options file /etc/ppp/options.pptp
# Options used by PPP when a connection is made by a PPTP client.
# This file can be referred to by an /etc/ppp/peers file for the tunnel.
# Changes are effective on the next connection.  See "man pppd".
#
# You are expected to change this file to suit your system.  As
# packaged, it requires PPP 2.4.2 or later from http://ppp.samba.org/
# and the kernel MPPE module available from the CVS repository also on
# http://ppp.samba.org/, which is packaged for DKMS as kernel_ppp_mppe.
###############################################################################

# Lock the port
lock

# Authentication
# We don't need the tunnel server to authenticate itself
noauth

# We won't do PAP, EAP, CHAP, or MSCHAP, but we will accept MSCHAP-V2
# (you may need to remove these refusals if the server is not using MPPE)
refuse-pap
refuse-eap
refuse-chap
refuse-mschap

# Compression
# Turn off compression protocols we know won't be used
nobsdcomp
nodeflate

# Encryption
# (There have been multiple versions of PPP with encryption support,
# choose which of the following sections you will use.  Note that MPPE
# requires the use of MSCHAP-V2 during authentication)
#
# Note that using PPTP with MPPE and MSCHAP-V2 should be considered
# insecure:
# http://marc.info/?l=pptpclient-devel&m=134372640219039&w=2
# https://github.com/moxie0/chapcrack/blob/master/README.md
# http://technet.microsoft.com/en-us/security/advisory/2743314

# http://ppp.samba.org/ the PPP project version of PPP by Paul Mackarras
# ppp-2.4.2 or later with MPPE only, kernel module ppp_mppe.o
# If the kernel is booted in FIPS mode (fips=1), the ppp_mppe.ko module
# is not allowed and PPTP-MPPE is not available.
# {{{
# Require MPPE 128-bit encryption
#require-mppe-128
# }}}

# http://mppe-mppc.alphacron.de/ fork from PPP project by Jan Dubiec
# ppp-2.4.2 or later with MPPE and MPPC, kernel module ppp_mppe_mppc.o
# {{{
# Require MPPE 128-bit encryption
#mppe required,stateless
# }}}

代码: 全选

y@y-desktop:/etc/ppp$ traceroute www.baidu.com
traceroute to www.baidu.com (61.135.169.121), 30 hops max, 60 byte packets
 1  10.0.0.1 (10.0.0.1)  964.874 ms  965.323 ms  965.646 ms
^C

sudo apt install w3m 停在 0% [Waiting for headers]
网页也打不开
manami5
帖子: 116
注册时间: 2016-06-21 13:16

Re: lubuntu配置pptp

#2

帖子 manami5 » 2016-11-28 20:37

建议玩玩L2TP/IPSEC/AnyConnect吧,国内已经和谐PPTP/L2TP
头像
lhw828
帖子: 2797
注册时间: 2007-03-15 16:58
来自: 湖北武汉
联系:

Re: lubuntu配置pptp

#3

帖子 lhw828 » 2016-12-02 14:23

上个网不容易
回复