iptables Drop 日志

快速记录iptables记录 Drop记录

iptables -N LOGGING
iptables -A INPUT -j LOGGING
iptables -A LOGGING -j LOG --log-prefix "IPTables-Dropped: " --log-level 4
iptables -A LOGGING -j DROP
iptables -nL --line-numbers
iptables -I INPUT {line}  -j LOGGING -m comment --comment "this is for drop log"

留下点什么吧