Annotation of src/etc/pf.conf, Revision 1.51
1.51 ! claudio 1: # $OpenBSD: pf.conf,v 1.50 2011/04/28 00:19:42 mikeb Exp $
1.1 kjell 2: #
1.48 sthen 3: # See pf.conf(5) for syntax and examples.
1.28 frantzen 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.
1.51 ! claudio 6:
! 7: # increase default state limit from 10'000 states on busy systems
! 8: #set limit states 100000
1.4 henning 9:
1.38 deraadt 10: set skip on lo
1.27 cedric 11:
1.45 henning 12: # filter rules and anchor for ftp-proxy(8)
1.38 deraadt 13: #anchor "ftp-proxy/*"
1.50 mikeb 14: #pass in quick inet proto tcp to port ftp divert-to 127.0.0.1 port 8021
1.38 deraadt 15:
1.45 henning 16: # anchor for relayd(8)
1.38 deraadt 17: #anchor "relayd/*"
1.27 cedric 18:
1.42 henning 19: pass # to establish keep-state
1.46 todd 20:
21: # rules for spamd(8)
22: #table <spamd-white> persist
23: #table <nospamd> persist file "/etc/mail/nospamd"
1.47 jmc 24: #pass in on egress proto tcp from any to any port smtp \
1.49 jmc 25: # rdr-to 127.0.0.1 port spamd
1.47 jmc 26: #pass in on egress proto tcp from <nospamd> to any port smtp
1.49 jmc 27: #pass in log on egress proto tcp from <spamd-white> to any port smtp
28: #pass out log on egress proto tcp to any port smtp
1.46 todd 29:
1.27 cedric 30:
1.38 deraadt 31: #block in quick from urpf-failed to any # use with care
1.27 cedric 32:
1.38 deraadt 33: # By default, do not permit remote connections to X11
1.44 sobrado 34: block in on ! lo0 proto tcp to port 6000:6010