I need simple and accurate solution to limit bandwidth in wifi network for testing purpose.
Since it will be for testing it will be used with only one device. I do not need control per device (MAC address). I think control per interface would be sufficient.
I use this simple script to crate MASQUERADE:
#!/bin/bash
ptables --table nat -F
iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
Devices connect through second wireless interface (wlan1). It have to be accurate at low speeds (for example wlan0 is connected to AP that is connected to 5Mbps network and I would like to limit it to 64 Kbps on wlan1).
One more think, it would be sufficient if it will work only with http protocol, so I'm also thinking about using some special http proxy then using something like HTB.