Annotation of src/etc/pf.conf, Revision 1.49
1.49 ! jmc 1: # $OpenBSD: pf.conf,v 1.48 2009/09/11 13:21:00 sthen 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.4 henning 6:
1.38 deraadt 7: set skip on lo
1.27 cedric 8:
1.45 henning 9: # filter rules and anchor for ftp-proxy(8)
1.38 deraadt 10: #anchor "ftp-proxy/*"
1.45 henning 11: #pass in quick proto tcp to port ftp rdr-to 127.0.0.1 port 8021
1.38 deraadt 12:
1.45 henning 13: # anchor for relayd(8)
1.38 deraadt 14: #anchor "relayd/*"
1.27 cedric 15:
1.42 henning 16: pass # to establish keep-state
1.46 todd 17:
18: # rules for spamd(8)
19: #table <spamd-white> persist
20: #table <nospamd> persist file "/etc/mail/nospamd"
1.47 jmc 21: #pass in on egress proto tcp from any to any port smtp \
1.49 ! jmc 22: # rdr-to 127.0.0.1 port spamd
1.47 jmc 23: #pass in on egress proto tcp from <nospamd> to any port smtp
1.49 ! jmc 24: #pass in log on egress proto tcp from <spamd-white> to any port smtp
! 25: #pass out log on egress proto tcp to any port smtp
1.46 todd 26:
1.27 cedric 27:
1.38 deraadt 28: #block in quick from urpf-failed to any # use with care
1.27 cedric 29:
1.38 deraadt 30: # By default, do not permit remote connections to X11
1.44 sobrado 31: block in on ! lo0 proto tcp to port 6000:6010