Script started on 2026-11-16 19:42:11-05:00 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="120" LINES="40"]
student@cyb110-vm:~/module6$ ls -l
total 8
-rw-r--r-- 1 student student 9406 Nov 16 09:02 nbtc-fw01_excerpt.log
student@cyb110-vm:~/module6$ head -3 nbtc-fw01_excerpt.log
# nbtc-fw01 excerpt, 2026-10-13 02:00 to 03:20 EDT. TRAINING MATERIAL: fictional college; 203.0.113.0/24 and 198.51.100.0/24 are documentation ranges.
2026-10-13T02:08:22-04:00 nbtc-fw01 kernel: [ACCEPT] rule=allow-internal IN=eth0 OUT=eth1 SRC=10.20.8.40 DST=10.10.2.50 PROTO=TCP SPT=63638 DPT=389 DSTHOST=dc01.northbridge-tc.example
2026-10-13T02:09:19-04:00 nbtc-fw01 kernel: [ACCEPT] rule=allow-internal IN=eth0 OUT=eth1 SRC=10.20.8.40 DST=10.20.4.15 PROTO=TCP SPT=64700 DPT=443 DSTHOST=web01.northbridge-tc.example
student@cyb110-vm:~/module6$ grep -c DROP nbtc-fw01_excerpt.log
25
student@cyb110-vm:~/module6$ grep -c ACCEPT nbtc-fw01_excerpt.log
25
student@cyb110-vm:~/module6$ grep -o 'SRC=[0-9.]*' nbtc-fw01_excerpt.log | sort | uniq -c | sort -rn
     25 SRC=203.0.113.47
     10 SRC=10.30.12.118
      9 SRC=198.51.100.140
      5 SRC=10.20.8.40
      1 SRC=10.30.12.105
student@cyb110-vm:~/module6$ grep 'SRC=203.0.113.47' nbtc-fw01_excerpt.log | grep DROP | grep -o 'DPT=[0-9]*' | sort -u | wc -l
23
student@cyb110-vm:~/module6$ grep 'SRC=203.0.113.47' nbtc-fw01_excerpt.log | head -1 | cut -c1-25
2026-10-13T02:11:04-04:00
student@cyb110-vm:~/module6$ grep 'SRC=203.0.113.47' nbtc-fw01_excerpt.log | grep DROP | tail -1 | cut -c1-25
2026-10-13T02:11:48-04:00
student@cyb110-vm:~/module6$ # ok so 23 ports in 44 seconds. scanner. what else is in here
student@cyb110-vm:~/module6$ grep -o 'rule=[a-z-]*' nbtc-fw01_excerpt.log | sort | uniq -c | sort -rn
     23 rule=default-deny
     14 rule=allow-internal
     10 rule=allow-vpn
      2 rule=deny-lab-to-admin
      1 rule=allow-web-https
student@cyb110-vm:~/module6$ grep deny-lab-to-admin nbtc-fw01_excerpt.log
2026-10-13T03:14:41-04:00 nbtc-fw01 kernel: [DROP] rule=deny-lab-to-admin IN=eth0 OUT=eth1 SRC=10.30.12.118 DST=10.20.8.31 PROTO=TCP SPT=55012 DPT=1433 DSTHOST=sis-db01.northbridge-tc.example
2026-10-13T03:14:44-04:00 nbtc-fw01 kernel: [DROP] rule=deny-lab-to-admin IN=eth0 OUT=eth1 SRC=10.30.12.118 DST=10.20.8.31 PROTO=TCP SPT=55013 DPT=1433 DSTHOST=sis-db01.northbridge-tc.example
student@cyb110-vm:~/module6$ # 1433 is mssql. why is a lab box hitting the SIS db at 3am
student@cyb110-vm:~/module6$ grep 'SRC=10.30.12.118' nbtc-fw01_excerpt.log | awk '{print $1, $4, $8, $9, $12, $13}'
2026-10-13T02:23:12-04:00 [ACCEPT] SRC=10.30.12.118 DST=10.20.4.15 DPT=443 DSTHOST=web01.northbridge-tc.example
2026-10-13T02:30:39-04:00 [ACCEPT] SRC=10.30.12.118 DST=10.20.8.40 DPT=445 DSTHOST=fs01.northbridge-tc.example
2026-10-13T02:46:56-04:00 [ACCEPT] SRC=10.30.12.118 DST=10.20.8.40 DPT=445 DSTHOST=fs01.northbridge-tc.example
2026-10-13T02:50:39-04:00 [ACCEPT] SRC=10.30.12.118 DST=10.20.4.15 DPT=443 DSTHOST=web01.northbridge-tc.example
2026-10-13T02:56:27-04:00 [ACCEPT] SRC=10.30.12.118 DST=10.20.8.40 DPT=445 DSTHOST=fs01.northbridge-tc.example
2026-10-13T02:58:11-04:00 [ACCEPT] SRC=10.30.12.118 DST=10.20.4.15 DPT=443 DSTHOST=web01.northbridge-tc.example
2026-10-13T03:07:58-04:00 [ACCEPT] SRC=10.30.12.118 DST=10.10.2.50 DPT=88 DSTHOST=dc01.northbridge-tc.example
2026-10-13T03:09:22-04:00 [ACCEPT] SRC=10.30.12.118 DST=10.20.4.15 DPT=443 DSTHOST=web01.northbridge-tc.example
2026-10-13T03:14:41-04:00 [DROP] SRC=10.30.12.118 DST=10.20.8.31 DPT=1433 DSTHOST=sis-db01.northbridge-tc.example
2026-10-13T03:14:44-04:00 [DROP] SRC=10.30.12.118 DST=10.20.8.31 DPT=1433 DSTHOST=sis-db01.northbridge-tc.example
student@cyb110-vm:~/module6$ grep 'SRC=198.51.100.140' nbtc-fw01_excerpt.log | awk '{print $1, $4, $9, $12}'
2026-10-13T03:02:10-04:00 [ACCEPT] DST=10.20.4.22 DPT=443
2026-10-13T03:02:21-04:00 [ACCEPT] DST=10.20.4.22 DPT=443
2026-10-13T03:02:32-04:00 [ACCEPT] DST=10.20.4.22 DPT=443
2026-10-13T03:02:43-04:00 [ACCEPT] DST=10.20.4.22 DPT=443
2026-10-13T03:02:54-04:00 [ACCEPT] DST=10.20.4.22 DPT=443
2026-10-13T03:03:05-04:00 [ACCEPT] DST=10.20.4.22 DPT=443
2026-10-13T03:03:16-04:00 [ACCEPT] DST=10.20.4.22 DPT=443
2026-10-13T03:03:27-04:00 [ACCEPT] DST=10.20.4.22 DPT=443
2026-10-13T03:03:38-04:00 [ACCEPT] DST=10.20.4.22 DPT=443
student@cyb110-vm:~/module6$ # all ACCEPT on 443. cant tell if logins worked from here. note for report
student@cyb110-vm:~/module6$ grep 'SRC=10.30.12.118' nbtc-fw01_excerpt.log | grep -c DROP
2
student@cyb110-vm:~/module6$ exit
exit

Script done on 2026-11-16 20:07:48-05:00 [COMMAND_EXIT_CODE="0"]
