challenge with dummynet+ipfw
vladone
vladone at spaingsm.com
Sun Aug 28 21:50:45 GMT 2005
I know about pf+altq. I can use even ipfw+altw. But i'm fun dummynet,
and i want to use'it. :)
My work at moment is:
#download total
$cmd pipe 1 config bw 1000kbits/s
#download agregate (low pri. 300kbits/s agregate)
$cmd pipe 2 config bw 300kbits/s
$cmd queue 2 config weight 1 pipe 1
$cmd queue 3 config weight 1 pipe 2 mask dst-ip 0xffffff
# down agregate games (hight priorized due flow reason)
$cmd pipe 4 config bw 512kbit/s
$cmd queue 4 config weight 100 pipe 1 mask dst-ip 0xffffff
$cmd queue 8 config weight 1 pipe 4 mask dst-ip 0xffffff
#download agregate net (low pri. 512kbit/s agregate)
$cmd pipe 6 config bw 512kbit/s
$cmd queue 5 config weight 1 pipe 1
$cmd queue 6 config weight 1 pipe 6 mask dst-ip 0xffffff
and ipfw rules:
#traffic hight priorized
$cmd add 700 queue 4 ip any $games_ports to $local_net in recv $pif
$cmd add 700 pipe 4 ip any $games_ports to $local_net in recv $pif
$cmd add 700 queue 8 ip any $games_ports to $local_net in recv $pif
$cmd add 700 skipto 65000 ip from any $games_ports to $local_net in recv $pif
#traffic from special ip (low pri. 300kbit/s agregate)
$cmd add 700 queue 2 ip from $ip_list to $local_net in recv $pif
$cmd add 700 pipe 2 ip from $ip_list to $local_net in recv $pif
$cmd add 700 queue 3 ip from $ip_list to $local_net in recv $pif
$cmd add 700 skipto 65000 ip from $ip_list to $local_net in recv $pif
#traffic from internet (low pri. 512kbit/s agregate)
$cmd add 700 queue 5 ip from any to $local_net in recv $pif
$cmd add 700 pipe 6 ip from any to $local_net in recv $pif
$cmd add 700 queue 6 ip from any to $local_net in recv $pif
$cmd add 700 skipto 65000 ip from any to $local_net in recv $pif
This set work but i dont know if is corect. If any have experience
plase help me!
More information about the freebsd-questions
mailing list