Skip to content

Instantly share code, notes, and snippets.

@deanet
Created February 18, 2014 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deanet/9069035 to your computer and use it in GitHub Desktop.
Save deanet/9069035 to your computer and use it in GitHub Desktop.
openbsd simple NAT internet gateway
ext_if = "rl0" # macro for external interface - use tun0 for PPPoE
int_if = "bge0" # macro for internal interface
int_net = "192.168.2.0/24"
pass out on $ext_if from $int_if:network to any nat-to ($ext_if)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment