Network Services

Thursday, June 7, 2012

How to limit traffic download RapidShare in Mikrotik


How To: Limit Traffik Download Rapidshare


The following quick article will explain how to restrict traffic download from rapidshare.
The thing to note is, how to use this script to detect meutilisasi DNS
So the use of DNS Cache ... How To Mikrotik for this is a liability ...
A. script
Basically the script when run will check the DNS Cache, and find that there are entry
the word 'rapidshare' ... make a log entry kamudian ... then put the obtained IP Address List on the list to
'rapidshare'




:foreach i in=[/ip dns cache find] do={
:if ([:find [/ip dns cache get $i name] "rapidshare"] > 0) do={
:log info ("rapidshare: " . [/ip dns cache get $i name] . " (ip address " . [/ip dns
cache get $i address] . ")")
/ip firewall address-list add address=[/ip dns cache get $i address] list=rapidshare
disabled=no
}}


2. Run the Script The above script should be run periodically by the scheduler to get the best results ... can is set to go once a minute or 5 minutes once an hour or so ... all up to you and the conditions there ... create a new entry in the scheduler:

Start Date and Time are set according to the time you want

3. mangle At this time there should have been Barun address list




Then create a new mangle rule to mark-conn



then, create a mangle rule to mark-packet new




4. queue
 Finally, we can narrow down the traffic ... example of the application can use a simple queue see below ...

For the experiments just trying to do the download from rapidshare, then enable and disable the rule queue it and feel the difference ...

 with you 

Mohamed Samir


0 comments:

Post a Comment