SonicWall has an implicit deny rule which blocks all traffic. To allow a specific set of websites like google.com, we would need to add a security rule to appropriately allow them. Security rules consist of three sections, match criterion, action, and additional actions. We need to match the URLs to be allowed, allow access to them, and perform additional actions like showing the block page.
With most of the websites using HTTPS, we need to use DPI SSL so that we can easily filter them based on the full URI content. Without DPI SSL, we are dependent on the server name indicator or common name of the certificate presented to allow/deny a website.
We would need to create the following to allow only certain websites through the firewall on SonicOSX 7.0.
NOTE:Â On SonicOSX 7.0, the HTTPS content filtering is no longer present. So, if HTTPS websites are to be allowed, we need Client DPI SSL and a corresponding decryption policy to inspect them.
Creating a Decryption Policy:
Decryption policy matches the traffic and the only two action we can take are decrypt and bypass. With decryption, we get more visibility to the data helping us in performing better matches and applying the right security policy.



Creating a Security Policy
Security Policy ties together the URI list object, Security Rule Action so that we know what action needs to be taken for a specific match. Before an HTTP/HTTPS connection can be made, the end machine would need to perform DNS resolution of the URL. Since we have an implicit deny rule, DNS traffic needs to be allowed as well.
To create the DNS related Security Policy



NOTE:Â This policy can also be created using the DNS protocol application signature, but this example is configured using the services.To create the allow websites related Security Policy






You would be now able to access the websites present on the allowed websites list like google.com and get the blocked page for others. You can also see that the SonicWall DPI SSL certificate shows up for the allowed websites.


While visiting other websites, the following block page would show up depicting there is no matching policy to allow access to this website.
