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
浙公网安备 33010602011771号