LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-07-2005, 03:04 PM   #1
alvi2
Member
 
Registered: Feb 2005
Posts: 77

Rep: Reputation: 15
Question problem in cbq


hello
i downloaded the latest version of cbq (version 0.7.3) from freshmeat.net and copy it on the /etc/rc.d/
then made it executable as
chmod 777 /etc/rc.d/cbq.init.....


when i try to start this as
/etc/rc.d/cbq.init-v0.7.3 start

it showed me that error
**CBQ:failed to compile cbq configuration:

now how can i run this
plz tell in with detail




and also tell me the software that work like cbq means bandwidth controll softwares

waiting for your reply
 
Old 06-07-2005, 04:55 PM   #2
apolon10
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Rep: Reputation: 0
re:

CBQ.init script, read your scripts in /etc/sysconfig/cbq folder (suse9.2). If there is no cbq folder just create new and start writing scripts you need. There is how to in cbq.init script file. You can only limit outgoing traffic on one NIC. If you want to limit up/stream you must have 2 NIC
 
Old 06-08-2005, 02:05 AM   #3
alvi2
Member
 
Registered: Feb 2005
Posts: 77

Original Poster
Rep: Reputation: 15
i am running my cable net

and have 128 kb/s bandwidth

and have two nic card
eth0 for dsl router
and eth1 for lan

i am using redhat 9 and this distro have cbq folder in
/etc/sysconfig/cbq


what can i do now

another question is i found this software
at
http://www.linux.org/doc5/idp/howto/...howto/cbq.html

does the theory written in this are right mean workable or not

waiting for reply
 
Old 06-08-2005, 03:01 PM   #4
apolon10
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Rep: Reputation: 0
re:

OK. what do you want to do with your 128 Kb, how many users you want to conect to your linux box, did they all use same limitation (up/down stream, ports - tcp, udp) a asume that you are using iptables2. what is IP range. tell me little more and I'll send you a script. I also have GUI for CBQ but I have not test it yet, if you are interesting I'll send you via e-mail.
 
Old 06-08-2005, 03:28 PM   #5
alvi2
Member
 
Registered: Feb 2005
Posts: 77

Original Poster
Rep: Reputation: 15
dear apolon

i am really interested
i configure the squid delay pool but it is very very much slow

i want to down the any ftp trafic ,kazaa,imesh ,download accelator type trafic
upto 3 kb/s but full access of http traffic

dear i downloaded the iptable 2 but is not compiled on my system

i am using redhat 9 and i think this distro dont have iptable2

so i need your full help and hope you will help me

my e mail address is m_alvi82@hotmail.com

waiting for your reply
 
Old 06-08-2005, 03:30 PM   #6
alvi2
Member
 
Registered: Feb 2005
Posts: 77

Original Poster
Rep: Reputation: 15
my ip range is
192.168.0.1 upto 192.168.0.255
 
Old 06-09-2005, 06:00 PM   #7
apolon10
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Rep: Reputation: 0
If you want to share your connection (ADSL, cable...) with other users you must first install IP_FORWARDING or MASQUERADING or have any hardwere router to do this.

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQ (or iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE)

ppp0 or eth0... depend or what interface you are using for internet

when you finishetd with NAT routing, now you can start with CBQ.


/etc/sysconfig/cbq/cbq-1280.upload

DEVICE=eth0,10Mbit,1Mbit
RATE=30Kbit
WEIGHT=3Kbit
PRIO=5
RULE=192.128.0.1/24:21
RULE={add here other ports you want to limit 21 is for FTP, find port number for kazza emule...if you have problem with more rules in one script, just write more scripts with only one rule - if you want to limit 3KB for 10 ports write 10 scripts like this one for upload and 10 for upload }


/etc/sysconfig/cbq/cbq-1290.down

DEVICE=eth1,10Mbit,1Mbit
RATE=30Kbit
WEIGHT=3Kbit
PRIO=5
RULE=192.128.0.1/24:21



If you didn't start with all this mass, I sugest you to instal MIKROTIK routing software on an old mashine, it's much easier for use. www.mikrotik.com .
 
Old 06-15-2005, 03:59 AM   #8
lindani
LQ Newbie
 
Registered: Jun 2005
Posts: 13

Rep: Reputation: 0
thanks a lot for your help.
i have a problem with my user in my lan.
i have 2 eth (0,1) on my linux server that run squid on it.(eth1:Lan card,eth0 Wan card).
i want limit per ip to download with 64000 bit per second.(foe example source ip address 172.16.16.200 download with 640000 bit per second).
my lan range 172.16.16.200 to 172.16.16.255.
can you help me?
please please help me.
RG.
 
Old 06-15-2005, 04:17 AM   #9
apolon10
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Rep: Reputation: 0
re:

/etc/sysconfig/cbq/cbq-1280.upload

DEVICE=eth0,10Mbit,1Mbit
RATE=64Kbit
WEIGHT=5Kbit
PRIO=5
RULE=172.16.16.200
RULE=172.16.16.201
RULE=172.16.16.202
.
.
.





/etc/sysconfig/cbq/cbq-1290.down

DEVICE=eth1,10Mbit,1Mbit
RATE=64Kbit
WEIGHT=5Kbit
PRIO=5
RULE=172.16.16.200
RULE=172.16.16.201
RULE=172.16.16.202
.
.
.


This two sripts are for 64Kbits for all ports, just add your IP address, if you want to limit some users on 128 Kb or any other rate you must create 2 more scripts... just reneme scripts and change RATE (weight is usualy 1/10 * rate) and add IP's
 
Old 06-15-2005, 04:17 AM   #10
chamnane
LQ Newbie
 
Registered: Jul 2004
Location: Cambodia
Distribution: Red Hat
Posts: 9

Rep: Reputation: 0
Hi,

If you know squid, you should know the delay pool. You can read about it in squid.conf file. Then you will know what to do.

Chamnane
 
Old 06-15-2005, 04:39 AM   #11
lindani
LQ Newbie
 
Registered: Jun 2005
Posts: 13

Rep: Reputation: 0
thanks a lots.
yes i know delay pools and it run in my squid server.
but i heartd that delay pools can not limit bandwidth for kazza,download acc,Real Audio,..... ports,so i force use from cbq.
i can use from another way that i MARK Packate from My Clients and limit in tc but i have not a good reference for this.
if you have any tutorial please help me.
RG
 
Old 03-31-2006, 03:17 AM   #12
adnanwll
LQ Newbie
 
Registered: Jan 2006
Location: karachi
Distribution: Nil
Posts: 2

Rep: Reputation: 0
Can Any Boddy Told Me How To Instal And Configure CBQ ?
 
  


Reply


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
Bandwidth Limiting Using CBQ..problem :( hasnain Linux - Networking 1 03-04-2006 03:17 PM
CBQ-help ikillu Linux - Networking 3 06-30-2005 04:33 PM
Where is CBQ? shrike_912 Linux - Newbie 3 10-26-2004 01:09 PM
Where is CBQ? shrike_912 Programming 2 10-25-2004 03:39 PM
CBQ and mldonkey thinkninja Linux - Newbie 0 08-22-2003 05:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:42 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration