Skip to main content
kenjiak
New Member
January 3, 2018
Question

How to configure a network to block all website but just allow google apps mail?

How to configure a network to block all website but just allow google apps mail loads via https://mail.google.com/a/[domain] and gmail loads via https://mail.google.com/mail on my environment is using FortiOS v5.2.10 ?

 

My device is using Fortigate 60D

 

    2 replies

    sw2090
    SuperUser
    SuperUser
    January 11, 2018

    Create a webfilter security profile (or use the defaut one that already exists if you want) and enable the static url filter in it. Then make three rules:

     

    1. Allow https://mail.google.com/a/* by Exempt

    2. Allow https://mail.google.com/mail by Exempt

    3. Block everything else (i,e, block *)

     

    Then keep the rules in this order (you may exchange 1. and 2. but the block everything rule must be the last one).

    Also you have to use "exempt" and not "allow" because you want the filter to stop once one rule allowed access to the site. Without "exempt" it would block everything even though there is 1. and 2. because it won't stop.

     

    Once you are done with that save your profile and apply it as webfilter profile to your wan policy(s) for that network.

     

    then you are done :)

     

    hth

    Sebastian

    makco10
    Explorer II
    December 18, 2019

    Hello,

     

    Thanks sw2090, this works for me:

     

     

     

    Regards.

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT