小编ANt*_*ord的帖子

如何通过 iptables 阻止 111 udp 端口​​?

我有一个与块 111 端口相关的问题,仅适用于udp. 因为tcp它被阻止没有任何问题。此端口由应用程序使用rpcbind。我通过netcat. 这是我的iptables。它包含空链FORWARD,因为我已经从中删除了所有规则以便于理解。

Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination
1    DROP       udp  --  anywhere             anywhere             udp dpt:sunrpc
2    DROP       tcp  --  anywhere             anywhere             tcp dpt:sunrpc

Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination
1    DOCKER-OVERLAY  all  --  anywhere             anywhere

Chain DOCKER (0 references)
num  target     prot opt source               destination

Chain DOCKER-ISOLATION (0 …
Run Code Online (Sandbox Code Playgroud)

iptables rpc tcp udp

4
推荐指数
1
解决办法
3万
查看次数

标签 统计

iptables ×1

rpc ×1

tcp ×1

udp ×1