Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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.
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.
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 }
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 .
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.