|
@ -1,4 +1,4 @@ |
|
|
# $OpenBSD: pf.conf,v 1.15 2002/12/30 23:17:54 dhartmei Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: pf.conf,v 1.16 2003/02/14 00:34:14 jason Exp $ |
|
|
# |
|
|
# |
|
|
# See pf.conf(5) and /usr/share/pf for syntax and examples. |
|
|
# See pf.conf(5) and /usr/share/pf for syntax and examples. |
|
|
# General order: options, scrub rules, translation rules, and filter rules. |
|
|
# General order: options, scrub rules, translation rules, and filter rules. |
|
@ -35,9 +35,10 @@ external_addr="192.168.1.1" |
|
|
# outgoing packets will be translated as coming from the external address. |
|
|
# outgoing packets will be translated as coming from the external address. |
|
|
#rdr on $ext_if proto tcp from any to $external_addr/32 port 1234 -> 10.1.1.1 port 5678 |
|
|
#rdr on $ext_if proto tcp from any to $external_addr/32 port 1234 -> 10.1.1.1 port 5678 |
|
|
|
|
|
|
|
|
# anchor where spamd-setup(8) attaches spam-redirection to spamd(8). |
|
|
|
|
|
|
|
|
# spamd-setup puts addresses to be redirected into table <spamd> |
|
|
|
|
|
#table <spamd> persist |
|
|
#no rdr on { lo0, lo1 } from any to any |
|
|
#no rdr on { lo0, lo1 } from any to any |
|
|
#rdr-anchor spamd inet proto tcp from any to any port = smtp |
|
|
|
|
|
|
|
|
#rdr inet proto tcp from { <spamd> } to any port smtp -> 127.0.0.1 port 8025 |
|
|
|
|
|
|
|
|
# filter rules: the implicit first two rules are |
|
|
# filter rules: the implicit first two rules are |
|
|
#pass in all |
|
|
#pass in all |
|
|