Hi.baidu.com/lqplyx518
If you need to dial in the Virtual Network Management (http://www.vpnlife.co m) in Linux, you need to install the corresponding VPN Client under Linux, this article will introduce the way to dial into the virtual network management VPN in pptp.
This operation is completed on a text terminal and does not involve graphic operations. This document assumes that you have a certain understanding of Linux commands and does not explain the commands.
The following operations are completed under the root user, and assume that your Linux system has installed the compiling environment.
1. Download the pptp Client
Wget http://nchc.dl.sourceforge.net/sourceforge/pptpclient/pptp-1.7.1.tar.gz
2. Decompress
Tar zxvf pptp-1.7.1.tar.gz
3. Compile and install
Make; make install
4. Edit the configuration file and set the dialing name to mypptp.
Vim/etc/ppp/peers/mypptp
The content is as follows:
Remotename mypptp
Linkname mypptp
Ipparam mypptp
Pty "pptp vpn.vpnlife.com -- nolaunchpppd"
Name myaccount
Usepeerdns
Require-mppe
Refuse-eap
Noauth
File/etc/ppp/options.ppt p
Myaccount is the user name.
5. edit/etc/ppp/chap-secrets and add the username and account. Assume that the password of myaccount is mypassword.
Myaccount * mypassword *
6. Dial up and run the following command
/Usr/sbin/pppd call mypptp logfd 1 updetach
If the above configuration file is correct, you can normally dial in the pptp VPN Network of the virtual network management. If you use ifconfig to view the connection status, you can see that there is an additional ppp connection, and can be correctly assigned to the IP address.
7. Add a route
Although it has already been dial-up, if you want to access your virtual LAN resources, you must add a route. Here we assume that the connection name you dialed is ppp0, and the IP address segment of your virtual LAN is 192.168.163.0, you need to add the following command:
Route add-net 192.168.163.0 netmask 255.255.255.0 dev ppp0
Now, in Linux, the VPN Network of the virtual network management is in pptp mode.
The above operations are performed under Ubutun 8.1, Fedora 7, 8, 9, and 10.