How to apply confirm to websites/web categories using SonicOSX 7.0 ?
08/31/2020 0 2652
CFS restriction action, named Confirm can be used to confirm the web access other than just block. Once Confirm action has been selected, the web will be redirected to a confirm page after user attempts to access the specified website. In this page users should click on confirm option to continue the web browsing.
A default page is defined already, but you can fully customize the web page that is displayed to the user when access to a confirm site is attempted.
Confirm action can be applied to the Web category, URI Lists, or both. For HTTPS websites, Client DPI-SSL must be enabled to apply confirm
EXAMPLE: We would like to allow access to Web categories: Shopping, Search Engines and Portals as well as websites: facebook.com, instagram.com only if the right passphrase is entered.
- Create a Decryption Policy
- Create Security Policies with the right web categories and URI list selected with CFS Action Profile to apply Passphrase.
We would need to follow the following steps for this setup.
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.
- Make sure that Client DPI SSL is enabled globally based on the KB: How to create Decryption Policy on SonicOSX 7.0 ?
- Navigate to Policy | Rules and Policies | Decryption Policy tab and click on Top at the bottom of the screen. If you have multiple policies it is very important to choose the right priority to make sure that the decryption policy is getting applied to the necessary traffic.
- Select the appropriate source/destination/service or you can leave it all on Any to decrypt all traffic. Make sure that the action is set to Decrypt and the policy is enabled.
- On the URL tab, you can perform this specific to a web category or the URI list as well. In this example, they are left on Any. Click Save.
Creating a Security Policy
Security Policy ties together the URI list object, Web category, 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:
- Navigate to Policy | Rules and Policies | Security policy tab and click on Top at the bottom of the screen. This adds the new Policy at the top of the list. You might need to adjust its priority based on other rules you have.
- Mention a relevant name and in the Source/Destination tab, you can select many fields like source/destination zones, address, services and also user, geo-location settings. Select the destination Port/Services as DNS(Name Service).
- Under App/URL/Custom Match tab leave everything on defaults.
- Select the Default Profile as the Security rule action. Make sure that the Action is set to Allow and the policy is in enable state. Click Save.
NOTE: This policy can also be created using the DNS protocol application signature, but this example is configured using the services.
To create the Confirm action to allow websites and web categories related to Security Policy:
- Navigate to Policy | Rules and Policies | Security policy tab and click on Bottom at the bottom of the screen. This adds the new Policy at the bottom of the list. You might need to adjust its priority based on other rules you have.
- Mention a relevant name and in the Source/Destination tab, you can select many fields like source/destination zones, address, services and also user, geo-location settings.
- Under App/URL/Custom Match, use the radio button for 'Match Operation' as OR. Select the pencil icon next to Web Category to add a new Web Category
- Give this new Web Category Group a relevant name. Add the required web categories to the right using the right arrow and click Save.
- Also, select the pencil icon to add a new URI List object. For more details on creating URI List objects, refer How to create URI list objects/ groups in SonicOSX 7.0 ?
- Under the Security rule action dropdown, click on the pencil icon to create a new Security Action.
- Give it a relevant name and you can set a lot of other security parameters, but the most important section is Content Filter for this setup. Navigate to the Content Filter tab and Enable the toggle button 'Enable Content Filtering'. Also, the Content Filter Action should be set to Confirm.
- On the Security Policy, make sure that the Action is set to Allow and the policy is in enable state. Click Add.
While visiting websites like flipkart.com or websites that belong to Shopping and Social Networking categories, the following page shows up. You need to click on continue to access the website or close to cancel the page.