# tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match \ ip dport 22 0xffff flowid 10:1 # tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match \ ip sport 80 0xffff flowid 10:1 # tc filter add dev eth0 protocol ip parent 10: prio 2 flowid 10:2 |
What does this say? It says: attach to eth0, node 10: a priority 1 u32 filter that matches on IP destination port 22 *exactly* and send it to band 10:1. And it then repeats the same for source port 80. The last command says that anything unmatched so far should go to band 10:2, the next-highest priority.
------------------------------------------
i try to do this at home as i want my ssh traffic prioritary to other traffic but the problem is with the last command ! it simply don't work. The last command that says default trafic goes to prio 2 doesn't work
# tc filter add dev eth0 protocol ip parent 10: prio 2 flowid 10:2
just give me the error: "Unknown filter flowid, hence option 1:2 is unparsable"
So I don't get what do I must do in order to say that the default trafic goes on priority 2 of the prio filter
is this how too always valid with the current version of tc ? did i do something wrong ?
Thank you for your help.
Vincent.