[Cerowrt-devel] sqm-scripts for debian/ubuntu

Dave Taht dave.taht at gmail.com
Sun Jan 4 21:37:26 EST 2015


On Sun, Jan 4, 2015 at 6:31 PM, William Katsak <wkatsak at gmail.com> wrote:
> Thanks, I was thinking something with if-pre-up.d and if-post-down.d as
> well.
>
> Are all the params (other than the speeds, obviously) that are set to
> defaults in functions.sh correct? I notice that SQUASH_INGRESS is 1 by
> default. Is this right?

Well, I wouldn't mind a world where classification was preserved e2e,
but that is
generally not the case.

I can imagine a few use cases for trying to not squash ingress,
notably where you
would be rate limiting a device inside the home behind, say, a homeplug.

another item that is wrong is that the INSMOD variable should be
mapped to modprobe in
debian systems, and there may be other modules that need to be probed.
(ifb?). I've not come up with a way to reliably detect if you are on
openwrt however....

Aside from that I pretty regularly use sqm thusly on ubuntu...

UPLINK=10000 DOWNLINK=40000 QDISC=fq_codel /usr/lib/sqm/simple.qos

but, yea, it would be nice to have a version that abstracted out to
debian mo better. A concern was whether we could interface with common
firewall scripts in that world (ufw, shorewall)....

>
> Thanks,
> -Bill
>
>
>
> On 01/04/2015 09:09 PM, Dave Taht wrote:
>>
>> On Sun, Jan 4, 2015 at 5:51 PM, William Katsak <wkatsak at gmail.com> wrote:
>>>
>>> Hello all,
>>>
>>> Before I take the time to set something up, does anyone already have a
>>> nice
>>> wrapper for sqm-scripts on debian/ubuntu (or really any non-openwrt
>>> distro)?
>>> I've already gotten them to work, but want to do something "nice" so they
>>> run automagically.
>>
>>
>> My plan, such as it was, was to have a /etc/sqm dir with each device named
>> there
>> explicitly (e.g.) eth0.conf, br0.conf, etc.
>>
>> and in there have the configuration variables currently set by run.sh
>> in /usr/lib/sqm (or in the
>> openwrt sqm config file) in shell syntax.
>>
>> then have a sqm script in /etc/network/if-pre-up.d and if-post-down.d
>> source those, then run the right qos script from that.
>>
>> I have never got around to it. And I'm not sure if that is the right
>> thing for NetworkManager.
>>
>>>
>>> Thanks,
>>> Bill
>>>
>>> --
>>> ****************************************
>>> William Katsak <wkatsak at gmail.com>
>>> ****************************************
>>> _______________________________________________
>>> Cerowrt-devel mailing list
>>> Cerowrt-devel at lists.bufferbloat.net
>>> https://lists.bufferbloat.net/listinfo/cerowrt-devel
>>
>>
>>
>>
>
> --
> ****************************************
> William Katsak <wkatsak at gmail.com>
> ****************************************



-- 
Dave Täht

thttp://www.bufferbloat.net/projects/bloat/wiki/Upcoming_Talks



More information about the Cerowrt-devel mailing list