Set a VPN connection in Ubuntu

Source: Internet
Author: User
Previously, the Hadoop environment was set up in a Windows VPN (VPN connection is because it can connect to the network of the instructor's lab and use the network environment of the lab to allocate virtual machines to the instructor ). No VPN connection has been tried in Ubuntu. The connection is successful !! Now write down the process. Before establishing a VPN connection, you must first establish and install pptp graphics software on the system. The specific command is as follows: www.linuxidc.com @ vpn :~ $ Sudoap

Previously, the Hadoop environment was set up in a Windows VPN (VPN connection is because it can connect to the network of the instructor's lab and use the network environment of the lab to allocate virtual machines to the instructor ). No VPN connection has been tried in Ubuntu. The connection is successful !! Now write down the process.

Before establishing a VPN connection, you must first establish and install pptp graphics software on the system. The specific command is as follows:

Www.linuxidc.com @ vpn :~ $ Sudo apt-get install network-manager-gnome network-manager-pptp

Www.linuxidc.com @ vpn :~ $ Sudo NetworkManager restart

Next, we will start setting. Click the network connection icon, select "VPN connection", and click the Add button in the displayed window. The following window appears for Configuration:

Enter the "connection name" at will. The name is only used to distinguish different VPN connections on the local machine. The following "Gatway" is the IP address of another host that needs to establish a VPN connection with it. "User name" and "password" are the username and password used to log on to another host. After filling in the above three items, click "Advance" below to display the following interface:

Select "User Point-to-Point encryption", and set other options as default. Click OK to return to the previous window, and then click Save.

Finally, Because Ubuntu has a bug, it uses EAP for authentication by default. NetworkManager does not support disable EAP authentication. You must set it with gconf-edit. Enter "gconf-editor" on the terminal. The following interface is displayed:

Select "system-> networking-> connection-> 1-> vpn". Some keys and corresponding values will appear on the right of the window. Right-click the blank space and select the "New Key" option. The following dialog box is displayed and you can set it:

Remember to enter "refuse-eap" as the "name", select "string" as the type, and enter "yes" as the value ". Click OK to complete the settings. Next, click the network connection icon and select "VPN connection-> VPN name" to connect to the VPN Server.

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.