Re: [bwm-tools-tech] error during #bwmd --foreground
Brought to you by:
nkukard
From: Kobe L. <ko...@mo...> - 2006-02-24 19:40:23
|
Steps are easy. First you have to 'mark' you traffic in the <global> section, you need to mark each and every packet you want to shape zo in your case this would be something like: <class name="out_machine1"> <adress name="out_machine1_tcp" src-iface="eth0" proto="tcp" src="192.168.0.1" dst="!192.168.0.0/24"> <adress name="out_machine1_udp" src-iface="eth0" proto="udp" src="192.168.0.1" dst="!192.168.0.0/24"> </class> <class name="out_machine2"> ... same thing for the other IP </class> Then you need to 'limit' each 'flow' in the <traffic> section; something like this <flow name="flow_machine1" max-rate="16000" burst-rate="32000" queue-size="16384" report-timeout="60"> <queue prio="99" nfmark="1001"> out_machine1; </queue> </flow> <flow name="flow_machine2" max-rate="16000" burst-rate="32000" queue-size="16384" report-timeout="60"> <queue prio="99" nfmark="1002"> out_machine1; </queue> </flow> This limiets each host to an upstream speed op 16k with burst to 32k. Greetz Kobe rajveer singh wrote: > > > Mr. Larry Smith, > > I'm really so happy by seeing ur reply so quickly. Thanks u so much. > both of the errors have been resolved. Further i need ur help as > /etc/bwm_tools/firewall.xml file is mistry for me. So i want some > comments as per mine scenario as bwlow please:- > > > I've two NIC CARDS installed on my system as below > eth0:- 192.168.0.11 (local lan interface) > eth1:- 172.16.0.73 ( Internet interface) > > on my lan there are two ohter windows machines are connected. their > IPs are 192.168.0.2,192.168.0.1 respectively. > > on my eth1 interface cable connection is connected which speed is 64kbps. > now i want to shape my traffice as below:- > > 32kbps for my machine that is working as firewall/gateway/proxy. > > 16 kbps to 192.168.0.1 > and 16 kbps to 192.168.0.2 > > that's it. > > now somebody, please give step by step instruction, so that, i can do > it.I appreciate if any help can be provided. I will be able to > understand it's working concepts then i will be able to paly with this > bwm-tools. Please also provide instruction to display graphs and > monitor bandwidth uses. > > > thanks for ur kind consideration. > > > > > > > On Fri, 24 Feb 2006 Larry Smith wrote : > >On Friday 24 February 2006 06:47, rajveer singh wrote: > > > Hello guys, > > > > > > when i tried to run #bwmd --foreground command. it's shows some > error as > > > below.. Please guide me why r these problems and how to shor out. > > > > > > linux:~ # bwmd --foreground > > > BWM Daemon v0.2.2 - Copyright (c) 2003-2005 Linux Based Systems Design > > > > > > BWMD: Loaded 9 flows and 8 queues > > > BWMD: Found 0 modules to load > > > IPQ runner started... > > > Received error message: IPQ = Unknown error, SYSTEM = Success > > > Flow runner started... > > > flowControl: Error binding to socket: Address already in use > > > Report runner started... > > > Creating report file /var/bwm_tools/out_dsl.dat > > > Stat error on "/var/bwm_tools/out_dsl.dat": No such file or directory > > > Creating report file /var/bwm_tools/out_jane.dat > > > Stat error on "/var/bwm_tools/out_jane.dat": No such file or directory > > > Creating report file /var/bwm_tools/out_niels.dat > > > Stat error on "/var/bwm_tools/out_niels.dat": No such file or > directory > > > Creating report file /var/bwm_tools/out_kobe.dat > > > Stat error on "/var/bwm_tools/out_kobe.dat": No such file or directory > > > Creating report file /var/bwm_tools/out_ron.dat > > > Stat error on "/var/bwm_tools/out_ron.dat": No such file or directory > > > Creating report file /var/bwm_tools/out_hendrik.dat > > > Stat error on "/var/bwm_tools/out_hendrik.dat": No such file or > directory > > > Creating report file /var/bwm_tools/out_icarus.dat > > > Stat error on "/var/bwm_tools/out_icarus.dat": No such file or > directory > > > Creating report file /var/bwm_tools/out_xabbu.dat > > > Stat error on "/var/bwm_tools/out_xabbu.dat": No such file or > directory > > > Creating report file /var/bwm_tools/out_other.dat > > > Stat error on "/var/bwm_tools/out_other.dat": No such file or > directory > > > > > > >Rajveer, > > > > > BWMD: Found 0 modules to load > > > >Looks like two errors. First is that it found no modules to load. > Believe > >you require at least "ip_queue". Mine looks like this: > > > > <modules> > > <load name="ip_queue"/> > > </modules> > > > >in the <global> section of your firewall.xml > > > >The second error is that BWM defaults to using /var/bwm_tools > directory for > >its logging/data files. This directory _must_ exist before you start > bwmd. > >It can create the flow files as necessary, but cannot create the > directory. > > > >Try "mkdir /var/bwm_tools" and it should fix the second error. > > > >-- > >Larry Smith > >SysAd ECSIS.NET > >sy...@ec... > > > > > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > >that extends applications into web and mobile media. Attend the live > webcast > >and join the prime developer group breaking into this new coding > territory! > >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > >_______________________________________________ > >bwm-tools-tech mailing list > >bwm...@li... > >https://lists.sourceforge.net/lists/listinfo/bwm-tools-tech > > > > <http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3> |