#### $Id: example-pf.conf.template 943 2007-04-07 14:00:26Z jhealy $ #### #### This is an example PF configuration template. This file will be #### used to generate a full PF configuration file, complete with the #### exile queues and rules. Because a PF config file requires things to #### be in a certain order, we must use a template with tokens that will #### be replaced. This allows you to put your own code, interleaved with #### autogenerated code. #### #### The following tokens are recognized and replaced: #### #### $EXILE_WAN_IF - Inserts the name of the WAN interface #### from the exile configuration #### #### $EXILE_LAN_IF - Inserts the name of the LAN interface #### from the exile configuration #### #### $EXILE_LAN_RANGE - Inserts the LAN_RANGE configuration #### variable (in case you need rules that rely #### on this value) #### #### #### $EXILE_QUEUE_ROOT_IN - Inserts the name of the "inbound" root queue #### #### $EXILE_QUEUE_ROOT_OUT - Inserts the name of the "outbound" root queue #### #### $EXILE_QUEUE_DEFS_IN - Inserts the queue definitions for all the #### exile queues applying to the "inbound" #### direction (including the inbound root and #### all subqueues) #### #### $EXILE_QUEUE_DEFS_OUT - Inserts the queue definitions for all the #### exile queues applying to the "outbound" #### direction (including the outbound root and #### all subqueues) #### #### $EXILE_TABLE_DEFS_IN - Inserts the address table definitions for #### the inbound tables. #### #### $EXILE_TABLE_DEFS_OUT - Inserts the address table definitions for #### the outbound tables. #### #### $EXILE_ROOT_RT_IN - Inserts the root level HFSC realtime #### allocation for the inbound traffic #### #### $EXILE_ROOT_LS_IN - Inserts the root level HFSC linkshare #### allocation for the inbound traffic #### #### $EXILE_ROOT_UL_IN - Inserts the root level HFSC upperlimit #### allocation for the inbound traffic #### #### $EXILE_ROOT_RT_OUT - Inserts the root level HFSC realtime #### allocation for the outbound traffic #### #### $EXILE_ROOT_LS_OUT - Inserts the root level HFSC linkshare #### allocation for the outbound traffic #### #### $EXILE_ROOT_UL_OUT - Inserts the root level HFSC upperlimit #### allocation for the outbound traffic #### # Insert the exile table definitions for both directions $EXILE_TABLE_DEFS_IN $EXILE_TABLE_DEFS_OUT # Set up the interface queues , and insert the names of the exile root # queue as the only subqueue on this interface. (You could create # your own custom queues for "special treatment" if you want; this # example is the simplest possible setup.) altq on $EXILE_LAN_IF hfsc bandwidth 1Gb queue { $EXILE_QUEUE_ROOT_IN } $EXILE_QUEUE_DEFS_IN altq on $EXILE_WAN_IF hfsc bandwidth 1Gb queue { $EXILE_QUEUE_ROOT_OUT } $EXILE_QUEUE_DEFS_OUT # the script will autogen all the other rules for exile, as well as # including the "local" rules below