help with queue

i want to limit the rate for packet forwarding to router.
for example i have a cctv behind the router and somebody start seeing the cctv from outside that take all the upload speed of the internet and slow down the internet for internal user. how can i do this. i try mangle and any otherway that i think off but i cant get this to work.

any body?

Add a simple queue with target of CCTV IP and set rate limits required

if i do that isnt this effect the internal accesses to the cctv?

Yes, this way you’ll limit the bandwidth for the CCTV IP regardless from where you access it. Simple queues do not support complex policing criteria. So if you want to limit the CCTV bandwidth only for access via WAN, you’ll have to use the complete queue tree handling and use mangle rules in firewall to selectively mark for limitation only connections to the CCTV IP coming via WAN, then translate the connection-mark to packet-mark, and then use the packet-mark to choose the bandwidth-limiting queue in the queue tree you build.