I got a mikrotik 2.8Ghz 512MB DDR1 40GB HDD . On mikrotik Router OS 3.22
Now i have a hotspot setup on it with users that have 512/128K Limit. (My Backbone is a 4MB ADSL Line)
Now as you know that i cant setup caching on this server without having it going out with user limits.
Now what i want is my cached files going out with 2MB limit to each user.
now i tried every thing but it just wont work !!!
what just came on my mind is if i setup a new mikrotik server without hotspot,only broadband and setup my queues to release marked cached files to transfer at 2MB speed.
That would work..??
here is a diagram of what i want to do :
The Only thing that is making me not sure is these two:
DHCP Server
Hotspot Login Page
i’m no expert in mikrotik - but i think what you need is a squid proxy box and put it behind your mikrotik facing to the internet.
so maybe like this?
internet — squid box — MK — subscribers
using a ubuntu 8.0.4 hardy #squid -v :
# squid -v
Squid Cache: Version 2.6.STABLE18
...
find this line on /etc/squid/squid.conf :
# TAG: reply_body_max_size bytes allow|deny acl acl...
# This option specifies the maximum size of a reply body in bytes.
# It can be used to prevent users from downloading very large files,
# such as MP3's and movies. When the reply headers are received,
# the reply_body_max_size lines are processed, and the first line with
# a result of "allow" is used as the maximum body size for this reply.
# This size is checked twice. First when we get the reply headers,
# we check the content-length value. If the content length value exists
# and is larger than the allowed size, the request is denied and the
# user receives an error message that says "the request or reply
# is too large." If there is no content-length, and the reply
# size exceeds this limit, the client's connection is just closed
# and they will receive a partial reply.
#
# WARNING: downstream caches probably can not detect a partial reply
# if there is no content-length header, so they will cache
# partial responses and give them out as hits. You should NOT
# use this option if you have downstream caches.
#
# If you set this parameter to zero (the default), there will be
# no limit imposed.
#
#Default:
# reply_body_max_size 0 allow all
just make sure your routing and QoS design properly set both for the router and the squid box.
thanks for taking time to answer me
But the thing that i need all cached files to be faster (2MB) than the limited speed that i have on my users.
if i put a squid server berfore mikrotik the cache files will go through the mikrotik queues.
so it well be limited to user limit (512K).
i need cached files to be accessed to all my users at 2MB Speed
but all internet resources will be limited to 512K speed