Install pptpd VPN service in CentOS 6.4

Source: Internet
Author: User
Tags ubuntu vps

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:

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.