在调试网络相关问题时,我在以下位置找到了这些条目/var/log/ufw.log
:
$ tail -f /var/log/ufw.log
Jun 22 00:07:55 ierbert2 kernel: [217764.254528] [UFW BLOCK] IN=wlp59s0 OUT= MAC=9c:b6:d0:c5:be:85:dc:a6:32:7d:e2:72:08:00 SRC=192.168.9.116 DST=192.168.9.115 LEN=351 TOS=0x00 PREC=0x00 TTL=64 ID=1206 DF PROTO=UDP SPT=38646 DPT=48498 LEN=331
Jun 22 00:07:56 ierbert2 kernel: [217765.247871] [UFW BLOCK] IN=wlp59s0 OUT= MAC=9c:b6:d0:c5:be:85:dc:a6:32:7d:e2:72:08:00 SRC=192.168.9.116 DST=192.168.9.115 LEN=351 TOS=0x00 PREC=0x00 TTL=64 ID=1430 DF PROTO=UDP SPT=38646 DPT=52538 LEN=331
Jun 22 00:07:56 ierbert2 kernel: [217765.258617] [UFW BLOCK] IN=wlp59s0 OUT= MAC=9c:b6:d0:c5:be:85:dc:a6:32:7d:e2:72:08:00 SRC=192.168.9.116 DST=192.168.9.115 LEN=351 TOS=0x00 PREC=0x00 TTL=64 ID=1431 DF PROTO=UDP SPT=38646 DPT=48498 LEN=331
Jun 22 00:07:57 ierbert2 kernel: [217766.247642] [UFW BLOCK] IN=wlp59s0 OUT= MAC=9c:b6:d0:c5:be:85:dc:a6:32:7d:e2:72:08:00 SRC=192.168.9.116 DST=192.168.9.115 LEN=351 TOS=0x00 PREC=0x00 TTL=64 ID=1558 DF PROTO=UDP SPT=38646 DPT=52538 LEN=331
Jun 22 00:09:02 ierbert2 kernel: [217831.408683] [UFW BLOCK] IN=wlp59s0 OUT= MAC=9c:b6:d0:c5:be:85:dc:a6:32:7d:e2:72:08:00 SRC=192.168.9.116 DST=192.168.9.115 LEN=351 TOS=0x00 PREC=0x00 TTL=64 ID=2002 DF PROTO=UDP SPT=38646 DPT=35295 LEN=331
Jun 22 00:09:55 ierbert2 kernel: [217884.249669] [UFW BLOCK] IN=wlp59s0 OUT= MAC=9c:b6:d0:c5:be:85:dc:a6:32:7d:e2:72:08:00 SRC=192.168.9.116 DST=192.168.9.115 LEN=351 TOS=0x00 PREC=0x00 TTL=64 ID=7035 DF PROTO=UDP SPT=38646 DPT=52618 LEN=331
Jun 22 00:09:55 ierbert2 kernel: [217884.258993] [UFW BLOCK] IN=wlp59s0 OUT= MAC=9c:b6:d0:c5:be:85:dc:a6:32:7d:e2:72:08:00 SRC=192.168.9.116 DST=192.168.9.115 LEN=351 TOS=0x00 PREC=0x00 TTL=64 ID=7037 DF PROTO=UDP SPT=38646 DPT=58310 LEN=331
Jun 22 00:09:56 ierbert2 kernel: [217885.251707] [UFW BLOCK] IN=wlp59s0 OUT= MAC=9c:b6:d0:c5:be:85:dc:a6:32:7d:e2:72:08:00 SRC=192.168.9.116 DST=192.168.9.115 LEN=351 TOS=0x00 PREC=0x00 TTL=64 ID=7284 DF PROTO=UDP SPT=38646 DPT=52618 LEN=331
Jun 22 00:09:56 ierbert2 kernel: [217885.260073] [UFW BLOCK] IN=wlp59s0 OUT= MAC=9c:b6:d0:c5:be:85:dc:a6:32:7d:e2:72:08:00 SRC=192.168.9.116 DST=192.168.9.115 LEN=351 TOS=0x00 PREC=0x00 TTL=64 ID=7285 DF PROTO=UDP SPT=38646 DPT=58310 LEN=331
我的笔记本电脑昨晚处于待机模式,系统时间是正确的。我注意到在那段时间日志文件中有条目。
当 PC 处于待机状态时,如何可能记录日志条目?