Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dev="eth0"
- tc qdisc del dev $dev root
- iptables -t mangle -v -D OUTPUT 1
- tc qdisc add dev $dev root handle 1: htb
- tc class add dev $dev parent 1: classid 1:10 htb rate 56kbit ceil 56kbit
- tc filter add dev $dev parent 1: prio 0 protocol ip handle 10 fw flowid 1:10
- iptables -t mangle -A OUTPUT -p tcp -m owner --uid-owner www-data -j MARK --set-mark 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement