Return to Snippet

Revision: 4796
at January 21, 2008 11:35 by alti


Updated Code
for i in $(tcpdump -n -e -ttt -r /var/log/pflog |grep match | awk '{print $10}' | grep -v '\:\:' | cut -f '1 2 3 4' -d .  | sort -u); do host $i | awk '{print $5}' | grep -Ev 'NXDOMAIN|SERVFAIL|^no$|^for$' | sed 's/\.$//g'; done

Revision: 4795
at January 21, 2008 11:28 by alti


Initial Code
for i in $(tcpdump -n -e -ttt -r /var/log/pflog |grep match | awk '{print $10}' | grep -v '\:\:' | cut -f '1 2 3 4' -d .  | sort -u); do host $i | awk '{print $5}' | grep -Ev 'NXDOMAIN|SERVFAIL|^no$' | sed 's/\.$//g'; done

Initial URL


Initial Description


Initial Title
Display All hostnames Which Matched A Pf Rule

Initial Tags


Initial Language
Bash