BSDG33KCLUB

pf.conf

Jun 9th, 2013
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. # $OpenBSD: pf.conf,v 1.52 2013/02/13 23:11:14 halex Exp $
  2. #
  3. # See pf.conf(5) for syntax and examples.
  4. # Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1
  5. # in /etc/sysctl.conf if packets are to be forwarded between interfaces.
  6.  
  7. # increase default state limit from 10'000 states on busy systems
  8. #set limit states 100000
  9. ## Macros
  10. SYN_ONLY="S/FSRA"
  11. set skip on lo
  12.  
  13. # filter rules and anchor for ftp-proxy(8)
  14. #anchor "ftp-proxy/*"
  15. #pass in quick inet proto tcp to port ftp divert-to 127.0.0.1 port 8021
  16.  
  17. # anchor for relayd(8)
  18. #anchor "relayd/*"
  19.  
  20. block # block stateless traffic
  21. pass # establish keep-state
  22.  
  23. # rules for spamd(8)
  24. #table <spamd-white> persist
  25. #table <nospamd> persist file "/etc/mail/nospamd"
  26. #pass in on egress proto tcp from any to any port smtp \
  27. # rdr-to 127.0.0.1 port spamd
  28. #pass in on egress proto tcp from <nospamd> to any port smtp
  29. #pass in log on egress proto tcp from <spamd-white> to any port smtp
  30. #pass out log on egress proto tcp to any port smtp
  31. pass in log all keep state
  32. pass out log all keep state
  33.  
  34. #block in quick from urpf-failed to any # use with care
  35.  
  36. # By default, do not permit remote connections to X11
  37. block in on ! lo0 proto tcp to port 6000:6010
Advertisement
Add Comment
Please, Sign In to add comment