在Debian系统中,防火墙日志的位置取决于所使用的防火墙工具。以下是几种常见防火墙工具的日志位置:
/var/log/kern.log
文件中。grep
命令过滤日志,例如:grep "iptables" /var/log/kern.log
。/var/log/syslog
或 /var/log/messages
。tail -f /var/log/syslog
命令实时查看ufw的日志信息。journalctl
命令查看,具体命令为 sudo journalctl -u firewalld
。亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:Debian防火墙日志在哪查看