Need the web proxy rules to cache only 3 sites and deny all

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 :wink:

2- I want another rule to ignore files bigger than 1mb in these sites :slight_smile:
can mikrotik do that ?


awaiting your help :slight_smile: ,
Thanks

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.

Thanks for the help ,

I’m trying to apply the idea step by step :slight_smile:

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 ?

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.

aha , got it .

then the first rules should be the rules that allow caching the sites ,

but how to write it :slight_smile: ?

and putting it by domain ? or ip ?
and what other steps to complete the method ?

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.

Thanks man ,
tried it and the rules worked , but the idea from the beginning wasn’t that good so I canceled the whole thing :slight_smile: