iptables 显示警告消息,但我无法解决它

iptables 显示警告消息,但我无法解决它

当我在 SSH 中输入此命令查看规则时,iptables 中返回以下警告消息。我想知道这是什么以及如何解决它。iptables -L

LOG        tcp  --  anywhere             anywhere             limit: avg 30/min burst 5 LOG level warning                                  prefix "Firewall: *TCP_IN Blocked* "
LOG        udp  --  anywhere             anywhere             limit: avg 30/min burst 5 LOG level warning                                  prefix "Firewall: *UDP_IN Blocked* "
LOG        icmp --  anywhere             anywhere             limit: avg 30/min burst 5 LOG level warning                                  prefix "Firewall: *ICMP_IN Blocked* "
DROP       all  --  anywhere             anywhere

Chain LOGDROPOUT (1 references)
target     prot opt source               destination
LOG        tcp  --  anywhere             anywhere             tcp flags:FIN,SYN,RST,ACK/SYN limit: avg 30/                                 min burst 5 LOG level warning uid prefix "Firewall: *TCP_OUT Blocked* "
LOG        udp  --  anywhere             anywhere             limit: avg 30/min burst 5 LOG level warning                                  uid prefix "Firewall: *UDP_OUT Blocked* "
LOG        icmp --  anywhere             anywhere             limit: avg 30/min burst 5 LOG level warning                                  uid prefix "Firewall: *ICMP_OUT Blocked* "
REJECT     all  --  anywhere             anywhere             reject-with icmp-port-unreachable

Chain PORTFLOOD (3 references)
target     prot opt source               destination
LOG        all  --  anywhere             anywhere             limit: avg 30/min burst 5 LOG level warning                                  prefix "Firewall: *Port Flood* "
DROP       all  --  anywhere             anywhere

答案1

您说的警告信息是什么?您是指警告字里行间是否有与此类似的词?

LOG  tcp  --  anywhere  anywhere   limit: avg 30/min burst 5 LOG level warning prefix "Firewall: *TCP_IN Blocked* "

这不是 iptables 显示的警告消息,而是描述规则的输出的一部分。因此,level warning显示您--log-level warning在创建LOG规则时已指定。无需担心!

相关内容