Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Do you know HSTS?

Finally I'm trying web content filtering.

I have deployed on every client on my network the sophos certificate, except the mobile clients, and I have activated two basic rules in this order:

- Authenticated user -> Lan -> Wan -> HTTP and HTTPS scan -> no explicit content web filter

- All user -> Lan -> Wan -> no scan -> deny all content filter

So the not authenticated user will be redirected to authentication portal as per captive portal configuration.

The problem is Chrome + Google

When an unauthenticated client (for example a mobile device) opens chrome (that, for Android mobile devices, is the most common browser) it gives the untrusted certificate page, but doesn't allow to continue in order to redirect user to a login page.
With Internet Explorer, that doesn't yet support HSTS the untrusted certificate appear but in the bottom there is the link to continue, and after that it loads login page.
With Firefox you must trust first the modified google/sophos certificate, and after the sophos appliance certificate, and, after that, you are on the login page.
So the problem is only Chrome, but as sayd, for Android devices it is not a small problem.

With Chrome also if I go to a website with HTTPS and no HSTS or to an HTTP page all works perfectly, with sophos login page correctly showed. The only problem is if, as user are used to do, I search on the browser bar, that bar sends me to HTTPS://google.com that have HSTS enabled.
Is there a way to solve this issue?

I know that sophos use the MITM tecnique to popup login page for unhautorized websites, but in my case I want to block ALL websites if user are not authorized/authenticated. For do that I have used Web Content Filter with Deny All. There is a configuration to do this without Web Content Filter? This could be a workaround for my specific case.

Many thanks

Manuel



Edited Tags
[edited by: Erick Jan at 11:19 PM (GMT -7) on 15 Sep 2022]
Parents
  • Hi Manuel,

    Greeting.

    The solution to this is quite simple. Navigate through the options:

    • System
    • Authentication
    • Authentication Services
    • HTTPS Redirection - deselect this check box.

    This will not direct unauthenticated User to HTTPS based Captive Portal and the HSTS error will be resolved.

    Thanks

    Sachin Gurung

  • My configuration is exactly what you have shown, but it works ONLY with HTTPS sites that don't uses HSTS. This is the problem.

    Google, Facebook, Twitter and so much more uses HSTS and this send you in another page, different from the tipical SSL certificate warning page, here some examples

    HTTPS with HSTS

    and this one is without HSTS

    as you see, the one with HSTS don't let you to continue with a link as on the sites withous HSTS

  • Hi Sic,

    In cases where HSTS is not used and the devices trust the XG's certificated you might be ok and not get any problems in redirection or you are allowed to click to proceed.

    However transparent webfiltering with Decrypt and Scan is not effective and causes issues with the way browser security operates today. The only way to mitigate this is by using a web proxy so the device actually trusts the proxied connection.

    Regards,

    Emile

  • Hi Sic,

    HSTS requires the browser to only allow trusted HTTPS connections, if you have enabled HTTPS inspection and the users browser does not trust the appliance as a trusted root authority to issue certificates on behalf of websites you will not be able to click through.

    If you setup the appliance as a trusted root authority by either importing the certificate authority from the appliance into the browser or computer store or by setting the appliance up as sub-ordinate authority to the customers existing enterprise certificate authority you should not end up blocked by HSTS.

    NOTE: depending on the browser/operating system the mechanism to trust the certificate authority of the appliance will vary, for example with current Windows environments and Internet Explorer/Edge/Chrome often you need to install it into the computer certificate store. You should also note that Firefox does uses its own certificate store, so if the end user is using multiple browsers you might need to install the appliance multiple times

  • Hi All,

    Thanks for choosing Sophos.

    Please refer the link to refer Sophos SSL CA  installation guide.

    https://www.sophos.com/en-us/support/knowledgebase/123048.aspx

    Thanks

    Sachin Gurung

Reply Children
No Data