How can I control bandwidth in RHEL 5 using iptables?
1 Answer
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".