?
Solved

rate limit / bandwidth throttling / shaping

Posted on 2007-12-01
1
Medium Priority
?
773 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 43

Accepted Solution

by:
ravenpl earned 1500 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Network traffic routing plays key role in your network, if you have single site with heavy browsing or multiple sites, replicating important application data from your Primary Default Gateway ,you have to route your other network traffic from your p…
Creating an OSPF network that automatically (dynamically) reroutes network traffic over other connections to prevent network downtime.
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…
Suggested Courses

765 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