I'm encountering some difficulty in setting up a simple rdr anchor on
my OpenBSD 4.0 system.

This works:

EXT = "rl0"
WWW = "192.168.1.1"
<options>
rdr pass on $EXT inet proto tcp from any to ($EXT) port 80 -> $WWW
<rest of rdr>
<rest of filter rules>


But this doesn't:

EXT = "rl0"
WWW = "192.168.1.1"
<options>
rdr-anchor "webaccess" {
rdr pass on $EXT inet proto tcp from any to ($EXT) port 80 -> $WWW
}
anchor webaccess
<rest of rdr>
<rest of filter rules>


My error is:

/etc/pf.conf:232: syntax error
/etc/pf.conf:234: syntax error
/etc/pf.conf:244: Rules must be in order: options, normalization,
queueing, translation, filtering
/etc/pf.conf:253: Rules must be in order: options, normalization,
queueing, translation, filtering
/etc/pf.conf:262: Rules must be in order: options, normalization,
queueing, translation, filtering
/etc/pf.conf:271: Rules must be in order: options, normalization,
queueing, translation, filtering


Lines 232 and 234 are the lines containing the braces.

Thanks in advance,

// juan


      Get news delivered with the All new Yahoo! Mail.  Enjoy RSS feeds right 
on your Mail page. Start today at http://mrd.mail.yahoo.com/try_beta?.intl=ca

Reply via email to