LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   I question about CBQ: please help me! (https://www.linuxquestions.org/questions/linux-networking-3/i-question-about-cbq-please-help-me-365601/)

ikillu 09-21-2005 10:06 AM

I question about CBQ: please help me!
 
Hi,
I use CBQ for internet bandwidth shaping. my internet connection diagram like this . . . .

ISP
|
|
eth1 - 195.xxx.xxx.xxx
|
Server
|
eth0 - 192.168.0.1
|
|
Local Network
|

CBQ conf file like this....
Quote:

DEVICE=eth0,10Mbit,1Mbit
RATE=80Kbit
WEIGHT=5Kbit
PRIO=5
RULE=192.168.0.0/24
it is work. but when I try to download something from My Server 192.168.0.1 this rule also apply. but I want, when user download something from 192.168.0.1 they get full bandwidth, and when they download something from INTERNET they get 80Kbit. for this I change DEVICE eth1 from eth0 like this . .

Quote:

DEVICE=eth1,10Mbit,1Mbit
RATE=80Kbit
WEIGHT=5Kbit
PRIO=5
RULE=192.168.0.0/24
but this won't work. pls help me to fix this problem.

frostschutz 09-25-2005 01:28 PM

I've never had much success with CBQ, but if it's class based in a way similar to HTB, then you should be able to apply the solution I use for HTB:

Code:

HTB root QDisc
|
\--- HTB root class (Interface Speed)
      |
      \--- HTB internet class (Internet Speed)
      |    |
      |    \--- ... HTB internet traffic shaping classes go here ...
      |
      \--- HTB local network class (Interface minus Internet Speed)



All times are GMT -5. The time now is 08:31 PM.