36
Network Feature | Korenix
PPTP establishes the client side of a Virtual Private Network (VPN) using the Point-to-Point
Tunneling Protocol (PPTP). Use this program to connect to an employer's PPTP based VPN, or
to certain cable and ADSL service providers.
Example
:
The PPTP Server has the following information:
The IP address of the server ($SERVER)
The authentication domain name ($DOMAIN)
The username you are to use ($USERNAME)
The password you are to use ($PASSWORD)
In the steps below, substitute these values manually..
Edit the config file /etc/ppp/options.pptp, which sets options common to all tunnels:
lock noauth nobsdcomp nodeflate
Add authentication information to /etc/ppp/chap-secrets file:
# Secrets for authentication
$DOMAIN\\$USERNAME PPTP $PASSWORD *
Create a /etc/ppp/peers/$TUNNEL_NAME file.
# Secrets for authentication
pty "pptp $SERVER --nolaunchpppd"
name $DOMAIN\\$USERNAME
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam $TUNNEL_NAME
Start the tunnel using the pppd command:
pppd call $TUNNEL_NAME
The following picture is the success output with tunnel name “test” and server ip address
“192.168.1.54”.