CentOS6yum install pptp

Source: Internet
Author: User
CentOS6yum the advantage of installing pptp in yum mode is that it is easy to manage. you can use the yumupdate command to upgrade the program version. Install ppp and iptalbesviewsourceprint? 1yuminstallpppiptables install pptpd add to yum source add... CentOS6 yum install pptp install via yum to facilitate management, you can use yum update command to upgrade the program version. Install ppp and iptalbes 1yum install ppp iptables install pptpd add yum source 1 rpm-Uvh http://poptop.sourceforge.net/yum/stable/rhel6/pptp-release-current.noarch.rpm Install pptpd 1yum install pptpd --------------------------------- set -------------------------------------- to enable route forwarding 1vim/etc/sysctl. conf modify net. run ipv4.ip _ forward = 1:/sbin/sysctl-p to make the modified kernel parameters take effect. configure vim/etc/ppp/options.ppt pd: ms-dns 4.2.2.1 local dns ms-dns 4.2.2.2 vim/etc/pptpd. conf modification: localip 10.8.8.1 is the ip address of the vpn pipe (VPN host IP) remoteip 10.8.8.2-245 is the ip address range allocated to the client connection. start and run 1 chkconfig pptpd on2 3 service Pptpd start Add Account 1 echo-e 'vpntest * vpntestpassword * '>/etc/ppp/chap-secrets note: The client connection information saved by chap-secrets is sequential: user name, service name, password, and allowed ip address. The service name is defined in the name of options.ppt pd, the default value is pptpd iptables. configure 01 chkconfig iptables on02 03/sbin/iptables-a input-p tcp -- dport 1723-j ACCEPT04 05/sbin/iptables-a input-p tcp -- dport 47. -j ACCEPT06 07/sbin/iptables-a input-p gre-j ACCEPT08 09 iptables-a postrouting-t nat-s 10.10.10.0/24-o eth0-j MASQUERADE10 11 service iptables start

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.