centos7安装pptpd (No package pptpd available)

  • Post author:
  • Post category:其他


1. 安装PPTP服务

vim /etc/yum.repos.d/Doylenet.repo


添加以下内容:

[doylenet]
name=Doylenet custom repository for CentOS
baseurl=http://files.doylenet.net/linux/yum/centos/5/i386/doylenet/
gpgcheck=1
gpgkey=http://files.doylenet.net/linux/yum/centos/RPM-GPG-KEY-rdoyle
enabled=1

2. 安装PPTPD

yum update
yum install pptpd

3. pptpd配置

1. 修改配置文件
vi /etc/pptpd.conf


添加以下内容

localip 192.168.0.1
remoteip 192.168.0.101-200
2. 修改配置文件
vi /etc/ppp/chap-secrets


添加一下内容

usernameForuser1 pptpd  setpassword1here  *

4. 允许IP转发


在sysctl中开启IP转发

vim /etc/sysctl.conf

# Controls IP packat forwarding
net.ipv4.ip_forward = 1

参考:


CentOS 7 中 pptpd安装



Centos 7搭建VPN(PPTP)服务器方法