Source code pulled from OpenBSD for OpenNTPD. The place to contribute to this code is via the OpenBSD CVS tree.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

  1. # $OpenBSD: pf.conf,v 1.53 2014/01/25 10:28:36 dtucker 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. # increase default state limit from 10'000 states on busy systems
  7. #set limit states 100000
  8. set skip on lo
  9. # filter rules and anchor for ftp-proxy(8)
  10. #anchor "ftp-proxy/*"
  11. #pass in quick inet proto tcp to port ftp divert-to 127.0.0.1 port 8021
  12. # anchor for relayd(8)
  13. #anchor "relayd/*"
  14. block return # block stateless traffic
  15. pass # establish keep-state
  16. # rules for spamd(8)
  17. #table <spamd-white> persist
  18. #table <nospamd> persist file "/etc/mail/nospamd"
  19. #pass in on egress proto tcp from any to any port smtp \
  20. # rdr-to 127.0.0.1 port spamd
  21. #pass in on egress proto tcp from <nospamd> to any port smtp
  22. #pass in log on egress proto tcp from <spamd-white> to any port smtp
  23. #pass out log on egress proto tcp to any port smtp
  24. #block in quick from urpf-failed to any # use with care
  25. # By default, do not permit remote connections to X11
  26. block return in on ! lo0 proto tcp to port 6000:6010