shorewall-users May 2011 archive
Main Archive Page > Month Archives  > shorewall-users archives
shorewall-users: Re: [Shorewall-users] traffic shaping peculiari

Re: [Shorewall-users] traffic shaping peculiarities

From: Tom Eastep <teastep_at_nospam>
Date: Mon May 02 2011 - 22:54:05 GMT
To: Mr Dash Four <mr.dash.four@googlemail.com>

On May 2, 2011, at 2:30 PM, Mr Dash Four wrote:

>
>>> 4.
>>> tcdevices:
>>> A:eth0 - 100mbit classify,hfsc
>>> [...]
>>>
>>> tcclasses:
>>> eth0:11 - 10*full/100:50ms 20*full/100 1 tcp-ack
>>> [...]
>>>
>>> Passes compilation, but triggers the following error:
>>>
>>> shorewall[1566]: RTNETLINK answers: Invalid argument
>>> shorewall[1566]: We have an error talking to the kernel
>>> shorewall[1566]: ERROR: Command "tc filter add dev eth0 parent 10:0 protocol ip prio 266 u32 match ip protocol 6 0xff match u8 0x05 0x0f at 0 match u16 0x0000 0xffc0 at 2 match u8 0x10 0xff at 33 flowid a:11" Failed
>>>
>>
>> The second attached patch should fix this one.
>>
> After applying TC1 and TC2 and having this:
>
> tcdevices
> 0xA:eth0 ...
>
> tcclasses
> 0xA:11 ...
> 0xA:12 ...
> ....
>
> compilation passes, but then I get the following error on shorewall (re)start
>
> ERROR: Command "tc filter add dev eth0 parent 10:0 protocol ip prio 266 u32 match ip protocol 6 0xff match u8 0x05 0x0f at 0 match u16 0x0000 0xffc0 at 2 match u8 0x10 0xff at 33 flowid a:11" Failed

I misunderstood which file entry was generating this problem. The attached patch causes the incorrect "parent 10:0" to be replaced by "parent a:0". The earlier patch did the same for entries in the tcfilters file.

-Tom

Tom Eastep \ When I die, I want to go like my Grandfather who
Shoreline, \ died peacefully in his sleep. Not screaming like
Washington, USA \ all of the passengers in his car
http://shorewall.net \________________________________________________

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd

_______________________________________________
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users