Chen Jian

导航

 

peers/pcbvpn

# replace the bracket paramters with the host name of the VPN server and VPN user
remotename pcbvpn
#linkname pcbvpn
ipparam pcbvpn#config name
pty "pptp xxx.com --nolaunchpppd "
name username
usepeerdns
#require-mppe
#refuse-eap
noauth

# adopt defaults from the pptp-linux package
file /etc/ppp/options.pptp

 chap-secrets

# client	server	secret			IP addresses

username  confname password *

 ip-up.local

#!/bin/sh
network=`echo $IPREMOTE | awk -F\. '{print $1"."$2"."$3".0/24"}'`
route add -net $network $IFNAME

 and chmod a+x to file

options.pptp

lock

noauth

nobsdcomp
nodeflate


require-mppe-128

 

posted on 2018-03-24 13:31  Chen Jian  阅读(175)  评论(0)    收藏  举报