sudo ufw allow 1723
2、打开 /etc/ufw/before.rules 配置允许47 协议转发
在 # drop INVALID packets (logs these in loglevel medium and higher)行前增加一条
-A ufw-before-input -p 47 -j ACCEPT3、调用模块
echo nf_conntrack_pptp | sudo tee /etc/modules-load.d/pptp.conf
4、重启ufw
sudo ufw disable
sudo ufw enable