pptp-linux配置过程

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
xiaowl
帖子: 19
注册时间: 2007-01-07 14:24
送出感谢: 0
接收感谢: 0

pptp-linux配置过程

#1

帖子 xiaowl » 2007-01-08 15:11

  $sudo apt-get install pptp-linux
  $sudo gedit /etc/ppp/chap-secrets
  add follow lines
--------------------------------------------
  # Secrets for authentication using CHAP
  # client server secret IP addresses
  prcmis PPTP fw-prcmis *
--------------------------------------------
  $sudo gedit /etc/ppp/options.pptp
  add follow lines
--------------------------------------------
  # Lock the port
  lock
  
  # Authentication
  # We don't need the tunnel server to authenticate itself
  noauth
  
  # We won't do EAP, CHAP, or MSCHAP, but we will accept MSCHAP-V2
  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 with of the following sections you will use. Note that MPPE
  # requires the use of MSCHAP-V2 during authentication)
  
  # 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
  # {{{
  # Require MPPE 128-bit encryption
  #require-mppe-128 -----需要mppe加密的话打开这一条
  # }}}
  
  # http://polbox.com/h/hs001/ 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
  # }}}
------------------------------------------ 
  
  $sudo gedit /etc/ppp/peers/je
  add follow lines into the file
-----------------------------------------
  pty "pptp www.example.com//这里是连接的服务器地址 --nolaunchpppd"
  name prcmis//这里是验证的用户
  remotename PPTP
  #require-mppe-128//需要加密打开这条
  file /etc/ppp/options.pptp
  ipparam je//这里是连接的通道名称
---------------------------------------------
  
  
  $sudo pon je //连接je
  $pon je debug dump logfd 2 nodetach //dbug模式,有连接日志
  $sudo poff je//断开je
====================================================== 
  after u connect successful ,u must set up routing
  ex
  route add -net 192.168.0.0 netmask 255.255.255 gw 192.168.0.1
  
回复

回到 “服务器基础应用”