Community discussions

MikroTik App
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 71
Joined: Wed Jan 08, 2014 7:41 pm

again question about cache..... pleas help

Sun May 04, 2014 10:10 am

i want to enable RB built in cache and make my hotspot users arrived it in the max speed
till now i made the first step, still the second how to make users connect to cache full speed (i give each of my hotspot users 1M/1M speed in profiles)


maybe something like this ?

First Mark Cached Contents by MANGLE Rule.

/ip firewall mangle
add action=mark-packet chain=output comment="CACHE HIT" disabled=no dscp=4 \
new-packet-mark=cache-hits passthrough=no

Now if you are using mikoritk 5.x , Create an Queue Tree which will send cache-hits packets to users at full LAN speed, ignoring the user’s Static OR Dynamic QUEUES

/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=0 name="Unlimited Speed for CACHE" packet-mark=cache-hits \
parent=global-out priority=8 queue=default

thanks a lot for answering
here is my firewall scripts
i use hotspot with (username & password) RB 6.7 (there is no global out and no traffic on dscp=4)
does this scripts right?

/ip firewall nat
add action=redirect chain=hs-auth comment="obada cache final" dst-port=80 protocol=tcp to-ports=\
first there is a nat redirection sequence dstnt to prehotspot to hotspot (here you can see port 80 redirected to port 64873, should i get my proxy packets from this port?? or i just give my webproxy this port??
when i but this firewall nat as the first rule my users couldent reach my login page
/ip firewall mangle
add action=mark-packet chain=output new-packet-mark=cacheout protocol=tcp src-port=8080
add action=mark-packet chain=output comment=Cache new-packet-mark=Cache passthrough=no

thanks again

Who is online

Users browsing this forum: al3xeezer, Bing [Bot], eworm, Google [Bot], Kindis, Sob and 130 guests