Linux - 设置Shorewall 防火墙开放PPTP VPN

PPTP VPN 在入站和出站两种方式上使用协议 GRE。
设置防火墙以允许 PPTP VPN 拨号客户端(例如 Ubuntu 的 NetworkManager)使用协议 GRE 只是添加规则和接口的几个步骤。

第一步

将必要的接口添加到 /etc/shorewall/interfaces 中:

net ppp0 

第二步

在 /etc/shorewall/rules 中添加/更改防火墙规则:

ACCEPT fw net gre
ACCEPT net fw gre
ACCEPT fw net tcp 1723
ACCEPT net fw tcp 1723
日期:2020-06-02 22:17:08 来源:oir作者:oir