wondershapper - tc traffic shapping

Hello.
That is my first post.

I’m trying to limit the traffic (inboud/outbound) on eth0, that is my internet interface

So, after fight (and loose) with tc, I found a script (Wonder Shaper) that it does for my.
However, when I run it, on the last line I see an error :

RTNETLINK answers: No such file or directory
We have an error talking to the kernel

:~/script/wondershaper-1.1a # bash -x /root/script/wondershaper-1.1a/wshaper 
+ DOWNLINK=6000
+ UPLINK=6000
+ DEV=eth0
+ NOPRIOHOSTSRC=80
+ NOPRIOHOSTDST=
+ NOPRIOPORTSRC=
+ NOPRIOPORTDST=
+ '' '' = status ']'
+ tc qdisc del dev eth0 root
+ tc qdisc del dev eth0 ingress
+ '' '' = stop ']'
+ tc qdisc add dev eth0 root handle 1: cbq avpkt 1000 bandwidth 10mbit
+ tc class add dev eth0 parent 1: classid 1:1 cbq rate 6000kbit allot 1500 prio 5 bounded isolated
+ tc class add dev eth0 parent 1:1 classid 1:10 cbq rate 6000kbit allot 1600 prio 1 avpkt 1000
+ tc class add dev eth0 parent 1:1 classid 1:20 cbq rate 5400kbit allot 1600 prio 2 avpkt 1000
+ tc class add dev eth0 parent 1:1 classid 1:30 cbq rate 4800kbit allot 1600 prio 2 avpkt 1000
+ tc qdisc add dev eth0 parent 1:10 handle 10: sfq perturb 10
+ tc qdisc add dev eth0 parent 1:20 handle 20: sfq perturb 10
+ tc qdisc add dev eth0 parent 1:30 handle 30: sfq perturb 10
+ tc filter add dev eth0 parent 1:0 protocol ip prio 10 u32 match ip tos 0x10 0xff flowid 1:10
+ tc filter add dev eth0 parent 1:0 protocol ip prio 11 u32 match ip protocol 1 0xff flowid 1:10
+  tc filter add dev eth0 parent 1: protocol ip prio 12 u32 match ip  protocol 6 0xff match u8 0x05 0x0f at 0 match u16 0x0000 0xffc0 at 2  flowid 1:10
+ for a in '$NOPRIOHOSTSRC'
+ tc filter add dev eth0 parent 1: protocol ip prio 16 u32 match ip src 80 flowid 1:30
+ tc filter add dev eth0 parent 1: protocol ip prio 18 u32 match ip dst [0.0.0.0/0](http://0.0.0.0/0) flowid 1:20
+ tc qdisc add dev eth0 handle ffff: ingress
+ tc filter add dev eth0 parent ffff: protocol ip prio 50 u32 match ip src [0.0.0.0/0](http://0.0.0.0/0) police rate 6000kbit burst 10k drop flowid :1
RTNETLINK answers: No such file or directory
We have an error talking to the kernel


My kernel is:

Linux XXXX 3.0.13-0.27-default #1 SMP Wed Feb 15 13:33:49 UTC 2012 (d73692b) x86_64 x86_64 x86_64 GNU/Linux

I test also with wshaper.htb on same .tar, and load the module

Modules are loaded , but I’m not secure that are all

2:~/script/wondershaper-1.1a # lsmod |egrep -i “ipt*|sch*|cls|cqb|htb” --color
sch_htb 22286 0
sch_netem 17743 0
sch_ingress 12866 1
cls_u32 17162 5
sch_sfq 17326 3
sch_cbq 26381 1

iproute version :

rpm -qa|grep iproute

x86_64-iproute2-2.6.37-3.5
iproute2-2.6.29.1-6.22.48

Please, can anyone help me?

The true is that I don’t have experiencie with SuSE (hmm ok… I use the 4.6 version I guess, a few years ago)

TIA

Hello, first poster and welcome here.

Please mind that is is allways nice when you tell at least which version of openSUSE you use. Also often a desktop is involved, so please in that case tell which one.

You use CODE tags around one of your listings above. That is very good. But you reverted to QUOTE tags on the other pieces of computer text. Please ue CODE tags throughout.

Thank you

I was secure that I share this information, but maybe I delete when I edit the message with code/quote. Sorry

Sorry for mistakes

I can’t see an “edit” on my post, so I will take the adviced next time.

The version of suse is

# cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 2

This proves again how important it is to post what version of what you use.

You use SLES 11, which is not openSUSE at all!

Please go to https://forums.suse.com/ for SLES/SLED questions/problems.

Is open suse so different of suse sles?

Pff…

I 'll keep this question open.

It is different. But the main problem is that people here do not use it. Thus asking them while they are at loss in knowing what the differences are is not ver clever imho.

While going to the forums that specialy deal with SLES/SLED looks an obvious thing to do to me.

On Mon, 04 Nov 2013 17:43:22 +0000, imsp wrote:

> Is open suse so different of suse sles?

It’s different enough.

SUSE Linux Enterprise is a longer-term support option, so while current
supported versions of SLES include SLES10 & SLES11 (based off openSUSE
releases 10.x and 11.x, respectively), openSUSE is currently supporting
versions 12.2, 12.3, and soon 13.1 (due to be released later this month).

As someone who runs SLES 10 & 11, I can tell you there’s enough
difference that asking SLE questions here may well get you answers that
are relevant to current openSUSE releases that are not compatible with
older SLE releases.

openSUSE moves a /lot/ faster than SLE.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

hi there…
sorry for hijacking this thread but i want to know how to use “wondershaper”.
i just installed it and as i can see, there is no manual or something. i have also installed it on ubuntu and it works pretty fine, i just type:

sudo wondershaper ppp0 128 128 

and it does its job…it limits the internet bandwidth to 128/128 kbps.

type the command as root

wondershaper ppp0 128 128

it gives me the “command does not exist” or something like this…

thanx!

Look here for configuration:

/etc/sysconfig/wondershaper

Start wondershaper:

rcwondershaper start