Configure the vpn pptp connection type in CentOS6

Source: Internet
Author: User

Configure the vpn pptp connection type in CentOS6

Today, I want to connect to the remote VPN Server on my CentOS6, but after the following two packages are installed, there is no PPTP option when I select the VPN connection type in the connection configuration.

$ sudo yum install pptp $ sudo yum install NetworkManager-openswan

I checked it and didn't understand why. Later, I found a package named pptp-setup when I used the "sudo yum search pptp" command to find the package. I installed it with a try.

$ sudo yum install pptp-setup

Then I tried to connect to the VPN Server, and it was very easy to connect. below is my usage

$ sudo pptpsetup--create<tunnel>--server<server>--username<username>--password<password>--start

* Tunnel is an alias. You can use it as needed.
* The last parameter -- start indicates that the instance is started immediately after configuration.
After running the preceding command, you will receive a message similar to the following:

[root@webtools] #pptpsetup--createvpn1--serverx.x.x.x--usernamexx--passwordxx--start--encrypt Usinginterfaceppp0 Connect:ppp0<--> /dev/pts/2 CHAPauthenticationsucceeded MPPE128-bitstatelesscompressionenabled local IPaddress192.168.10.101 remoteIPaddress192.168.10.201

This indicates that the connection has been established. You can use ifconfig to view the connection status.
To delete a connection, run the following command:

$ sudo pptpsetup--delete<tunnel>

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.