From f035b94c216a8324e5b0d1637340c3736227781f Mon Sep 17 00:00:00 2001 From: batsumaru <> Date: Wed, 1 Jul 2026 18:01:39 +0900 Subject: Sort pf rules by interface, iconify from/to, drop redundant nat prefix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Filter rules now sort by (interface, in-before-out) rather than pfctl's raw eval order, which just reflects pf.conf's authoring order and reads as arbitrarily interleaved (an "out" rule sandwiched between unrelated "in" rules for the same interface). Display-only reorder - pf's actual evaluation order and quick/first-match semantics on the box are untouched, only the informational listing is re-sorted. Generalized the "from X to Y" abbreviation beyond the from-any-to-any- port special case, and replaced pfctl's own "->" (nat rewrite target) with the unicode arrow for consistency with the in/out arrows already in use. Also dropped the "nat: " prefix, which was redundant with the rule text already starting with "nat". Applied the same "->" -> "→" consistency swap to jails.sh's http child-row label. Co-Authored-By: Claude Sonnet 5 --- statuspage/checks/jails.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'statuspage/checks/jails.sh') diff --git a/statuspage/checks/jails.sh b/statuspage/checks/jails.sh index 71024cc..ccdf68e 100755 --- a/statuspage/checks/jails.sh +++ b/statuspage/checks/jails.sh @@ -36,6 +36,6 @@ jls -n name 2>/dev/null | sed -n 's/.*name=\([^ ]*\).*/\1/p' | while IFS= read - if [ -n "$ip" ]; then http_status=$(port_check "$ip" 80) - json_line "jails" " -> http :80" "" "$http_status" + json_line "jails" " → http :80" "" "$http_status" fi done -- cgit v1.3