Wed 18 Jan 2012
yum install pptp-linux yum install pptp vi /etc/ppp/chap-secrets vi /etc/ppp/peers/myvpnname vi /etc/ppp/ip-up
where:
[root@server local]# cat /etc/ppp/chap-secrets # Secrets for authentication using CHAP # client server secret IP addresses VPNUSERNAMEHERE PPTP VPNPASSWORDHERE *
and
[root@server local]# cat /etc/ppp/peers/myvpnname pty "pptp VPNIPADDRESS --nolaunchpppd" name VPNUSERNAMEHERE remotename PPTP require-mppe-128 file /etc/ppp/options.pptp ipparam myvpnname
and
[root@server local]# cat /etc/ppp/ip-up PATH=/sbin:/usr/sbin:/bin:/usr/bin export PATH LOGDEVICE=$6 REALDEVICE=$1 [ -f /etc/sysconfig/network- scripts/ifcfg-${LOGDEVICE} ] && /etc/sysconfig/network-scripts/ifup-post --realdevice ${REALDEVICE} ifcfg-${LOGDEVICE} /etc/ppp/ip-up.ipv6to4 ${LOGDEVICE} [ -x /etc/ppp/ip-up.local ] && /etc/ppp/ip-up.local "$@" exit 0
and then run it!
pppd call myvpnname ip route add 10.0.0.0/8 dev ppp0