LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Network bandwidth limiting - how to limit the whole network (https://www.linuxquestions.org/questions/linux-networking-3/network-bandwidth-limiting-how-to-limit-the-whole-network-479992/)

sKAApGIF 09-03-2006 07:17 AM

Network bandwidth limiting - how to limit the whole network
 
Here's the problem: I have internet account with limit of 3G per month. The ISP's data usage monitor isn't very reliable, or rather, updates very slow so:

1.1 I need to log all the internet usage on the home network. (Which I'll use bandwidthd for)

1.2 Limit bandwidth where possible, e.g. make webcam or voip calls use half the bandwidth while still letting enough to have a pleasurable experience.

The setup: 3 computers connected to internet and each other through a router/hub (two in one). A squid proxy and CBQ installed on the server to be.

I'm currently struggling with two things...

2.1 how do I make all the computers use my proxy or somehow go through the server so data usage can be logged?

2.2 If that's working, actually limiting bandwidth.

I have no clue about 2.1 so I skipped to 2.2... I installed CBQ and have this as conf file:
DEVICE=eth0,10Mbit,1Mbit
RATE=1Kbit #Limit to 1kbit/s
WEIGHT=100 #should be 1/10 of rate
PRIO=5
#Limit what?: The whole network's traffic to test if things are working
RULE=:10.0.0.0/24

After I start CBQ with "cbq start" I still get download rates of up to 40kbit/s what's wrong?

Any help or suggestions is appreciated, I'm extremely new to this.

sKAApGIF 09-03-2006 01:35 PM

If I start it I sometimes get the error: find: warning: you have specified the -maxdepth option after a non-option argument (, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before arguments.

schlabs 01-07-2010 04:12 PM

The problem is originated in the old of the CBQ file.

In the line 578 you can find this
Code:

        CLASSLIST=`find $1 \( -type f -or -type l \) -name 'cbq-*' \
                -maxdepth 1 -not -name '*~'  -printf "%f\n"| sort`
        [ -z "$CLASSLIST" ] &&
                cbq_failure "no configuration files found in $1!"

and mus be:

Code:

        CLASSLIST=`find $1 -maxdepth 1 \( -type f -or -type l \) -name 'cbq-*' \
                -not -name '*~'  -printf "%f\n"| sort`
        [ -z "$CLASSLIST" ] &&
                cbq_failure "no configuration files found in $1!"

The same change in line 583 other call to find function.


I KNOW this theme is very old, but i want let the answer for the next user stuck in the same point.

Regards


All times are GMT -5. The time now is 07:15 AM.