如何检查TUN / TAP接口的防火墙是否被禁用?

同时尝试诊断OpenVPN客户端configuration上的UDP多播问题,并在configuration文件中遇到了这个块:

# Use the same setting as you are using on # the server. # On most systems, the VPN will not function # unless you partially or fully disable # the firewall for the TUN/TAP interface. ;dev tap dev tun 

UFW似乎没有安装(没有findufw命令)。 我还应该检查什么以确保满足这个条件? 我的路由器的NATconfiguration是否相关?

非常感谢,blz

显示IPv4防火墙规则:

  • iptables -L -nv – 看input链,
  • iptables -P INPUT ACCEPT – 这将改变防火墙策略来接受所有的数据包,
  • iptables -F INPUT – 刷新(删除)来自INPUT链的所有规则。

IPv6:相同的参数不同的命令,而不是iptables使用ip6tables

以上将确保数据包过滤不会触及您的stream量。