Created
February 18, 2014 11:15
-
-
Save deanet/9069035 to your computer and use it in GitHub Desktop.
openbsd simple NAT internet gateway
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 = "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