CentOS 7 installation and configuration PPTP

CentOS 7 installation and configuration PPTP

Date: 2019-06-13undefined Category: V** series undefined Title: CentOS 7 installation and configuration PPTPundefined Source: [Reproduced, minor corrections] (http://blog.topspeedsnail.com/archives/8492)

Installation check###

  1. Check if the system supports PPTP V** before installation
modprobe ppp-compress-18&& echo success

It should output "success", if it is not supported, try to install:

yum install kernel-devel
  1. Whether to enable TUN/TAP:
cat /dev/net/tun

Should output:

cat:/dev/net/tun: File descriptor in bad state
  1. Whether to open ppp:
cat /dev/ppp

Should output:

cat:/dev/ppp: No such device or address

Ensure that the above 3 conditions are met. If they are not met, it means that PPTP V** cannot be installed.

installation steps###

1. pptpd in epel warehouse, first install epel warehouse:
yum install epel-release
2. Install the required packages:
yum install ppp pptpd net-tools iptables-services -y
3. Configure pptpd

/etc/pptpd.conf

option /etc/ppp/options.pptpd
logwtmp
localip 10.0.10.1  #Set the IP address of the pptp virtual network card interface (note: not the public IP of the server)
remoteip 10.0.10.2-254 #V for dial-in**IP address pool dynamically allocated by users

/etc/ppp/options.pptpd

name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
ms-dns 114.114.114.114
ms-dns 8.8.4.4
proxyarp
lock
nobsdcomp 
novj
novjccomp
nologfd

/etc/ppp/chap-secrets user and password

# Secrets for authentication using CHAP
# client	server	secret			IP addresses
user_test1       pptpd   123456*
user_test2       pptpd   123456*
4. Turn on IP forwarding#####
echo net.ipv4.ip_forward =1>>/etc/sysctl.conf
sysctl -p   #to validate
5. Configure firewall
systemctl stop firewalld
systemctl disable firewalld  #If using firewallid
service iptables save
service iptables stop
chkconfig iptables off
iptables -F
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Add boot

echo "iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE">>/etc/rc.d/rc.local
chmod +x /etc/rc.d/rc.local
6. Start and join boot
service pptpd restart
chkconfig pptpd on

related articles####

Serial number title
1 One-click installation of ocserv (anyconnect server) via script: (https://www.pvcreate.com/index.php/archives/193/)
2 CentOS7 uses Ocser to build a CiscoAnyconnect server (configuration use): (https://www.pvcreate.com/index.php/archives/195/)
3 One-click installation of openV via script**:(https://www.pvcreate.com/index.php/archives/194/)
4 OpenV** monitors both TCP and UDP ports: (https://www.pvcreate.com/index.php/archives/196/)
5 CentOS 7 installation and configuration PPTP: (https://www.pvcreate.com/index.php/archives/197/)

Recommended Posts

CentOS 7 installation and configuration PPTP
Centos mysql installation and configuration
Centos7 installation and configuration prometheus
CentOS installation and configuration cmake
Centos7 installation and configuration of Jenkins
Centos7 hadoop cluster installation and configuration
Java-JDK installation and configuration under CentOS
CentOS 7 Tomcat service installation and configuration
CentOS NTP server installation and configuration
Centos7 mysql database installation and configuration
Tomcat installation and configuration under CentOS 7 (Tomcat startup)
MySQL 8.0 installation, deployment and configuration under CentOS 6/7
Installation and configuration of redis under centos7
Mysql8.0.15 installation configuration (centos7)
Centos7 hive stand-alone mode installation and configuration
Installation and configuration of JDK in CentOS 7 system
CentOS 6.5 system installation and configuration graphic tutorial (detailed graphic)
CentOS 7 installation and configuration graphic tutorials under VMware10
Installation and configuration of rsync server under CentOS 6.5
Installation and configuration of CentOS 7 in VMware Workstation
MySQL 8.0 installation, deployment and configuration tutorial on CentOS 8
Ubuntu16.04 installation and simple configuration
centos7 kvm installation and use
CentOS7 postgresql installation and use
Ubuntu PostgreSQL installation and configuration
Centos7 elk7.1.1 installation and use
2019-07-09 CentOS7 installation
centos7_1708 installation
CentOS 8 install Git and basic configuration
Centos6.5 installation and deployment of KVM
CentOS7 installation and maintenance of Gitlab
CentOS7.2 and Nginx configuration virtual host
CentOS 7.X system installation and optimization
Centos 7 RAID 5 detailed explanation and configuration
Ubuntu 19.1 installation and configuration Chinese environment
Configuration and beautification after Ubuntu installation (1)
Nginx installation and configuration load (ubuntu12.04)
CentOs7 installation and deployment Zabbix3.4 original
Erlang 20.2 installation and deployment under CentOS 7
Ubuntu configuration source and installation software
Detailed explanation of Spark installation and configuration tutorial under centOS7
CentOS7.0 network configuration
Installation and use of Mysql under CentOS
CentOS 7.0 network configuration
Centos7.5 configuration java environment installation tomcat explanation
Centos-6.5 installation and deployment of LNMP environment
Python - centos6 installation
Centos7.6 operating system installation and optimization record
Centos7 installation and deployment of gitlab server
Docker installation (CentOS7 installation)
Centos python3 compile installation and compile gcc upgrade
Zabbix installation and deployment and localization under CentOS
CentOS7 installation zabbix 4.0 tutorial (graphics and text)
Jenkins installation and deployment tutorial under CentOS 7
CentOS7 docker installation
KVM installation and preliminary use under CentOS 7.2
Centos MySQL8 configuration
DLNA/UPnP Server installation and configuration under Ubuntu 12.04
Centos7 installation and deployment of Airflow detailed
Centos7 configuration host name and IP address
Debian and Ubuntu installation source configuration file description