Created
March 30, 2017 03:09
-
-
Save travispaul/76ad0b0f3fd11cf03b2b4ce117ac90ff to your computer and use it in GitHub Desktop.
Example npf config to redirect ports 80/443 to unprivileged ports
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ext_if = "vioif0" | |
$ext_v4 = inet4(vioif0) | |
map $ext_if dynamic XXX.XXX.XXX.XXX port 8080 <- $ext_v4 port 80 | |
map $ext_if dynamic XXX.XXX.XXX.XXX port 4443 <- $ext_v4 port 443 | |
group default { | |
pass final on lo0 all | |
pass final on $ext_if all | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment