Test environment: Linux marsboard 3.4.90 #9 SMP PREEMPT Thu Mar 3 18:28:43 CST armv7l armv7l armv7l gnu/linux (note: A20 Core Board)
Method: Use a PPTP program to dial
Prerequisite: The PPP,PPPD,PPTP program is installed
Description: Documents involved/etc/network/interfaces,/etc/ppp/chap-secrets,/etc/ppp/peers/vpn (self-created),
Note: In the content, the same color tag, is relevant. The method does not involve the MMPE encryption
Specific steps:
1, installation of PPP, PPPD, PPTP program, General PPP, PPPD system will be brought, using Apt-get install Pptp-linux command according to PPTP
2, add the following content in/etc/network/interfaces:
Auto Ppp0
Iface ppp0 inet PPP
Provider VPN
3, add the following content in/etc/ppp/chap-secrets:
username PPTP YourPassword *
4, new/etc/ppp/peers/VPN file, add the following:
Name username
RemoteName PPTP
Replacedefaultroute
Password yourpassword
File "PPTP vpn_server_ip --NOLAUNCHPPPD"
Description: The name of PPTP is consistent with PPTP in step 3; VPN_SERVER_IP is the VPN server IP address
5. Use Ifup ppp0 to start the connection, use Ifdown ppp0 to close the connection
6, Results view: Use Ifconfig to see whether Ppp0 appears, and then ping the relevant IP verification can be. If Ifup ppp0 not respond, can ifdown ppp0 after, then Ifup ppp0
Reference from: Http://wenku.baidu.com/link?url=hLBeA-mQkgeKHmxu7U_ Ceivp-fexihvmewywamrdxhntaw0jq2ph4bwefzayk0m0fuuhotpunhgp4s9hbuq_lavfwz_u00rgclgh8yhg_fq
Linux PPTP dialing