当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : lubuntu配置pptp
帖子发表于 : 2016-11-08 16:19 

注册: 2010-02-12 19:47
帖子: 68
送出感谢: 19
接收感谢: 0 次
lubuntu 16.1 VPN没有PPTP,看帖子想命令行设置VPN。

pptpd是在论坛上买的服务器里根据教程配置的。教程:http://wiki.ubuntu.org.cn/Vps#.E9.85.8D.E7.BD.AE_pptpd。参数除了密码不一样,其它完全一致。
服务器那应该没什么问题,手机可以联上,以前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]
网页也打不开


页首
 用户资料  
 
2 楼 
 文章标题 : Re: lubuntu配置pptp
帖子发表于 : 2016-11-28 20:37 

注册: 2016-06-21 13:16
帖子: 118
送出感谢: 0 次
接收感谢: 3
建议玩玩L2TP/IPSEC/AnyConnect吧,国内已经和谐PPTP/L2TP


页首
 用户资料  
 
3 楼 
 文章标题 : Re: lubuntu配置pptp
帖子发表于 : 2016-12-02 14:23 
头像

注册: 2007-03-15 16:58
帖子: 2802
地址: 湖北武汉
送出感谢: 2
接收感谢: 4
上个网不容易


_________________
引用:


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 3 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 0 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译