Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ext_if = "xl0" # macro for external interface - use tun0 for PPPoE
- int_if = "xl1" # macro for internal interface
- localnet = $int_if:network
- # ext_if IP address could be dynamic, hence ($ext_if)
- nat on $ext_if from $localnet to any -> ($ext_if)
- block all
- pass from { lo0, $localnet } to any keep state
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement