Advertisement
Guest User

desordered PF ruleset

a guest
Jul 31st, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. ext_if = "xl0" # macro for external interface - use tun0 for PPPoE
  2. int_if = "xl1" # macro for internal interface
  3. localnet = $int_if:network
  4. # ext_if IP address could be dynamic, hence ($ext_if)
  5. nat on $ext_if from $localnet to any -> ($ext_if)
  6. block all
  7. pass from { lo0, $localnet } to any keep state
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement