Page 2 of 2

Re: Trouble with L7 QoS

Posted: Sat May 25, 2013 4:34 pm
by Rafael
Checking the QoS script a little futher it seems the source of the problem is this command:
cat /etc/l7marker.marks 2>/dev/null | grep "shoutcast" | awk '{ print $2 }'

Code: Select all

cat /etc/l7marker.marks 2>/dev/null | grep "shoutcast" | awk '{ print $2 }'
0x50000
0xD0000
Or better yet, this command:

Code: Select all

 cat /etc/l7marker.marks
bittorrent      0x10000 0xFF0000
edonkey 0x20000 0xFF0000
gnutella        0x30000 0xFF0000
rtp     0x40000 0xFF0000
shoutcast       0x50000 0xFF0000
skypeout        0x60000 0xFF0000
skypetoskype    0x70000 0xFF0000
ssh     0x80000 0xFF0000
bittorrent      0x90000 0xFF0000
edonkey 0xA0000 0xFF0000
gnutella        0xB0000 0xFF0000
rtp     0xC0000 0xFF0000
shoutcast       0xD0000 0xFF0000
skypeout        0xE0000 0xFF0000
skypetoskype    0xF0000 0xFF0000
ssh     0x100000        0xFF0000
tor     0x110000        0xFF0000
Gonna add a " | head -n 1 " to see what happens...

UPDATE: thinking again, the lines aren't equal:

Code: Select all

shoutcast       0x50000 0xFF0000
shoutcast       0xD0000 0xFF0000
Which one is right? Should it really have 2 lines for each L7 protocol?

UPDATE2: Anyone knows who feeds the file: /etc/l7marker.marks ?

Re: Trouble with L7 QoS

Posted: Sat May 25, 2013 7:39 pm
by Rafael
Couldn't wait! I guessed that either line would be fine so I add the "| head -n 1" and it seems to be working.

UPDATE: By the way, the L7 Skype protocols suck! I disabled it...