freebsd ipfw log

ipfw -q add deny all from any to any
を
ipfw -q add deny log all from any to any
に変更して
net.inet.ip.fw.verbose=1
で
/var/log/security にログ出力

sudo ipfw -a list
...
11300     1      32 deny log ip from any to any
65535 11434 1186613 deny ip from any to any

firewall_logging
が
net.inet.ip.fw.verbose=1
(/etc/rc.d/ipfwで設定)

firewall_script指定なし
(firewall_script=/etc/rc.firewall)
の場合は
firewall_logdeny="YES"
で log のルール追加

FreeBSD 12.1で ファイアウォール ( ipfw )の設定 – T.Mitarai Personal Blog 2020