Last active
February 1, 2023 01:41
-
-
Save patmaddox/ff9709e01289cbb476e8a42bc06461cf to your computer and use it in GitHub Desktop.
generic pf.conf w/ nat
This file contains 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="ena0" | |
ts_if="tailscale0" | |
set skip on lo | |
scrub in | |
# permissive NAT allows jail bridge and wireguard tunnels | |
nat on $ext_if inet from !($ext_if) -> ($ext_if:0) | |
block in | |
pass out | |
pass in proto tcp to port { 22 } | |
pass in inet proto icmp icmp-type { echoreq } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment