0.0

0.0_第1张图片apt install pptpd
vim /etc/pptpd.conf(localip你主机的ip remoteip 10.100.0.2-10)
vim /etc/ppp/pptpd-options(ms-dns 8.8.8.8 ms-dns 8.8.4.4)
vim /etc/ppp/chap-secrets(“user” pptpd “user”)
vim /etc/init.d/pptpd restart
vim /etc/sysctl.conf(net.ipv4.ip_forward=1)
sysctl -p
apt install iptables
iptables -t nat -A POSTROUTING -s 10.100.0.0/24 -o eth0 -j MASQUERADE
iptables-save > /etc/iptables-rules

你可能感兴趣的:(杂项,0.0)