hema999
September 11, 2013, 9:54am
1
Hey ,
I’m working on mikrotik v3 with web proxy enabled ( cache on memory )
1- want the rules to cache Only certain sites and ignore caching all other traffic
put mikrotik as an example & I’ll edit it
2- I want another rule to ignore files bigger than 1mb in these sites
can mikrotik do that ?
awaiting your help ,
Thanks
Caci99
September 11, 2013, 10:48am
2
Take a look at:
http://wiki.mikrotik.com/wiki/Manual:IP/Proxy#Cache_Management
You might want to upgrade though the version of RouterOS from 3.x to the current one.
hema999
September 11, 2013, 12:12pm
3
Thanks for the help ,
I’m trying to apply the idea step by step
first step is to prevent all traffic ? or it will be the last step ?
and here is the rule for it :
/ip proxy cache
add action=deny comment="" disabled=no path=""
is it right ?
what’s the more stable version : 5 or 6 ?
Caci99
September 11, 2013, 12:18pm
4
No, you first have to allow, and than deny everything else. The rules are executed in their order, if a packet/connection is captured by the first rule it will not get processed farther down.
hema999
September 11, 2013, 12:36pm
5
aha , got it .
then the first rules should be the rules that allow caching the sites ,
but how to write it ?
and putting it by domain ? or ip ?
and what other steps to complete the method ?
Caci99
September 11, 2013, 1:10pm
6
In the destination host put the websites you want to cache with action allow.
For those you don’t want to cache create one rule and put in the destination host an asterisk (*), that will do I think.
hema999
September 19, 2013, 6:00am
7
Thanks man ,
tried it and the rules worked , but the idea from the beginning wasn’t that good so I canceled the whole thing