Hello LQ.
Maybe this question has already been answered several times but i am searching the net for 4 days already and i can't manage to solve it.
First i explain what i want to do:
I have a OpenVZ container on a provider. On this OpenVZ container i have some services (http, ftp, teamspeak). I want that every user which connects to the teamspeak port (9987) have only 768Kbits of incoming bandwidth on that port, but once he access on the other services he has the normal bandwidth.
I have tested some scripts which i found over the internet, but i couldn't manage to make this work has it should.
What i did so far was on this:
http://www.iplocation.net/traffic-control
http://www.cyberciti.biz/faq/linux-t...-http-traffic/
I already asked my provider to enable some modules on kernel, but when i run this command line:
tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip dst (My OpenVZ IP) flowid 1:1
I get this:
RTNETLINK answers: No such file or directory
We have an error talking to the kernel
Maybe someone here can help me to build a new script or to change the above script to match my needs.