Annotation of src/etc/pf.conf, Revision 1.38
1.38 ! deraadt 1: # $OpenBSD: pf.conf,v 1.37 2008/05/09 06:04:08 reyk 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 require-order no
! 9: set skip on lo
! 10: scrub in
1.27 cedric 11:
1.38 ! deraadt 12: # NAT/filter rules and anchors for ftp-proxy(8)
1.31 camield 13: #nat-anchor "ftp-proxy/*"
14: #rdr-anchor "ftp-proxy/*"
1.38 ! deraadt 15: #rdr pass on ! egress proto tcp to port ftp -> 127.0.0.1 port 8021
! 16: #anchor "ftp-proxy/*"
! 17: #pass out proto tcp from $proxy to any port ftp
! 18:
! 19: # NAT/filter rules and anchors for relayd(8)
1.35 reyk 20: #rdr-anchor "relayd/*"
1.38 ! deraadt 21: #anchor "relayd/*"
! 22:
! 23: # NAT rules and anchors for spamd(8)
! 24: #table <spamd-white> persist
! 25: #table <nospamd> persist file "/etc/mail/nospamd"
! 26: #no rdr on egress proto tcp from <nospamd> to any port smtp
! 27: #no rdr on egress proto tcp from <spamd-white> to any port smtp
! 28: #rdr pass on egress proto tcp from any to any port smtp -> 127.0.0.1 port spamd
1.27 cedric 29:
1.38 ! deraadt 30: pass in # to establish keep-state
1.27 cedric 31:
1.38 ! deraadt 32: #block in quick from urpf-failed to any # use with care
1.27 cedric 33:
1.38 ! deraadt 34: # By default, do not permit remote connections to X11
! 35: block in on ! lo0 proto tcp from any to any port 6000