Monday, May 30, 2016

How to block all website except gmail and ymail by layer7

How to block all website except gmail and ymail

You can use layer 7 protocols

For accept rule:
Name: Accept
regexp= ^.+(gmail.com|mail.google.com|yahoo.com|login.yahoo.com|in-mg61.mail.yahoo.com).*$

For deny rule:
Name=Block  regexp=^.+(.).*$

Need two filters rules
1. action=accept and L7=(Accept)
2. action=drop and L7=Block

if u have any trouble to understanding. inbox me :)

18 comments:

  1. Hello,
    First, thank you for your regexp rules.
    I am using your layer7 rules and it is going well. But I have a little problem. I can not resolve 94.21.255.209 ip address with nslookup in console. I do not understand why.

    Please hlep me

    ReplyDelete
  2. I can not access the gmail web. How to solve ?

    ReplyDelete
  3. what chain should the two filter rules use.

    ReplyDelete
  4. RDP access from Net has been stop after apply this rule, can you please provide solutions

    ReplyDelete
    Replies
    1. Protocol tcp(6) dst.port 80,443
      and fix your problem

      Delete
  5. Replies
    1. can you explain the filter rule
      forward or outbut
      i did it not working

      Delete
  6. Tamil Nadu Result is an official result page launched by the Government of Tamil Nadu to help the students in providing the required information about the latest updates.
    tn results nic

    ReplyDelete
  7. I have question
    After this my branch site PC-s starts connecting to terminals slowly?
    How can i fix this

    ReplyDelete
  8. The TN SSLC exam is conducted by Tamilnadu State Board of Secondary Education for class 10th / SSLC and + 2 / 12th
    tnresults.nic.in 2018

    ReplyDelete
  9. Thanks,
    I add
    drive.google.com
    to accept rule, i can access drive.google.com but very slow, how can I resolve this problem.

    ReplyDelete
  10. i tired to do it not working probably
    can you enplane the filter rule

    ReplyDelete
  11. Thanks It's work, but how to allow desktop application that use internet, like eyebeam, SIP calling software?

    ReplyDelete
  12. Can you please send me the complete script. I like to copy paste in the console winbox. i'm juat newbie. you can send me the notepad to my email: opay.gitu@gmail.com.

    Thank You & Best Regards
    Opay

    ReplyDelete