Advertisement
psychozoic

Untitled

Aug 6th, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.51 KB | None | 0 0
  1. #######      macros
  2. ext_if = "vr0"
  3. int_if = "ale0"
  4. localnet = $int_if:network
  5.  
  6. # simple services
  7. tcp_services = "{ ssh, smtp, domain, http, https }"
  8. udp_services = "{ domain }"
  9.  
  10. #######      nat and forwards
  11.  
  12.  
  13. rdr pass on $ext_if inet proto tcp from any to ($ext_if) port 25 -> 192.168.1.250 port 25
  14. #######      filtering
  15. block all
  16. pass in inet proto tcp to {$ext_if, $int_if} port { 10022 }
  17. pass out proto tcp to any port $tcp_services keep state
  18. pass proto udp to any port $udp_services keep state
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement