In Linux, dial the VPN Network of the Virtual Network Management Network in pptp Mode

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.