Install pptpd VPN service in CentOS 6.4
Install pptpd VPN service in CentOS 6.4
I. Environment Introduction
Pptpd is often used to penetrate the wall or manage servers in the IDC
1) CentOS 6.4 64bit minimal
Ii. Service Installation
$ Wget http://poptop.sourceforge.net/yum/stable/rhel6Server/pptp-release-current.noarch.rpm
$ Rpm-ivh pptp-release-current.noarch.rpm
$ Yum install pptpd ppp
Iii. Configuration
$ Vi/etc/pptpd. conf
Option/etc/ppp/options.ppt pd
Localip 172.16.7.1
Remoteip 172.16.7.30-100
$ Vi/etc/ppp/options.ppt pd
Name pptpd
Refuse-pap
Refuse-chap
Refuse-mschap
Require-mschap-v2
Require-mppe-128
Proxyarp
Lock
Nobsdcomp
Novj
Novjccomp
Nologfd
Ms-dns 114.114.114.114
Ms-dns 114.114.115.115
$ Vi/etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# Client server secret IP addresses
Dog pptpd pSc6Vgw55bb 172.16.7.31
4. Start
$/Etc/init. d/pptpd start
$ Vi/etc/sysctl. conf
Net. ipv4.ip _ forward = 1
$ Sysctl-p
# Iptables forwarding over the Internet
$ Iptables-t nat-a postrouting-o eth0-j MASQUERADE
5. Check
$ Ps aux | grep pptpd
$ Netstat-ntlp | grep pptpd
Vi. Client installation
$ Yum install-y pptp ppp pptp-setup
# Using pptpsetup for customer configuration is a good tool, of course, you can also configure it yourself
# Pptpsetup -- create vpn-jiao -- server x. x -- username dog -- password passwd -- encrypt
# Manual Configuration
$ Vi/etc/ppp/peers/vpn-test
Pty "pptp x. x -- nolaunchpppd"
Lock
Noauth
Nobsdcomp
Nodeflate
Name dog
Remotename vpn-test
Ipparam vpn-test
Require-mppe-128
# Manually configure the password
$ Vi/etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# Client server secret IP addresses
Dog vpn-test "pSc6Vgw55bb "*
# Run Manual dialing
$ Pppd call vpn-test updetach
# Check
$ Ps aux | grep pptp
CentOS 6.2 PPTPd installation experience
Configure Linux pptp vpn Public Network VPN
Build and configure PPTP and OpenVPN in CentOS5-based Linux
Use PPTP to build a VPN
PPTPD for RHEL5.4 VPN service configuration
The problem of configuring NAT forwarding in PPTPd on Ubuntu VPS
This article permanently updates the link address: