# IPFW Rules # Generated automaticaly # # $Id$ # dnl Macro: _PIPENEW_ - Create new ipfw pipe dnl Parameters: dnl 1 - pipe bandwidth dnl 2 - queue size dnl 3 - additional parameters added to pipe .. string dnl Example: PIPENEW(`256Kbit/s',`10',`ppl 2') define(`PIPENEW', `define(`PIPECUR', incr(PIPECUR))pipe PIPECUR config bw $1 queue $2 $3')dnl dnl define(`PIPECUR', 0)dnl dnl dnl Macro: _PIPEADD_ - Add IPFW rule with current pipe dnl Syntax: dnl 1 - ipfw rule dnl 2 - ipfw rule number dnl Example: PIPEADD(`ip from any to any via ep11',2000) define(`PIPEADD',`add $2 pipe PIPECUR $1')dnl #Test 1 PIPENEW(`256Kbit/s',`10') PIPEADD(ip from 213.133.160.48/16 to any bridged, 2000) PIPENEW(`256Kbit/s',`10',`ppl 2') PIPEADD(ip from any to 213.133.160.48/16 bridged)