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)
modprobe ppp-compress-18&& echo success
It should output "success", if it is not supported, try to install:
yum install kernel-devel
cat /dev/net/tun
Should output:
cat:/dev/net/tun: File descriptor in bad state
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.
yum install epel-release
yum install ppp pptpd net-tools iptables-services -y
/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*
echo net.ipv4.ip_forward =1>>/etc/sysctl.conf
sysctl -p #to validate
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
service pptpd restart
chkconfig pptpd on
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