MikroTik Tutorial 32 - How to block Facebook the most efficient way

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 มิ.ย. 2017
  • Learn MikroTik RouterOs Tutorial Series (english)
    In this tutorial, I will show you how to block Facebook without slowing down your router. This is the most efficient way to block facebook.
    The L7 code can be found here:
    www.tksja.com/how-to-block-facebook/
    You will need any one of these Mikrotik routerboard router for this tutorial:
    RB951Ui-2nD hAP
    RB3011UIAS-RM
    RB2011UiAS-2HnD-IN
    RB750Gr2
    hEX RB750Gr3
    RB2011iLS-IN
    CRS109-8G-1S-2HnD-IN
    hAP lite
    hAP ac lite tower
    mAP lite
    wAP
    RB951Ui-2HnD
    RB951G-2HnD
    RB2011UiAS-2HnD-IN
    RB941-2nD-TC
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 87

  • @Alex-zc8ds
    @Alex-zc8ds 4 ปีที่แล้ว

    this is very useful tutorial thank you

    • @TKSJa
      @TKSJa  3 ปีที่แล้ว

      You are welcome

  • @javedakhter82
    @javedakhter82 5 ปีที่แล้ว

    Good it worked when I added rule in Mangle too. All other ways were not enough to block website. Thanks

    • @TKSJa
      @TKSJa  5 ปีที่แล้ว

      Cool

  • @joseluisfernandez5981
    @joseluisfernandez5981 4 ปีที่แล้ว

    Good one!

  • @tibortrieste197
    @tibortrieste197 4 ปีที่แล้ว

    TOP, thank you a lot!

    • @TKSJa
      @TKSJa  3 ปีที่แล้ว

      You're welcome

  • @eslackware
    @eslackware 5 ปีที่แล้ว

    excelent

  • @PeninsulaChittagong
    @PeninsulaChittagong 4 ปีที่แล้ว

    This is really nice and useful,
    please help me with one issues:
    I want to block the Internet except few website. I mean only few website will be allowed for Whole Subnet or specific IP.
    I already applied one filter rules, Some website's is blocked by MANGLE rules. Now I can't stop the Internet Access for all.

  • @Romanctg2011
    @Romanctg2011 5 ปีที่แล้ว +1

    Thanks for the tutorial, It works! but when i try to allow facebook for a specific user it doesn't work, mikrotik block facebook for all users though i put the accept rule on the top of the reject rule. Can you please make a video how to block all website except facebook or any other specific website?

  • @Martin-ot7xj
    @Martin-ot7xj 4 ปีที่แล้ว

    Hi there, please make a tutorial video about which dengrous ports list by default we must to block on microtik firewall. Thnx

  • @Martin-ot7xj
    @Martin-ot7xj 4 ปีที่แล้ว

    Please make a tutorial video about how we can block all incoming traffic from outside or internet to our network for more security. Thnx

  •  4 ปีที่แล้ว

    Thanks for the tutorial! During the work break (12: 00-12: 20) how can I unblock facebook? Or more complicated from 7:00 to 12:00 and 12:20 to 15:20 be blocked from facebook. (Only during working hours.)

  • @Ojnabanjo
    @Ojnabanjo 3 ปีที่แล้ว +1

    Hi, I follow and watch all your videos when setting up our mikrotik router so far so good. but this tutorial didn't work me is there a newer way of blocking facebook? (posting this 3 years after the video )

  • @sebastianmangelsen8056
    @sebastianmangelsen8056 6 ปีที่แล้ว +1

    I think the mangle rule can be further improved by setting "connection-state=new" otherwise the very expensive L7 regexp function would be executed for each and every packet. What do you think?

    • @TKSJa
      @TKSJa  6 ปีที่แล้ว +1

      Great suggestion, I try it and see how it works.

    • @16again7
      @16again7 6 ปีที่แล้ว +1

      Won't work, as that will only catch 1st SYN packet, which has no facebook related strings in it

    • @SoyFilipo
      @SoyFilipo 6 ปีที่แล้ว +1

      If one has already the accept established and related packets on top of the firewall, wouldnt all the following rules apply only to new packets?

  • @amontep3
    @amontep3 2 ปีที่แล้ว

    why are you mark traffic before blocking it? is it possible after defining the regex to go directly to filter to block the traffic without first marking it?

  • @israh7151
    @israh7151 6 ปีที่แล้ว

    Hi TKSja, great video. please can you explain how allow only access for to social media (facebook and Whatapp).
    Regards

    • @SoyFilipo
      @SoyFilipo 6 ปีที่แล้ว

      you need to block all packets leaving the network and allow only those going to facebook and the desired social sites.

  • @sollekram
    @sollekram 4 ปีที่แล้ว

    If you want to redirect them to an other page?

  • @bhartendulal8645
    @bhartendulal8645 3 ปีที่แล้ว

    Hi sir, thank you for video, I want to ask, sometime after rule applied, it pass the packet very lately, i use the same rule as you tell in the video , but first 5 to 10 minutes it doesn't work , after 10 minutes , i see the one packet pass then rule start to work as configured,,, May i know? why the rule start to work lately?

  • @sazzad2001
    @sazzad2001 6 ปีที่แล้ว

    through this microtik, can I see the browsing list any pc, it mean I want to see a specific PC which website they have visited? pls confirm. As a IT manager I need this info. pls help me. thanks in advance. Sazzad

  • @andres123587
    @andres123587 5 ปีที่แล้ว

    Hello, thank you so much for the video. How can I make an acceptance address list so some ips can connect to facebook

  • @ardase
    @ardase 7 ปีที่แล้ว

    Hi is possible put a example to create vpn lan 2 lan with ipsec¿ very instructive tutos

  • @ElfofTheNight
    @ElfofTheNight 2 ปีที่แล้ว

    Hi, thanks for the video you shared, I found that the website blocking failed, some characters in Regexp could not be displayed properly,For example: the characters displayed by keyboard shift+6 are wrong

  • @ibhafidonaluebhosele4949
    @ibhafidonaluebhosele4949 4 ปีที่แล้ว

    Thanks for sharing this...Very insightful...However i have a question...why was Prerouting used and not Forwarding?????

  • @hermanviviers5654
    @hermanviviers5654 7 ปีที่แล้ว

    I have a problem with my mikrotik. I have two pppoe connections that i would like the mikrotik to dial at certain times using scheduler. Can you make a video on how to do this please?

    • @TKSJa
      @TKSJa  7 ปีที่แล้ว +1

      I will look into it

  • @dominikmodliszewski7408
    @dominikmodliszewski7408 6 ปีที่แล้ว

    Great tutorial. Please tell me, cause in this video You made a Mangle rule with Mark Connection but in a tutorial on Your website You're not doing it, just Action - reject and tcp reset. Can You tell me why?

    • @TKSJa
      @TKSJa  6 ปีที่แล้ว

      There are many ways to achieve the same result. As long as it works you should be fine.

    • @dominikmodliszewski7408
      @dominikmodliszewski7408 6 ปีที่แล้ว

      Yep, it works.

    • @kipronocheruiyot578
      @kipronocheruiyot578 2 ปีที่แล้ว

      @@TKSJa i have done the tutorial on my mikrotik but still i can access youtube and facebook i dont know what i am missing.

  • @jngweji8920
    @jngweji8920 2 ปีที่แล้ว

    Hello Sir Does the rule also block Facebook when accessing it from Facebook Application installed on Android or it only blocks users accessing it from the browser?

  • @karlgerardmiclat2137
    @karlgerardmiclat2137 6 ปีที่แล้ว +1

    hi TKSJa, so far in you tutorial, you have not mentioned how yould get the code for the l7 protocols, like the tut for youtube and fb, i hope you would make a tut for that, or just a reply for tjis comment, and that would be greatly apreciated.... more power...

    • @TKSJa
      @TKSJa  6 ปีที่แล้ว +1

      +karl gerard Miclat I am sure it was mentioned, anyway here is the link tksja.com/how-to-block-facebook/

    • @karlgerardmiclat2137
      @karlgerardmiclat2137 6 ปีที่แล้ว

      TKSJa hi, i am talking about the codes, how did make them? or where did you get the code...

    • @karlgerardmiclat2137
      @karlgerardmiclat2137 6 ปีที่แล้ว

      hi TKSJa i hope you could make the video, about how to make the codes..

  • @javedakhter82
    @javedakhter82 5 ปีที่แล้ว

    When I try to put a specific set of address list it doesn't works. It only work when I do not select any list in advance tab of mangle.

  • @ivonstacruz3115
    @ivonstacruz3115 6 ปีที่แล้ว

    How about Limit facebook instead of blocking it? can you make video of it sir? a facebook with a queue tree , in addition to the full bandwitdh management.. thanks in advance

  • @veronbike
    @veronbike 6 ปีที่แล้ว

    Hi, can I display a page instead of the browser default cant connect message?

    • @TKSJa
      @TKSJa  6 ปีที่แล้ว

      +Ver Valiente Yes you can, with dstnat (port forwarding) to a url but it won't work with https sites.

  • @sushil3352
    @sushil3352 6 ปีที่แล้ว

    My filter rules to block facebook is not working. I've disabled the FastTrack. Can you help me out ?

  • @jmrizkallah
    @jmrizkallah 5 ปีที่แล้ว

    If i remove the mangle rule it works , if i enable it facebook will be accessible how come ?

  • @sufyankhanbest
    @sufyankhanbest 2 ปีที่แล้ว

    Hello, I hope you're doing great, I wanted to block google with its all domains for example docs, contact, homepage etc but only want to allow maps, could you please guide how do I implement this?

  • @hajigul7779
    @hajigul7779 7 ปีที่แล้ว +2

    hey please share the code which one you used in L7

    • @TKSJa
      @TKSJa  7 ปีที่แล้ว

      www.tksja.com

    • @ludovickengne3435
      @ludovickengne3435 6 ปีที่แล้ว

      what is the exact link to find this code?

  • @kyleslazyboy
    @kyleslazyboy 7 ปีที่แล้ว

    hi i have a problem this is also blocking my outlook email from sending and reseving

    • @TKSJa
      @TKSJa  7 ปีที่แล้ว

      That's not possible, the rule uses a layer 7 regex to determine what to block. You may have have another that is causing this, check again.

  • @aminullahrasooly1223
    @aminullahrasooly1223 4 ปีที่แล้ว

    It doesn't in android facebook apps but in messenger it does work, any update plz !

  • @Martin-ot7xj
    @Martin-ot7xj 4 ปีที่แล้ว

    Hi there, how to block apps, like telegram or WhatsApp on phone or tablet on microtik firewall router? Please make a tutorial video about that. Thnx

  • @usmanjutt7908
    @usmanjutt7908 7 ปีที่แล้ว

    i have 2 wan
    how to 1 website for specific gatwaye how to

  • @MrArthurdiaz
    @MrArthurdiaz 6 ปีที่แล้ว

    THANKYOU.... One favor please... Do you text me how to accept an Address List to visit facebook?

  • @user-yp8zg2hs6n
    @user-yp8zg2hs6n 8 หลายเดือนก่อน

    Lock download of mp4 and torrent files in MikroTik
    How is it done?
    Without blocking other sites

  • @ChiragPatel-qn2hk
    @ChiragPatel-qn2hk 4 ปีที่แล้ว

    How to monitor ip seseon on microtik router ?

  • @gpligor
    @gpligor 3 ปีที่แล้ว

    Does this cover facebook mobile app ? It seems that this is only applicable for facebook website, right ?

  • @engineersdc5971
    @engineersdc5971 3 ปีที่แล้ว

    from your Video, How to allow "some host" to facebook?

  • @kambalendungo268
    @kambalendungo268 2 ปีที่แล้ว

    I tried it works with browse but on Android phone using TH-cam application it doesn't work. What can be the matter ?

  • @GranqeT
    @GranqeT 4 ปีที่แล้ว

    Why it blocks on other browsers but not on chrome some users still can use facebook or youtube, some not even if cleared chrome cookies and history...

  • @ArturoGomezdelC
    @ArturoGomezdelC 7 ปีที่แล้ว +2

    I have a problem, I´ve done the steps in the tutorial but facebook page still opens...

    • @TKSJa
      @TKSJa  7 ปีที่แล้ว +1

      +Arturo Gomez Ensure that FastTrack is disabled.

    • @javedakhter82
      @javedakhter82 5 ปีที่แล้ว

      @@TKSJa How to ensure this?

    • @TKSJa
      @TKSJa  5 ปีที่แล้ว

      @@javedakhter82 Follow this video th-cam.com/video/6LaqhDm6PHI/w-d-xo.html

  • @danielessien2445
    @danielessien2445 2 ปีที่แล้ว

    HELLO, i have followed the example but it's not blocking

  • @danielessien2445
    @danielessien2445 2 ปีที่แล้ว

    It's working now, but it seem it does not apply to facebook app

  • @manirampokharel7093
    @manirampokharel7093 4 ปีที่แล้ว

    yo facebook and youtube or etc side block garna ko lagi tyo link kasri verifay garni sir ??

  • @syed9640
    @syed9640 3 ปีที่แล้ว

    Much appreciated thank you very much,is this same procedure for al MikroTik Model,Sir can you suggest me Mikrotik for 100 user Spcly For Network security like Co working office space

  • @matej_stepan
    @matej_stepan 6 ปีที่แล้ว

    It isn't working for me :(

  • @danielessien2445
    @danielessien2445 2 ปีที่แล้ว

    But i used the same rule for snapchat and it's work but not working for facebook

  • @wedz-aranni5356
    @wedz-aranni5356 6 ปีที่แล้ว

    wont work for me.. blocking facebook

  • @noumankhan4459
    @noumankhan4459 4 ปีที่แล้ว

    Followed Each step but not working

  • @KerekKZ
    @KerekKZ 3 ปีที่แล้ว

    *it doesn't work in 2020*

  • @josephpornchai
    @josephpornchai 6 ปีที่แล้ว +1

    How to block facebook APP on mobile?

    • @TKSJa
      @TKSJa  6 ปีที่แล้ว

      Find out the ip that it uses and block it.

  • @GrzegorzPypec
    @GrzegorzPypec 3 ปีที่แล้ว

    more effective way to block facebook without using Layer7 is setup tls-host:
    comment="drop facebook" chain=forward action=drop protocol=tcp dst-port=80,443 tls-host=*facebook*

  • @user-ht4le8uu7x
    @user-ht4le8uu7x 6 ปีที่แล้ว

    Just Write Down the URL of Facebook.... e.g: www.facebook.com ......in Layer 7 Protocol It won't work.

  • @samsulbachri1193
    @samsulbachri1193 3 ปีที่แล้ว

    dosent work in 2021

  • @epicwildlife7761
    @epicwildlife7761 2 ปีที่แล้ว

    Not working bro

  • @hourinfo168
    @hourinfo168 3 ปีที่แล้ว

    how to block facebook app on phone?

  • @engahb
    @engahb 5 ปีที่แล้ว

    Thanks but facebook app on android still opens. Please help, also youtube please please. Appreciated

    • @TKSJa
      @TKSJa  5 ปีที่แล้ว

      There is currently no workaround at this time.

  • @techsostip
    @techsostip 3 ปีที่แล้ว

    you kill cpu performance man layer 7 is very danger for cpu