1
19.7 Legacy Series / Re: How to find out rule numbers?
« on: August 06, 2020, 01:07:42 am »
For anyone googling this, the best I have come up with is to look at /tmp/rules.debug which contains rule ID's and then descriptions as a comment. Then some grep/sed/awk magic you can probably get what you want...
EDIT: forgot to say that "pfctl -vvsr" is also needed to get the rule number to label mapping
"pfctl -vvsr" - gives rule id (e.g. 179) to label (e.g. b6da060442c571d1957683eaace57cce)
"/tmp/rules.debug" - gives label (e.g. b6da060442c571d1957683eaace57cce) to description (e.g. "allow ssh in")
EDIT: forgot to say that "pfctl -vvsr" is also needed to get the rule number to label mapping
"pfctl -vvsr" - gives rule id (e.g. 179) to label (e.g. b6da060442c571d1957683eaace57cce)
"/tmp/rules.debug" - gives label (e.g. b6da060442c571d1957683eaace57cce) to description (e.g. "allow ssh in")