![如何将“源 UID”传递给 iptables?](https://linux22.com/image/790820/%E5%A6%82%E4%BD%95%E5%B0%86%E2%80%9C%E6%BA%90%20UID%E2%80%9D%E4%BC%A0%E9%80%92%E7%BB%99%20iptables%EF%BC%9F.png)
通过命令行,使用 iptable 二进制文件设置防火墙规则,如下所示:
iptables -I PRIO_IN -p tcp -s "10.0.0.25/24" -d "10.0.0.26/24" -j ACCEPT
对于上述规则,现在我需要添加source uid
。
在 Iptables 手册页中,没有看到任何按名称列出的选项source uid
通过命令行,使用 iptable 二进制文件设置防火墙规则,如下所示:
iptables -I PRIO_IN -p tcp -s "10.0.0.25/24" -d "10.0.0.26/24" -j ACCEPT
对于上述规则,现在我需要添加source uid
。
在 Iptables 手册页中,没有看到任何按名称列出的选项source uid