Created
April 3, 2015 10:10
-
-
Save alexnj/7e7f663dcc8a4962afed to your computer and use it in GitHub Desktop.
Limit bandwidth of a guest network using dd-wrt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tc qdisc del dev br1 root | |
tc qdisc add dev br1 root handle 1: cbq avpkt 1000 bandwidth 2mbit | |
tc class add dev br1 parent 1: classid 1:1 cbq rate 256kbit allot 1500 prio 5 bounded isolated | |
tc filter add dev br1 parent 1: protocol ip prio 16 u32 match ip dst 192.168.99.1/24 flowid 1:1 | |
tc filter add dev br1 parent 1: protocol ip prio 16 u32 match ip src 192.168.99.1/24 flowid 1:1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment