Linux

iptables 顯示警告消息,但我無法解決

  • October 8, 2017

當我在 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

你在說什麼警告資訊?您是指與此類似的行中的警告詞嗎?

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規則時已指定。沒什麼可擔心的!

引用自:https://serverfault.com/questions/877425