Skip to content

Instantly share code, notes, and snippets.

@malikbenkirane
Created March 9, 2026 15:46
Show Gist options
  • Select an option

  • Save malikbenkirane/f11c9e7a9e4e64210ceeaf2569d87053 to your computer and use it in GitHub Desktop.

Select an option

Save malikbenkirane/f11c9e7a9e4e64210ceeaf2569d87053 to your computer and use it in GitHub Desktop.
OpenBSD: Simple Gateway
block return # block stateless traffic
pass # establish keep-state
pass in quick on $int_if
match out on $ext_if inet from $int_if:network to any nat-to $ext_if
pass out on $ext_if from $int_if:network to any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment