Skip to content

Instantly share code, notes, and snippets.

View dazuelos's full-sized avatar

dan dazuelos

  • independant
  • France
View GitHub Profile
@dazuelos
dazuelos / pfdump.sh
Last active October 19, 2023 13:13 — forked from vitaly/pfdump.sh
script to dump PF status
#!/bin/bash
# print an anchor subset (r, n or A)
function pfprint() {
# avoid trusting PATH and .
/usr/bin/sudo pfctl -a "$2" -s"$1" 2>/dev/null
}
@vitaly
vitaly / pfdump.sh
Created November 30, 2016 14:18
script to dump PF status
#!/bin/bash
function pfprint() {
if [ -n "$1" ];then
sudo pfctl -a "$2" -s"$1" 2>/dev/null
else
sudo pfctl -s"$1" 2>/dev/null
fi
}