How to limit bandwidth to internet, but not limit an IP segment above the NAT?

Hello everyone

I have a RB1100 X2 AH running in branch office wich is connected to headquarters with a wireless link.
In branch office i´ve created a NAT for the LAN (192.168.13.0/24) and all the clients connects to local apps from headquarters (192.168.0.0/24)
Internet requests goes thru wireless link to headquarters via NAT
What I want to do, is to limit bandwidth for clients in LAN 192.168.13.0/24 that goes to Internet 0.0.0.0/0 but not limit bandwith when they access to headquarter segment (192.168.0.0/24)

Hope i was clear setting up the situation. Thanks in advance! Have a nice day!

just make queues

I’ve tried pcq, but don’t know how to diference traffic

Did you try assign source address in queues?

This a diagram of what i want to do. Any ideas? Thanks for your time!

Very nice diagram! :slight_smile:

Try to use simple queue for inbound traffic with source address space assigned.

Thanks, I made it with MS Visio.
Sorry I don´t understand. I had the idea that a simple queue controls outbond traffic, so if I create a simple queue on the router installed in the branch office like this:
/queue simple
add burst-limit=1M/1M burst-threshold=1M/1M burst-time=1s/1s max-limit=1M/1M name=INTERNET packet-marks=internet queue=pcq_upload/pcq_download target=192.168.13.0/24

that will limit all traffic going out this router, including traffic to the segment 192.168.0.0/24.

I created a queue in the internet router where I limit the traffic going to the internet to the wan ip from router in branch office (192.168.0.13). In that case I have full bandwith to connect to network 192.168.0.0/24, and 1Mbps to access internet, but can´t control bandwith inside the branch office. I don´t want to leave the bandwith without control inside

Thanks

Place local queue above internet queue.
Very simple !

Like this?

/queue simple
add name=SYSTEM target=192.168.0.0/24
add burst-limit=1M/1M burst-threshold=1M/1M burst-time=1s/1s max-limit=1M/1M name=INTERNET queue=pcq_upload/pcq_download target=192.168.13.0/24