Advertisement
Bkmz

Untitled

Aug 18th, 2011
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. ext_if="ng0"
  2. int_if="re0"
  3. int_net="192.168.1.0/24"
  4. vpn_if="tap0"
  5.  
  6. ext_gw="109.195.67.254"
  7. vpn_gw="172.16.0.1"
  8.  
  9. nat on $ext_if from !($ext_if) -> ($ext_if)
  10. nat on $vpn_if from $int_if:network -> ($vpn_if)
  11.  
  12.  
  13. pass out on $ext_if route-to ($vpn_if $vpn_gw) from $vpn_if to any
  14. pass out on $vpn_if route-to ($ext_if $ext_gw) from $ext_if to any
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement