小编And*_*rew的帖子

列出规则时 iptables 挂起

如果我做 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)

firewall iptables

7
推荐指数
1
解决办法
7009
查看次数

标签 统计

firewall ×1

iptables ×1