I've setup transparent proxying on my router, like so:
Code: Select all
1 ;;; Proxy for Local LAN
chain=dstnat action=redirect to-ports=8080 protocol=tcp src-address=192.168.1.0/24 dst-address=!192.168.1.0/24 in-interface=LOCAL dst-port=80
2 chain=dstnat action=redirect to-ports=8080 protocol=tcp src-address=192.168.1.0/24 dst-address=!192.168.1.0/24 in-interface=LOCAL dst-port=3128
3 chain=dstnat action=redirect to-ports=8080 protocol=tcp src-address=192.168.1.0/24 dst-address=!192.168.1.0/24 in-interface=LOCAL dst-port=8080
Code: Select all
16 name="A01" target-addresses=192.168.1.101/32 dst-address=0.0.0.0/0 interface=all parent=none direction=both priority=8 queue=default-small/default-small limit-at=0/0 max-limit=256k/512k burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s total-queue=default-small
Let's say I want to get a file from download.com for 10MB, and this file then is then stored (or "cached", is that the word?) in the mikrotik proxy. If then another client want to get the same file, it would get the file from the proxy (well, at least I think it would), but at the same limited speed (512k).
Is there ANY way to bypass this queue rule for data that's already stored in the proxy? So, maybe use 10M/100M for cached data, and use limited speed for stuff that's not cached... Is this possible at all?
I'm thinking of using mangle on traffic going to 192.168.1.1 (that's the router's address) port 80, 3128, and 8080, and then creating a separate simple queue rule for each client for 10M/10M. But then wouldn't that render the previous rules useless, since ALL traffic going to those ports (whether it's for cached or uncached data) would be using the new rule?
Pretty confused newbie here.
Help please.