[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



[root at firewall cbq]# cat cbq-0002         
DEVICE=eth0,10Mbit,1Mbit
RATE=7000bps
WEIGHT=700bps
PRIO=5
RULE=192.168.1.6
[root at firewall cbq]# cat cbq-0003
DEVICE=eth1,10Mbit,1Mbit
RATE=7000bps
WEIGHT=70bps
PRIO=5
RULE=192.168.1.6,
[root at firewall cbq]# 

I put the numbers real low so I can see from the outside if there was
some throttling going on.

I'm using kernel 2.4.25

Here is status output:
[root at firewall cbq]# cbq.init stats 
### eth0: queueing disciplines

qdisc cbq 1: rate 10Mbit (bounded,isolated) prio no-transmit
 Sent 1967746 bytes 21306 pkts (dropped 0, overlimits 0) 
  borrowed 0 overactions 0 avgidle 624 undertime 0

 
### eth0: traffic classes

class cbq 1: root rate 10Mbit (bounded,isolated) prio no-transmit
 Sent 1967746 bytes 21306 pkts (dropped 0, overlimits 0) 
  borrowed 0 overactions 0 avgidle 624 undertime 0

### eth0: filtering rules

filter parent 1: protocol ip pref 100 u32 
filter parent 1: protocol ip pref 100 u32 fh 800: ht divisor 1 
filter parent 1: protocol ip pref 100 u32 fh 800::800 order 2048 key ht
800 bkt 0 flowid 1:2 
  match c0a80106/ffffffff at 16

### eth1: queueing disciplines

qdisc cbq 1: rate 10Mbit (bounded,isolated) prio no-transmit
 Sent 988234 bytes 11360 pkts (dropped 0, overlimits 0) 
  borrowed 0 overactions 0 avgidle 605 undertime 0

 
### eth1: traffic classes

class cbq 1: root rate 10Mbit (bounded,isolated) prio no-transmit
 Sent 989306 bytes 11368 pkts (dropped 0, overlimits 0) 
  borrowed 0 overactions 0 avgidle 605 undertime 0

### eth1: filtering rules

filter parent 1: protocol ip pref 100 u32 
filter parent 1: protocol ip pref 100 u32 fh 800: ht divisor 1 
filter parent 1: protocol ip pref 100 u32 fh 800::800 order 2048 key ht
800 bkt 0 flowid 1:3 
  match c0a80106/ffffffff at 12


I originally tried it on another machine that I was using bridging on 2
interfaces but bridging happens before ip filters.

Here is my ifconfig output for my firewall.

[root at firewall cbq]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:C0:26:63:61:10  
          inet addr:66.23.198.2  Bcast:66.23.198.3  Mask:255.255.255.252
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20078 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25176 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:2481827 (2.3 Mb)  TX bytes:2359557 (2.2 Mb)
          Interrupt:11 Base address:0xd000 

[root at firewall cbq]# ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 00:E0:C5:BC:00:5A  
          inet addr:192.168.1.254  Bcast:192.168.1.255 
Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18957 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15340 errors:0 dropped:0 overruns:0 carrier:0
          collisions:6 txqueuelen:100 
          RX bytes:1456185 (1.3 Mb)  TX bytes:1639726 (1.5 Mb)
          Interrupt:10 Base address:0xf000 

[root at firewall cbq]# 

What I like about this script is that there is a compile command.  It
outputs the commands it executes.  This give me a chance to learn the
commands.

Thanks again,
Chris


On Sat, 2004-04-24 at 16:08, Dow Hurst wrote:
> I was using the cbq script to do it on a whole interface.
> 
> Here is the link to the script.  It is pretty simple to work with and very 
> effective on an interface.  It may do what you want depending on the queues 
> that are set up.
> Dow
> 
&gt; <a  rel="nofollow" href="http://sourceforge.net/projects/cbqinit";>http://sourceforge.net/projects/cbqinit</a>
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; Christopher Fowler wrote:
&gt; &gt; Maybe someone knows how to do this.  I have one machine on my network
&gt; &gt; that I want to modify its upload speed.  I have a 1.5/256 ADSL
&gt; &gt; connection.  On this one machine I would like to limit upload speeds
&gt; &gt; to the equivalent of a 56k modem.  I want download speeds to remain
&gt; &gt; normal.  I will implement the rule on my firewall.  Does anyone know how
&gt; &gt; to do this?
&gt; &gt; 
&gt; &gt; Thanks,
&gt; &gt; Chris
&gt; &gt; 
&gt; &gt; _______________________________________________
&gt; &gt; Ale mailing list
&gt; &gt; Ale at ale.org
&gt; &gt; <a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>
&gt; &gt; 


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="01123" href="msg01123.html">[ale] QoS Question</a></strong>
<ul><li><em>From:</em> dhurst at kennesaw.edu (Dow Hurst)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="01070" href="msg01070.html">[ale] QoS Question</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Christopher Fowler)</li></ul></li>
<li><strong><a name="01073" href="msg01073.html">[ale] QoS Question</a></strong>
<ul><li><em>From:</em> dhurst at kennesaw.edu (Dow Hurst)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg01082.html">[ale] OpenOffice Calc vs Gnumeric</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg01084.html">[ale] BayStar wants SCO to repay loan</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg01076.html">[ale] QoS Question</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg01123.html">[ale] QoS Question</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#01083"><strong>Date</strong></a></li>
<li><a href="threads.html#01083"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>