Split HTTP and HTTPS anchors for separate use
This commit is contained in:
parent
be31f20c69
commit
11a29aa44b
2 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,4 @@
|
||||||
# vim: set ft=pf :
|
# 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 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 80 -> ::1 port 8080
|
||||||
rdr pass inet6 proto tcp from any to ::1 port 443 -> ::1 port 8443
|
|
||||||
|
|
4
anchors/https
Normal file
4
anchors/https
Normal file
|
@ -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
|
Loading…
Reference in a new issue