Annotation of src/etc/pf.conf, Revision 1.47
1.47 ! jmc 1: # $OpenBSD: pf.conf,v 1.46 2009/09/01 14:45:32 todd Exp $
1.1 kjell 2: #
1.38 deraadt 3: # See pf.conf(5) for syntax and examples; this sample ruleset uses
4: # require-order to permit mixing of NAT/RDR and filter rules.
1.28 frantzen 5: # Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1
6: # in /etc/sysctl.conf if packets are to be forwarded between interfaces.
1.4 henning 7:
1.38 deraadt 8: set skip on lo
1.27 cedric 9:
1.45 henning 10: # filter rules and anchor for ftp-proxy(8)
1.38 deraadt 11: #anchor "ftp-proxy/*"
1.45 henning 12: #pass in quick proto tcp to port ftp rdr-to 127.0.0.1 port 8021
1.38 deraadt 13:
1.45 henning 14: # anchor for relayd(8)
1.38 deraadt 15: #anchor "relayd/*"
1.27 cedric 16:
1.42 henning 17: pass # to establish keep-state
1.46 todd 18:
19: # rules for spamd(8)
20: #table <spamd-white> persist
21: #table <nospamd> persist file "/etc/mail/nospamd"
1.47 ! jmc 22: #pass in on egress proto tcp from any to any port smtp \
! 23: # rdr-to 127.0.0.1 port spamd
! 24: #pass in on egress proto tcp from <nospamd> to any port smtp
! 25: #pass in on egress proto tcp from <spamd-white> 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