From 11a29aa44b85f70df5cc0e6d2df1fe84b3402251 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 27 May 2024 16:41:31 +1000 Subject: [PATCH] Split HTTP and HTTPS anchors for separate use --- anchors/http | 4 +--- anchors/https | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 anchors/https diff --git a/anchors/http b/anchors/http index add33bb..cbebe7d 100644 --- a/anchors/http +++ b/anchors/http @@ -1,6 +1,4 @@ # vim: set ft=pf : -# Handle loopback HTTP and HTTPS requests (ports 80 and 443) on non-privileged ports 8080 and 8443. +# Handle loopback HTTP requests (port 80) on non-privileged port 8080. rdr pass inet proto tcp from any to 127.0.0.1 port 80 -> 127.0.0.1 port 8080 -rdr pass inet proto tcp from any to 127.0.0.1 port 443 -> 127.0.0.1 port 8443 rdr pass inet6 proto tcp from any to ::1 port 80 -> ::1 port 8080 -rdr pass inet6 proto tcp from any to ::1 port 443 -> ::1 port 8443 diff --git a/anchors/https b/anchors/https new file mode 100644 index 0000000..5663750 --- /dev/null +++ b/anchors/https @@ -0,0 +1,4 @@ +# vim: set ft=pf : +# Handle loopback HTTPS requests (port 443) on non-privileged port 8443. +rdr pass inet proto tcp from any to 127.0.0.1 port 443 -> 127.0.0.1 port 8443 +rdr pass inet6 proto tcp from any to ::1 port 443 -> ::1 port 8443