VPSLinuxCentos6.3 build a VPN (pptpd) server

Source: Internet
Author: User
Tags vps linux
VPSLinuxCentos6.3 build a VPN (pptpd) server 1. find the software package: run wget in Centos http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.el6.x86_64.rpm (It looks like sourceforge.net. I am using this campus network to build a VPS Linux Centos6.3 VPN (pptpd) server. 1. find the software package: run wget in Centos http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.el6.x86_64.rpm (It seems that sourceforge.net cannot be opened on the campus network, and OpenShift is used to download it.) 2. check system support and install the ppp and iptables package. The latter is usually installed by default. use the local yum source yum install-y ppp iptables3. install the pptpd package. Needless to say, rpm-ivh can be rpm-ivh pptpd-1.3.4-2.el6.x86_64.rpm4. query where pptpd files are located [root @ localhost opt] # rpm-ql pptpd/etc/ppp/options.ppt pd/etc/pptpd. conf/etc/rc. d/init. d/pptpd/usr/bin/vpnstats. pl/usr/bin/vpnuser/usr/lib64/pptpd/pptpd-logwtmp.so/usr/sbin/bcrelay/ Usr/sbin/pptp-portslave/usr/sbin/pptpctrl/usr/sbin/pptpd/usr/share/doc/pptpd-1.3.4/usr/share/doc/pptpd-1.3.4/AUTHORS/usr/ share/doc/pptpd-1.3.4/COPYING/usr/share/doc/pptpd-1.3.4/ChangeLog/usr/share/doc/pptpd-1.3.4/INSTALL/usr/share/doc/pptpd-1.3.4/README/usr/ share/doc/pptpd-1.3.4/README. bcrelay/usr/share/doc/pptpd-1.3.4/README. cvs/usr/share/doc/pptpd-1.3.4/README. inetd/usr/share/doc/pptpd-1.3.4/REA. Logwtmp/usr/share/doc/pptpd-1.3.4/README. portslave/usr/share/doc/pptpd-1.3.4/README. slirp/usr/share/doc/pptpd-1.3.4/TODO/usr/share/doc/pptpd-1.3.4/samples/usr/share/doc/pptpd-1.3.4/samples/chap-secrets/usr/share/ doc/pptpd-1.3.4/samples/options.ppt pd/usr/share/doc/pptpd-1.3.4/samples/pptpd. conf/usr/share/man/man5/pptpd.conf.5.gz/usr/share/man/man8/pptpctrl.8.gz/usr/share/man/man8/pptpd.8.gz [roo T @ localhost opt] # it seems messy ~ Okay, let's just explain the configuration problem through cat. [Root @ localhost opt] # cat/etc/ppp/options.ppt pd | grep-v ^ $ | grep-v ^ # name pptpd // server name refuse-pap /// reject pap authentication refuse-chaprefuse-mschaprequire-mschap-v2require-mppe-128ms-dns 192.168.8.2 // Configure the dnsms-dns 8.8.8.8proxyarplocknobsdcompnovjnovjccompnologfd [root @ localhost opt] # In fact, after the default installation, the file only needs to set the ms-dns address. [Root @ localhost opt] # cat/etc/pptpd. conf | grep-v ^ $ | grep-v ^ # option/etc/ppp/options.ppt pdlogwtmplocalip 192.168.22.22 // The local IP address of the vpn service remoteip 192.168.22.23-230 // assigned to the VPN the IP address range of the client [root @ localhost opt] # [root @ localhost opt] # cat/etc/ppp/chap-secrets # Secrets for authentication using CHAP # client server secret IP addressesKuTea. net pptpd 123321 * [root @ localhost opt] # This table will be filled in after you read it. the * number indicates that this is the reason. You can also limit the IP address range. The above is the configuration of PPTPD, and it will be available again. Simply put, the following is the configuration of the firewall. you only need to make a forwarding. Iptables-t nat-a postrouting-o eth0-s 192.168.22.0/24-j SNAT-to 192.168.9.133iptables-save, you can see that the above table is successful. You can establish a vpn connection.
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.