summaryrefslogtreecommitdiff
path: root/statuspage/checks/jails.sh
diff options
context:
space:
mode:
authorbatsumaru <>2026-07-01 18:01:39 +0900
committerbatsumaru <>2026-07-01 18:01:39 +0900
commitf035b94c216a8324e5b0d1637340c3736227781f (patch)
tree433cce5294eda3875978baa6203fac9278f244bd /statuspage/checks/jails.sh
parent018f92b5a0d7ee97747720e28d48bdf8b0134f2e (diff)
Sort pf rules by interface, iconify from/to, drop redundant nat prefix
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 <noreply@anthropic.com>
Diffstat (limited to 'statuspage/checks/jails.sh')
-rwxr-xr-xstatuspage/checks/jails.sh2
1 files changed, 1 insertions, 1 deletions
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