Re: [bwm-tools-tech] error during #bwmd --foreground
Brought to you by:
nkukard
From: Kobe L. <ko...@mo...> - 2006-02-25 22:36:43
|
Did you check the good working with 'bwm_monitor' and is the bwmd deamon running? Also, try iptables -L -n -v to see any counters going up Greetz Kobe rajveer singh wrote: > > > Hi all, > > Thanks Mr. Kobe for providing steps it helps me a lot. but i goes to > monitor there nothing is happening. > my /etc/bwm_tools/firewall's contents are as below > > # Global configuration and access classes > > > > <global> > <modules> > <load name="ip_queue"/> > </modules> > <class name="out_machine1"> > <address name="out_machine1_tcp" proto="tcp" src="192.168.0.1"/> > <address name="out_machine1_udp" proto="udp" src="192.168.0.1"/> > </class> > > <class name="out_machine2"> > <address name="out_machine2_tcp" proto="tcp" src="192.168.0.2"/> > <address name="out_machine2_udp" proto="udp" src="192.168.0.2"/> > </class> > > </global> > > > # Access control lists > # Network address translation > # Traffic flows > > <traffic> > > # Rate can be specified in either IN, OUT or TOTAL (rate-total) > # If rate-total == 0, no rate limits > > > <flow name="main_line" stats-len="5" queue-size="262144" > queue-len="400" max-rate="64000" burst-rate="65000" report-timeout="60"> > <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_machine2; > </queue> > </flow> > </flow> > </traffic> > </firewall> > > and my contents of /etc/sysconfig/iptables are as below: > > # Generated using BWM Firewall v0.2.2: Sat Feb 25 18:06:44 2006 > > *mangle > :OUTPUT ACCEPT > :INPUT ACCEPT > :FORWARD ACCEPT > -A FORWARD --source 192.168.0.1 --protocol tcp -j MARK --set-mark 1001 > -A FORWARD --source 192.168.0.1 --protocol udp -j MARK --set-mark 1001 > -A FORWARD --source 192.168.0.2 --protocol tcp -j MARK --set-mark 1002 > -A FORWARD --source 192.168.0.2 --protocol udp -j MARK --set-mark 1002 > COMMIT > *filter > :OUTPUT ACCEPT > :bwmd - > :INPUT ACCEPT > :FORWARD ACCEPT > -A bwmd -m mark ! --mark 0 -j QUEUE > COMMIT > > when i tried to create graph as per below > linux:~ # bwm_graph --flow="out_machine1 --start="2006/02/25 18:28" > --end="2006/02/25 18:30" output=/etc/file1 > > > > > > > > > > > > > nothing happen > > I'm thinking it's some problem in my firewall setup. I tried to > recognise it. but unable to find it. > > > > On Sat, 25 Feb 2006 Kobe Lenjou wrote : > >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> > > > > > > <http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3> |