네트워크 관련 문제를 디버깅하는 동안 다음 항목을 발견했습니다 /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가 대기 상태일 때 로그 항목을 어떻게 기록할 수 있나요?