debian 10 install pptpd

apt install pptpd
apt install firewalld

vim /etc/pptpd.conf 要加入:
localip 192.168.0.21
remoteip 192.168.1.5-238,192.168.1.245

vim /etc/ppp/pptpd-options 要加入:
ms-dns 8.8.8.8
ms-dns 8.8.4.4

vim /etc/ppp/chap-secrets 要加入:
username <TAB> * <TAB> users-password <TAB> *

sudo /etc/init.d/pptpd restart

vim /etc/firewalld/firewalld.conf 有個InvividualCalls=no 把它改成InvividualCalls=yes


firewall-cmd --zone=public --permanent --add-port=1723/tcp
firewall-cmd --zone=public --add-masquerade --permanent
firewall-cmd --permanent --direct --add-rule ipv4 nat POSTROUTING 0 -o ens33 -j MASQUERADE
firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -i ens33 -p gre -j ACCEPT
firewall-cmd --permanent --direct --add-rule ipv4 filter FORWARD -p tcp --tcp-flags SYN,RST SYN -s 192.168.1.0/24 -j TCPMSS  --clamp-mss-to-pmtu
firewall-cmd --reload
sudo /etc/init.d/pptpd restart

留言

這個網誌中的熱門文章

centos7 架設 snort IDS (版本2.9.13)

在debian10 安裝 docker 以及 Logon Tracer