Solved

rate limit / bandwidth throttling / shaping

Posted on 2007-12-01
1
766 Views
Last Modified: 2008-02-01
I have been trying to use TC example from this thread but it does not seem to be working. The inbound and the outbound are the same and it give an error trying to add the outbound(already exist). It also looks like this was design for a router and I am trying to use this in a public server and limit all traffic to 512kb. I tried the to replace the private address with our public but still can't get it to work in any direction.

I am using RH ES4

http://www.experts-exchange.com/Networking/Linux_Networking/Q_20819743.html
0
Comment
Question by:redbaran28
1 Comment
 
LVL 43

Accepted Solution

by:
ravenpl earned 500 total points
ID: 20390438
In the previous thread there's nothing about inbound limiting.
http://lartc.org/howto/lartc.imq.html # needs kernel pathing, but really works
http://tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.adv-qdisc.ingress.html # it's really unusable, but...

For full examples refer
http://lartc.org/howto/lartc.cookbook.ultimate-tc.html
http://www.faqs.org/docs/Linux-HOWTO/Traffic-Control-tcng-HTB-HOWTO.html
use htb. If You need just limit outbound traffic to 512k

TC=/sbin/tc
DEV="dev eth0"
#flush qdisc
$TC qdisc del $DEV root 2>&1>/dev/null

#exit if $0 stop
[ _$1 = _stop ] && exit 0

#init qdisc, set default class for traffic
$TC qdisc add $DEV root handle 1:0 htb default 2
#root class with full NIC speed
$TC class add $DEV parent 1:0 classid 1:1 htb rate 100mbit ceil 100mbit burst 64k

#default class, general porpouse
$TC class add $DEV parent 1:1 classid 1:2 htb rate 512kbit ceil 512kbit burst 32k

#optionally attach SFQ to default class
$TC qdisc add dev eth2 parent 1:2 handle 20: sfq perturb 15
0

Featured Post

New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HP comware router, configure multiple IP's on WAN interface 1 58
Does Cisco ASA 5506-X have full dmz capabilities 3 36
Static Route 22 46
Botnet detection help me please 21 81
I found an issue or “bug” in the SonicOS platform (the firmware controlling SonicWALL security appliances) that has to do with renaming Default Service Objects, which then causes a portion of the system to become uncontrollable and unstable. BACK…
Getting hacked is no longer a matter or "if you get hacked" — the 2016 cyber threat landscape is now titled "when you get hacked." When it happens — will you be proactive, or reactive?
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now