Tips Block Access to Downloads n Browsing at Mikrotik with Schedule
This is one personal note, where I got confused to block access to sites or download certain files and at certain hours. To do this blocking I use a web proxy in mikrotik OS.
The way that I do:
Create a nat rule for WebProxy
/ip firewall nat add chain=dstnat protocol=tcp dst-port=80 action=redirect to-ports=8080
enable webproxy-nya
ip web-proxy set enabled=yes
masukkan content yang ingin di blok
/ip web-proxy access add src-address=0.0.0.0/0 dst-address=0.0.0.0/0 url=*.facebook.com* action=deny comment=situs
Then create the script (system >> script)
Name : bmorning
Policy : write, read, policy (section checked)
Source:
/ip web-proxy access enable [/ip web-proxy access find comment=site]
Name : bnight
Policy : write, read, policy (section checked)
Source:
/ip web-proxy access disable [/ip web-proxy access find comment=site]
Create a scheduler time we want (system >> scheduler).
name=blockmorning
start-date=Jan/01/2010
start-time=08:30:00
interval=1d 00:00:00
on-event= morningname=blocknight
start-date=Jan/01/2010
start-time=18:30:00
interval=1d 00:00:00
on-event= night
Well after that, then see aja result, the sites that we include them in the list on the web proxy will be blocked. If there are many sites or address or a file that we wish to block, then add on the list in WebProxy and given the same comment (in this case I use the comment = site), then at the same time all the existing sites would be blocked.
For example:
/ip web-proxy access add src-address=0.0.0.0/0 dst-address=0.0.0.0/0 url=*.youtube* action=deny comment=site
/ip web-proxy access add src-address=0.0.0.0/0 dst-address=0.0.0.0/0 url=*mpeg* action=deny comment=site
/ip web-proxy access add src-address=0.0.0.0/0 dst-address=0.0.0.0/0 url=*exe* action=deny comment=site
Popular Tags for the article:
Mikrotik HttpProxy, Mikrotik HttpProxy facebook, block facebook di mikrotik dengan web proxy, block youtube mikrotik, mikrotik block youtube, block youtube di mikrotik, mikrotik block facebook, how to block facebook on mikrotik, block download mikrotik, mikrotik scheduler, block download di mikrotik, block facebook mikrotik, blok ip di mikrotik, Mikrotik block facebook 2010, mikrotik Http ProxyRelated posts:



May 21st, 2010 at 12:13 am
For me, the best operating system is Linux because it rarely hangs.-:*
July 27th, 2010 at 4:34 am
I suppose proxies absolutely interesting way to avoid Internet interferences especially when you live in a country at what ISPs block some sites networks…
October 25th, 2010 at 12:32 am
Linux is still the best when it comes to stability and Windows for ergonomics:;~
November 10th, 2010 at 3:40 am
Yes, it comes as a shocker to me, to pronounce discernible that some of those categorically popular and marvellously known websites are rally wordpress! Moral goes to lay you, how mythical of a blog publishing software wordpress really is! And past the relocate, that circle 11 million is staggering transfer sure!
December 21st, 2010 at 12:22 am
there are many different operating systems but of course i would still prefer to use linux for stability ~;-
April 2nd, 2012 at 8:36 am
I will immediately seize your rss feed as I can’t find your email subscription link or e-newsletter service. Do you have any? Please permit me recognize in order that I could subscribe. Thanks.