Build PPTPServer with a single Nic Ubuntu Server

Source: Internet
Author: User
Reprinted, but failed, just to prevent future backup of similar data. In fact, the author wrote in detail, but I clearly set RemoteIP, but it cannot be obtained correctly. I don't know if it is because of VPS. Of course, maybe I am too stupid. The original Article is as follows. For example, click here to view the original article. Since a Linux server is installed in the lab, more and more things are available. Although the main job of this server is WebServer, in view of the low pressure on our small site, there is a huge amount of server resources.

Reprinted, but failed, just to prevent future backup of similar data.

In fact, the author wrote in detail, but I clearly set RemoteIP, but it cannot be obtained correctly. I don't know if it is because of VPS. Of course, maybe I am too stupid. Let's talk about it later.

The original text is as follows, as shown in the original text, click here:

Since a Linux server is installed in the lab, more and more things are available. Although the main job of this Server is Web Server, it is a good choice to let it do more work, because the pressure on our small site is very small and the vast majority of Server resources are still wasted. There are many useful resources in the internal network of the laboratory, such as scientific research documents and personal experiment data. Once the lab leaves, such content is not so easy to access. The best solution to this problem is VPN. There are many methods to build a VPN Server on Ubuntu, including PPTP, L2TP/IPSec, and OpenVPN. Among the three methods, the latter two have better security, but the configuration is troublesome. OpenVPN also requires additional clients on the Windows/Mac platform. Although the L2TP/IPSec method is relatively good, but after I configure it, although Windows and Linux users are normal, Mac/iPhone cannot be connected, so I deleted it temporarily, later, I figured out what the problem was and switched to this method.

Only PPTP is left. In fact, PPTP is the easiest way to configure the three, and it is very convenient to use because the corresponding clients are built in Windows/Mac systems. Next I will simply write my installation process, hoping to be useful to friends who need it. If you have any comments, you are welcome to raise them.

First, all my operations are performed on the Ubuntu 8.04 Server system described in the previous article. If your system is different from mine, please refer to the previous two articles. My server environment is a single Nic eth0.

The required software package for building pptp server in Ubuntu is pptpd, which can be installed with apt-get:

The sudo apt-get install pptpd system automatically resolves the dependency. After the dependency is installed, you need to set the dependency. First edit/etc/pptpd. conf

Sudo nano/etc/pptpd. conf removes the comments of the localip and remoteip parameters at the end of the file, and modifies them accordingly. Here, localip is the ip address of the server after VPN connection, while remoteip is the client's allocable ip address. The following is my Configuration:

After the localip 10.100.0.1remoteip 10.100.0.2-10 file is edited, We need to edit the/etc/ppp/pptpd-options file with nano. The command will not be written here. Here, the vast majority of parameters only need to maintain the original default value. We only need to change the ms-dns option and assign the DNS server address to the VPN Client:

Related Article

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.