Lucky for me this is build in feature in my Mikrotik router :)
The goal is to cache all files from only one client.
First thing i do is plug a flash drive into mikrotik router:

Open web interface, go to System -> Disks and click [Format Drive]:

ext3 file system and click [Start]:

cache:
Set "Enable" checkbox!
Enable "Src. Address". It will automatically set value to
::Set "Port" to
8080Enter your email address in "Cache Administrator"
Set "Max. Cache Size" to
unlimited to use entire disk spaceSet "Max Cache Object Size" to
204800 wich stands for 2GBEnable checkbox "Cache On Disk"
Manually write down
cache/lost+found in "Cache path"
Apply, wait 10 seconds till status is running:

dstnatSet "Src. Address" to your servers address you want to cache
Set "Protocol" to
6 (tcp)Set "Dst. Port" to
80
redirectSet "To Ports" to
8080Add a comment in "Comment" section:


Go for "IP" -> "Web Proxy" and look into [Cache Contents]:

redirect field ;)


No comments:
Post a Comment