Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Dec 2006 05:39:26 +0000
From:      sukaca <myninku@gmail.com>
To:        freebsd-pf@freebsd.org
Subject:   Rules must be in order
Message-ID:  <afce09420612302139h130776d6m27d677bdb4b32876@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
dear all

i just configure pf+altq
and got error masssage

this my config

ext_if="lnc0"   # replace with actual external interface name i.e., dc0
int_if="lnc0"   # replace with actual internal interface name i.e., dc1
internal_net1="10.10.1.1/24"
internal_net2="10.10.2.1/24"

altq on lnc0 cbq bandwidth 128Kb  queue { internal_net1, internal_net2 }
queue internal_net2 bandwidth 64Kb cbq(default borrow)
queue internal_net1 bandwidth 64Kb cbq(red borrow)

pass out on lnc0 from any to any   queue (internal_net1, internal_net2)
pass in  on lnc0 from any to any   queue (internal_net1, internal_net2)

nat on lnc0 from 10.10.1.0/24 to any -> 124.81.224.194
nat on lnc0 from 10.10.2.0/24 to any -> 124.81.224.194

the error is

pfctl -f /etc/pf.conf
/etc/pf.conf:13: Rules must be in order: options, normalization, queueing,
translation, filtering
/etc/pf.conf:14: Rules must be in order: options, normalization, queueing,
translation, filtering
pfctl: Syntax error in config file: pf rules not loaded

where is my wrong
and what should i do

thanks and regard

vicky



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?afce09420612302139h130776d6m27d677bdb4b32876>