Setting up a "bottleneck" router
I've been trying to set up a Linux box (Debian) to act as a traffic shaper for a network. Essentially I need to control the rate of traffic both directions. The box has two network interfaces.
I think i know how to throttle the traffic using something along the lines of:
tc qdisc add dev eth0 root tbf rate 2048kbit latency 50ms burst 15400
to give me a token bucket on things going out of eth0 (I think!)
What I cant seem to get quite right is getting the box to route all the traffic, I can't NAT in this situation and I only have one subnet to play with (all publicly IPs).
What do I need to do? iptables?
|