Skip to content

Instantly share code, notes, and snippets.

@patmaddox
Last active February 1, 2023 01:41
Show Gist options
  • Save patmaddox/ff9709e01289cbb476e8a42bc06461cf to your computer and use it in GitHub Desktop.
Save patmaddox/ff9709e01289cbb476e8a42bc06461cf to your computer and use it in GitHub Desktop.
generic pf.conf w/ nat
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