Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-22-2005, 12:03 PM
|
#1
|
|
LQ Newbie
Registered: Jun 2005
Location: Ecuador
Posts: 11
Rep:
|
How limit bandwidth
Please, how limit inblound bandwidth in fedora core 2, i use cbq but donīt work in inbound traffic.
|
|
|
|
06-22-2005, 12:32 PM
|
#2
|
|
Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163
Rep:
|
hmmm _why_ do you want to limit inbound bandwidth?
If you think it will prevent you from flooding, please note it is useless
I dont know if it could do the job for you, but I like to use iptables to limit inbound connections (like how many "connections" I accept on a service for a given time) but if you really need bandwidth, it won't do the job.
|
|
|
|
06-22-2005, 12:45 PM
|
#3
|
|
LQ Newbie
Registered: Jun 2005
Location: Ecuador
Posts: 11
Original Poster
Rep:
|
i need in cyber becouse the navigate eat all bandwidth and the telephony don't work then i need limit the inbound bandwidth for navigation.
Thanks
|
|
|
|
06-22-2005, 04:55 PM
|
#4
|
|
Member
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219
Rep:
|
there is also a iptables byte limit patch.
you can limit bandwidth easily with this.
|
|
|
|
06-23-2005, 11:21 AM
|
#5
|
|
LQ Newbie
Registered: Jun 2005
Location: Ecuador
Posts: 11
Original Poster
Rep:
|
thanks, but i know about byte limit patch can you give me a tip please?
|
|
|
|
06-24-2005, 02:43 AM
|
#6
|
|
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127
Rep:
|
Last edited by born4linux; 06-24-2005 at 02:47 AM.
|
|
|
|
06-24-2005, 09:17 AM
|
#7
|
|
LQ Newbie
Registered: Jun 2005
Location: Ecuador
Posts: 11
Original Poster
Rep:
|
Thanks but i check lartc.org and not limit the inbound traffic, please help me is urgent.
Thanks.....
|
|
|
|
06-24-2005, 01:56 PM
|
#8
|
|
Member
Registered: May 2004
Location: Missouri
Distribution: Gentoo
Posts: 59
Rep:
|
CBQ would work for your application, but is is not efficient because CBQ is used to shape traffic. You need to do ingress traffic policing.
Here is an example:
Assume that my WAN interface is eth1 and I am limiting inbound traffic from ip address: 12.12.12.12
Code:
tc qdisc del dev eth1 ingress
tc qdisc add dev eth1 handle ffff: ingress
tc filter add dev eth1 parent ffff: protocol ip prio 50 u32 match ip src 12.12.12.12 police rate 128kbit burst 15k drop flowid :1
The first line clears any existing ingress qdisc on eth1, if it gives you weird output that is fine.
The second line creates an ingress qdisc on eth1.
The third line creates a 128 Kbps bandwidth cap on all traffic coming from IP address: 12.12.12.12. If this traffic comes in at a rate of higher than 128 Kbps the action will be to drop excess packets.
NOTE: This will work if you are using a service that uses the TCP protocol because TCP will adjust its speed when it starts losing packets. If the connection is saturated with UDP traffic then this will not help you. This is not meant to prevent or mitigate attacks.
Good Luck!
|
|
|
|
06-30-2005, 12:49 AM
|
#9
|
|
Member
Registered: Jul 2004
Posts: 34
Rep:
|
Try CBQ. its best for bandwidth limiting. just use a simple script file and simple configuration.
1. Download CBQ script from https://sourceforge.net/projects/cbqinit .
2. Rename cbq.init-v0.7.3 to cbq.init and cbq.init to /etc/rc.d/
3. now make a file "cbq.999-network" into /etc/sysconfig/cbq/
4. type flowing lines
DEVICE=eth0,10Mbit,1Mbit
RATE=64Kbit
WEIGHT=6Kbit
PRIO=5
RULE=192.168.1.0/24
5. now run CBQ script -> /etc/rc.d/cbq.init
AND magic of this one file simple script.
for more information see http://www.linuxsecurity.com/resourc...HOWTO/cbq.html
|
|
|
|
06-30-2005, 04:04 AM
|
#10
|
|
Member
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 281
Rep:
|
in the RULE u can specify ports, so cbq.init will work fine for u
|
|
|
|
07-18-2005, 04:57 AM
|
#11
|
|
LQ Newbie
Registered: Jul 2005
Posts: 2
Rep:
|
I have installed cbq to throttle bandwidth . I didnt know how to gauze the bandwidth connecting to my computer .
I could not trace the log of cbq and at the same time no idea how to account bandwidth for different ip ( different ruleset )
Any help in this regard will be appreciated,
Thanks,
eswari
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:51 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|