我努力了:
# ufw allow proto ip-encap from 198.51.100.3
ERROR: Unsupported protocol 'ip-encap'
# ufw allow proto ipip from 198.51.100.3
ERROR: Unsupported protocol 'ipip'
# ufw allow proto 4 from 198.51.100.3
ERROR: Unsupported protocol '4'
#
什么才是正确的方法?
答案1
我也在寻找同样的东西。在 COMMIT 之前编辑 /etc/ufw/before.rules
-A ufw-输入前-p 4 -j 接受