xref: /freebsd/share/examples/pf/pf.conf (revision 8ddb146abcdf061be9f2c0db7e391697dafad85c)
1#	$FreeBSD$
2#	$OpenBSD: pf.conf,v 1.34 2007/02/24 19:30:59 millert Exp $
3#
4# See pf.conf(5) and /usr/share/examples/pf for syntax and examples.
5# Remember to set gateway_enable="YES" and/or ipv6_gateway_enable="YES"
6# in /etc/rc.conf if packets are to be forwarded between interfaces.
7
8#ext_if="ext0"
9#int_if="int0"
10
11#table <spamd-white> persist
12
13#set skip on lo
14
15#scrub in
16
17#nat-anchor "ftp-proxy/*"
18#rdr-anchor "ftp-proxy/*"
19#nat on $ext_if inet from !($ext_if) -> ($ext_if:0)
20#rdr pass on $int_if proto tcp to port ftp -> 127.0.0.1 port 8021
21#no rdr on $ext_if proto tcp from <spamd-white> to any port smtp
22#rdr pass on $ext_if proto tcp from any to any port smtp \
23#	-> 127.0.0.1 port spamd
24
25#anchor "ftp-proxy/*"
26#block in
27#pass out
28
29#pass quick on $int_if no state
30#antispoof quick for { lo $int_if }
31
32#pass in on $ext_if proto tcp to ($ext_if) port ssh
33#pass in log on $ext_if proto tcp to ($ext_if) port smtp
34#pass out log on $ext_if proto tcp from ($ext_if) to port smtp
35#pass in on $ext_if inet proto icmp from any to ($ext_if) icmp-type { unreach, redir, timex }
36