如果我做 iptables -L 列出 iptables 中的所有规则,它会在继续打印列表之前随机挂在不同的 ip 地址。它挂了几秒钟,每次都在不同的 IP 地址上。我的一般规则如下。然后我有几个本地 IP 和一些允许的远程 IP。我忘记了与查找相关的规则吗?
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
Chain OUTPUT (policy DROP)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
ACCEPT udp -- anywhere anywhere udp dpt:25
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT udp -- anywhere anywhere …Run Code Online (Sandbox Code Playgroud)