]> git.stg.codes - stg.git/blobdiff - stargazer/scripts/shaper/shaper.sh
Port to CMake, get rid of os_int.h.
[stg.git] / stargazer / scripts / shaper / shaper.sh
diff --git a/stargazer/scripts/shaper/shaper.sh b/stargazer/scripts/shaper/shaper.sh
new file mode 100755 (executable)
index 0000000..2b4f042
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+int_iface=eth1
+
+iptables -t mangle --flush
+
+tc qdisc add dev $int_iface root handle 1: htb
+tc class add dev $int_iface parent 1: classid 1:1 htb rate 100mbit ceil 100mbit burst 200k
+