Disclaimer: This information is provided as-is for the benefit of the Community. Please contact Sophos Professional Services if you require assistance with your specific environment.
During the webcast on November 14, 2019 there was the following question and answer:
Q: Web filtering using TLS interception, not Web Proxy - will safesearch be possible using the TLS interception feature in the future?
A: SafeSearch, depending on the content provider, still requires the proxy. We’re looking to add specific hosts in the Sophos Firewall to simplify defining proxy policies for those sites. In that way, you can rely on DPI and TLS for everything else and use the proxy for the specific safe search sites. For Google, at least, there are safe search enforcement alternatives that don’t require the firewall e.g. inserting a DNS record into your DNS server.
I wanted to give instructions on how to enforce SafeSearch in Google and Bing, as well as YouTube restrictions when using DPI mode web filtering.
Google, Bing, and Yahoo provide a mechanism for proxies to enforce SafeSearch using header manipulation.
Google and Bing provide a mechanism for proxies to enforce SafeSearch using DNS manipulation. YouTube provides a mechanism for restricted mode.
In Sophos Firewall, if you use the web proxy, you can enforce SafeSearch by editing the Web Policy and selecting the "Enforce SafeSearch" checkbox. This will enable DNS manipulation (which works with or without HTTPS decryption) and header manipulation when HTTPS is being decrypted.
In Sophos Firewall, SafeSearch cannot be enforced if you use the DPI mode web filtering. The DPI engine can't change IP Address the client is connecting to, nor can it manipulate headers.
However, an administrator can still enforce SafeSearch by changing the resolution on the DNS server clients on your network use. This might be your network's Sophos Firewall, AD server, router, or other DNS server. Using a DNS CNAME means that clients trying to resolve DomainA will always get the answer to DomainB, which is good if the IP address for DomainB ever changes. However, we have noticed that these domains have existed for years, and the IPs have never changed. Therefore, if a CNAME is not possible, you can use just resolve to the SafeSearch IPs directly.
Google
Change the DNS entry for the following domains to be a CNAME for forcesafesearch.google.com.
www.google.com
Country specific Google domains (www.google.com/supported_domains)
More Information: support.google.com/.../186669
Bing
Change the DNS entry for the following domains to be a CNAME for strict.bing.com.
www.bing.com
More Information: help.bing.microsoft.com/
YouTube
Change the DNS entry for the following domains to be a CNAME for restrict.youtube.com or restrictmoderate.youtube.com
www.youtube.com
m.youtube.com
youtubei.googleapis.com
youtube.googleapis.com
www.youtube-nocookie.com
More Information: support.google.com/.../6214622
Steps if you are using the Sophos Firewall as the DNS resolver on your clients:
Go to Network, DNS, and Add DNS host entry.
For the domain name put in the domain to be overridden (eg www.google.com).
For the IP address, put the IP of the CNAME domain (eg 216.239.38.120)
Added TAGs
[edited by: Raphael Alganes at 5:55 AM (GMT -7) on 18 Sep 2024]