Page 1 of 1
How To Block youtube.com ???
Posted: Sat Jul 18, 2009 12:30 pm
by karo84
Hello, Please Help Me To Block youtube.com as my users cannot surf the site
http://www.youtube.com.
I am using MT ROS 3.20 I would like to block it by regexp, but I don't know how.
Help me please solve the problem.
Thanks
Regards Karapet Aznavuryan
Re: How To Block youtube.com ???
Posted: Sat Jul 18, 2009 12:57 pm
by Chupaka
do you use web-proxy?
Re: How To Block youtube.com ???
Posted: Sat Jul 18, 2009 1:41 pm
by karo84
Yes I Use Proxy, MT Proxy,
Re: How To Block youtube.com ???
Posted: Sat Jul 18, 2009 3:19 pm
by Chupaka
/ip proxy access
add disabled=no dst-host=youtube.com action=deny
add disabled=no dst-host=*.youtube.com action=deny
http://www.mikrotik.com/testdocs/ros/3.0/pnp/proxy.php
Re: How To Block youtube.com ???
Posted: Thu Jul 23, 2009 2:48 pm
by karo84
Thanks for Reply
Re: How To Block youtube.com ???
Posted: Sat Nov 28, 2009 4:09 am
by channelasian
not work for me.
i am using mikrotik RT v3.30
1 WAN share internet no web proxy
i want to block the those website like youtube, facebook...
last time it worked for me by just used this /ip firewall filter> add chain=forward action=drop content=youtube
but now it didnt work for me dont kno why. please help.
Re: How To Block youtube.com ???
Posted: Sat Nov 28, 2009 5:05 am
by fewi
The web proxy method is the best way to go.
Re: How To Block youtube.com ???
Posted: Sat Nov 28, 2009 11:33 am
by channelasian
The web proxy method is the best way to go.
but when i followed the instruction all redirected to mikrotik page.
Re: How To Block youtube.com ???
Posted: Sat Nov 28, 2009 7:22 pm
by fewi
Well, yes. That's exactly how it works. If you want to redirect to something else use the 'redirect-to' parameter to the proxy access rule. Refer to the manual for details.
Re: How To Block youtube.com ???
Posted: Sat Nov 28, 2009 10:19 pm
by channelasian
i followed this
http://wiki.mikrotik.com/wiki/How_to_Block_Websites_&_Stop_Downloading_Using_Proxy
but it block all... when i go to any websites it redirect me to local mikrotik.
Re: How To Block youtube.com ???
Posted: Sat Nov 28, 2009 10:43 pm
by fewi
Then post the output of "/ip proxy export". The rules in that manual do not block everything.
Re: How To Block youtube.com ???
Posted: Sat Nov 28, 2009 11:38 pm
by channelasian
the output of /ip proxy export
always-from-cache=no
cache-administrator=webmaster
cache-hit-dscp=4
cache-on-disk=no
enabled=no
max-cache-size=none \
max-client-connections=600
max-fresh-time=3d
max-server-connections=600
parent-proxy=0.0.0.0
parent-proxy-port=0 port=8080 \
serialize-connections=no src-address=0.0.0.0
Re: How To Block youtube.com ???
Posted: Sat Nov 28, 2009 11:53 pm
by fewi
Uhm. That web proxy isn't even enabled. There are no access rules to block anything.
Re: How To Block youtube.com ???
Posted: Sat Nov 28, 2009 11:55 pm
by channelasian
can u please give me the correct configuration?
well, before i just add firewall rule chain forward and content drop it worked well. but dont kno what happen now.
Thanks
Re: How To Block youtube.com ???
Posted: Sun Nov 29, 2009 12:04 am
by fewi
Straight from the link you posted yourself:
Enable the proxy:
/ip proxy
set enabled=yes
set port=8080
Make it transparent and make sure it isn't open:
/ip firewall nat
chain=dstnat protocol=tcp dst-port=80 action=redirect to-ports=8080
/ip firewall filter
chain=input in-interface=<Your WAN Port> src-address=0.0.0.0/0 protocol=tcp dst-port=8080 action=drop
Now deny Youtube:
/ip proxy access
dst-host=www.youtube.com action=deny
Re: How To Block youtube.com ???
Posted: Sun Nov 29, 2009 12:19 am
by channelasian
i have followed yours above, but it still keep bring me to mikrotik login page.
Re: How To Block youtube.com ???
Posted: Sun Dec 06, 2009 12:34 pm
by magicgate
what's parent-proxy?!
i have v2.9.27
This method is compatible with this version 2.9.27?!
waiting
Re: How To Block youtube.com ???
Posted: Sun Dec 06, 2009 4:25 pm
by Chupaka
Re: How To Block youtube.com ???
Posted: Sun Dec 13, 2009 1:32 am
by vigorlackadaisically
use any
fast proxy setting from punchrocket.com or stayinvisible
Re: How To Block youtube.com ???
Posted: Sun Dec 13, 2009 6:03 pm
by jwcn
i have v2.9.27
Yet another crook. Jeeze.