2

How can I control bandwidth in RHEL 5 using iptables?

1

1 Answer 1

12

You can't by iptables alone. You should mark packets in the mangle table and then apply QoS with the tc program.

A simple tc script to limit eth0 to 10Mbit/s:

tc qdisc add dev eth0 root tbf rate 10240kbit latency 50ms burst 1540

This article, while targeted at ArchLinux users, has a nice explanation on how to use tc and iptables for marking packets, and the commands and concepts explained are quite "distro agnostic".

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.