LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 09-03-2006, 08:17 AM   #1
sKAApGIF
LQ Newbie
 
Registered: May 2006
Distribution: SuSE OSS 10.1
Posts: 20

Rep: Reputation: 0
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.
 
Old 09-03-2006, 02:35 PM   #2
sKAApGIF
LQ Newbie
 
Registered: May 2006
Distribution: SuSE OSS 10.1
Posts: 20

Original Poster
Rep: Reputation: 0
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.
 
Old 01-07-2010, 05:12 PM   #3
schlabs
LQ Newbie
 
Registered: Aug 2007
Posts: 20

Rep: Reputation: 1
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
 
  


Reply

Tags
bandwidth, cbq, limiting, networking


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When the network traffic increase over some limit network works interruptedly therrman Linux - Hardware 0 11-15-2005 03:23 AM
Vsftpd - how to limit download bandwidth but unlimited upload bandwidth? mpls mikeg Linux - Software 3 08-13-2005 02:52 PM
Network bandwidth 1/2 what it should be geniarse Linux - Networking 4 09-21-2004 10:02 AM
Network Traffic Sharing/Limiting reggie Linux - Networking 2 02-07-2004 10:29 PM
limiting bandwidth on a specific network interface. Passive Linux - Networking 3 05-01-2002 05:20 AM


All times are GMT -5. The time now is 12:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration