提醒:本文最后更新于 2021-09-26 18:33,文中所关联的信息可能已发生改变,请知悉!
1.pptpd 服务端
#yum install pptpd
#service firewalld stop
#vi /etc/pptpd.conf
localip 192.168.2.111
remoteip 192.168.2.112-253
#vi /etc/ppp/chap-secrets
yilian pptpd 12345678 *
#vi /etc/ppp/options.pptpd
ms-dns 8.8.8.8
ms-dns 114.114.114.114
#vi /etc/sysctl.conf
net.ipv4.ip_forward = 1
#sysctl -p
service pptpd start
2. 服务端
service firewalld stop
iptables -Z
iptables -F
iptables -X
iptables -t nat -I POSTROUTING -s 192.168.2.0/24 -j MASQUERADE
正文完