Mesh/19 February 2015

From Sudo Room
Jump to navigation Jump to search

http://blog.lxgr.net/posts/2013/01/28/my-openwrt-setup/ Marc, check this out... tc... this to be run once on each boot:

  1. !/bin/sh
  2. Insert the necessary kernel modules

insmod sch_htb insmod sch_fq_codel

  1. Reset the queueing disciplinessudomesh | Riseup Pad

tc qdisc del dev eth1 root tc qdisc del dev br-lan root

  1. Add a HTB queue to the internal interface (to limit upload speeds)

tc qdisc add dev eth1 root handle 1: htb default 1# Limit the upload speed to 2048 kbit/s (adjust this to just below your actual upload speed!) tc class add dev eth1 parent 1: classid 1:1 htb rate 2048kbit# Enable CoDel as a queueing algorithm for the queue tc qdisc add dev eth1 parent 1:1 handle 11: fq_codel

  1. The same for download speeds - adjust accordingly

tc qdisc add dev br-lan root handle 1: htb default 1 tc class add dev br-lan parent 1: classid 1:1 htb rate 32768kbit tc qdisc add dev br-lan parent 1:1 handle 11: fq_codel exit 0 This is not the full answer to the quota answer but seems a good start. --Chrisj, Thursday, February 19, 2015