pf.conf revision 1.46
1# $OpenBSD: pf.conf,v 1.46 2009/09/01 14:45:32 todd Exp $ 2# 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. 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. 7 8set skip on lo 9 10# filter rules and anchor for ftp-proxy(8) 11#anchor "ftp-proxy/*" 12#pass in quick proto tcp to port ftp rdr-to 127.0.0.1 port 8021 13 14# anchor for relayd(8) 15#anchor "relayd/*" 16 17pass # to establish keep-state 18 19# rules for spamd(8) 20#table <spamd-white> persist 21#table <nospamd> persist file "/etc/mail/nospamd" 22#pass on egress proto tcp from any to any port smtp rdr-to 127.0.0.1 port spamd 23#pass on egress proto tcp from <nospamd> to any port smtp 24#pass on egress proto tcp from <spamd-white> to any port smtp 25 26 27#block in quick from urpf-failed to any # use with care 28 29# By default, do not permit remote connections to X11 30block in on ! lo0 proto tcp to port 6000:6010 31