Build a remote VPN (pptpd) for CentOS)

Source: Internet
Author: User
Tags network function
VPN is a virtual private network. The virtual private network function is to establish a private network on a public network for encrypted communication. It is widely used in enterprise networks. VPN gateway implements remote access through data packet encryption and data packet destination address conversion. VPN can be classified by protocol. VPN can be implemented through servers, hardware, software, and other methods. VPN features low cost and ease of use. 1

VPNThat is, virtual private network.

The virtual private network function is to establish a private network on a public network for encrypted communication. It is widely used in enterprise networks. VPN gateway implements remote access through data packet encryption and data packet destination address conversion. VPN can be classified by protocol. VPN can be implemented through servers, hardware, software, and other methods. VPN features low cost and ease of use.

1. install the dependency package

Yum install ppp-y

2. download the pptpd service package

Wget ftp://rpmfind.net/linux/epel/6/x86_64/pptpd-1.4.0-3.el6.x86_64.rpm
Rpm-ivh pptpd-1.4.0-3.el6.x86_64.rpm
3. modify the configuration file

Vim/etc/ppp/options.ppt pd -- configure server DNS

Name pptpd -- specify the pptpd service

Ms-dns 8.8.8.8 -- cancel the previous # and write DNS
Ms-dns 8.8.4.4

Vim/etc/pptpd. conf
Ppp/usr/sbin/pppd -- cancel this line of comment
Localip 154.87.20.4, 154.87.87.67, 154.87.85.73 -- cancel this line of comment. here, I write three Internet IP addresses, indicating that three VPNs are set up.
Remoteip 192.168.0.1-10,192.168 .0.20 -- the IP address assigned to the client when connecting to the VPN service

Vim/etc/ppp/chap-secrets -- user name used to log on to the VPN

The user name used to log on to the client is used to allocate the fixed IP address of the client to the service login password (* indicates any)

Test1 pptpd test1 *

Test2 pptpd test2 *

Test3 pptpd test3 192.168.0.9

/Etc/init. d/pptpd restart -- restart the service

4. the test is successful.

 

 

 

 

 

 


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.