Skip to main content
Skyhigh Security

Configure Web Hybrid Policy Sync

Introduction

The idea behind "Web Hybrid" is that you can manage your web security policy from your Secure Web Gateway (On-Prem), and it will sync to the Secure Web Gateway Cloud. This ensures a consistent web security policy where ever your users are (inside or outside the corporate boundaries). Users on-premise will be protected by your Secure Web Gateway (On-Prem), users outside the network will be protected by the Secure Web Gateway (On-Prem).

Using Web Hybrid allows you to enforce the same security policy on the web usage of both kinds of users; this includes:

  • Your block pages will look the same on-premises as well as in the cloud
  • You can select the rule sets that you want to synchronize to the Secure Web Gateway Cloud
  • The policy is synchronized in configured intervals to ensure that rule sets remain the same on both products, including changes that you have incorporated on Secure Web Gateway
  • You can also perform synchronization manually, regardless of the configured interval

You can check the status of the Secure Web Gateway Cloud at https://trust.mcafee.com

ePO Cloud Account

To sync your Secure Web Gateway (On-Prem) policy to the Secure Web Gateway Cloud, you need an Trellix ePO Cloud account.

Configuring Policy Synchronization

In the Secure Web Gateway UI we need to enable the policy synchronization as a first step to creating your hybrid policy. Navigate to Configuration > Web Hybrid and configure the following:

  1. Check the box for "Synchronize policy to Cloud"
  2. Select the appliance that should do the synchronization from the drop-down (only one appliance can do the synchronization in a cluster)
  3. Unless instructed otherwise in your account setup email, leave the Cloud address field at its default: https://msg.mcafeesaas.com
  4. Enter your administrator account, password and customer ID from your account setup email
  5. Select the synchronization interval desired (15 minutes seems to be a common value here).

clipboard_e094855eccec1afec2d254b29ca816cb6.png

 

Now click "Save changes" and verify that the communication with the Cloud Service is working by going to Troubleshooting > Cloud Synchronization > Synchronize.

A successful synchronization should end with a similar message as shown below.

clipboard_e032dd8adff777cce90cd2c95cc54320f.png

Enabling Rules for use in the Cloud

You can now pick and choose which parts of your policy should be synchronized with the cloud. A good starting point might be a global block list or a URL filtering rule set (but virtually any rule set should work with the restrictions below in mind)

To enable a rule set for use in the cloud, simply select the checkbox "Enable in Cloud" and "Save changes". With the next synchronization, this rule set will get enabled in the cloud service.

clipboard_e29b8ef6d9901831fa99ea3cf41a99fc2.png

You can also enable multiple rule sets at the same time by selecting the desired rule sets and then right-clicking on them and selecting "Cloud".

clipboard_e45d9699838eb6028c6528dfff86ab96e.png

 

Whether a particular rule set is enabled in the cloud or not is indicated by the little blue cloud symbol on the rule set.

Verify your configuration

Once everything is syncing between Secure Web Gateway (On-Prem) and the Secure Web Gateway Cloud, you'll want to verify and test your configuration. To do this, we need to redirect our web traffic to the Secure Web Gateway Cloud. This can be done using SCP, or changing the browser settings. SCP is the most common deployment method, if you use IP Range or SAML, we'll need to change the browser settings.

Using SCP

Secure Web Gateway Cloud: Deploying and managing SCP with Trellix ePO Cloud.

Using IP Range authentication

After your policy has been synced, you should be able to verify your setup by pointing your browser to the Secure Web Gateway Cloud instead of your local Secure Web Gateway (On-Prem).

Your account setup email should have provided you with the proxy address needed.

As an example, you can change your proxy settings in Internet Explorer under Tools > Internet Options > Connections > LAN Settings.

clipboard_ec9b468663eac50fa1c45dd67237d7e9a.png

If the setup is working correctly, you should see that you're on-premise policy (and block pages) are applied while going through the Cloud Service for filtering.

Restrictions

Synchronization Times

The synchronization of your policy from your on-premises appliance to the cloud only takes a few seconds. For efficiency purposes, the active policy in the cloud that is deployed to the proxies is being cached for a few minutes though. Do not be alarmed if a change you made takes a few minutes before it actually starts to work through the Cloud Service proxy. Unless there was an error message during the synchronization, you can be sure that your policy will get applied and will become active within a few minutes.

Hard-coded default values in some properties

Some properties that might be used in your on-premises policy might not make sense to be used in the cloud proxy. As an example, the property proxy.ip has a hard-coded value of0.0.0.0 when a request is processed through the cloud.

If you need to verify whether a property has a real or a hard-coded value in the cloud, the easiest and quickest way is to add it to a block page and then examine that block page while going through the cloud proxy.

Example rule: if URL.Host equals property-check.mwginternal.com then block (property-check block page)

UI warnings

Several properties and events will not work in a cloud setup and might therefore cause warnings in your local UI when you try to save your changes. Some examples are authentication properties, log file writing or sending email/snmp/syslog messages. If these properties or events are in use in your policy that you enable to sync to the cloud, you will see a UI warning popup when you save changes. Red warnings need to be addressed before you can proceed to save your changes!

clipboard_ea82f201885906ddb75b628b2465e0608.png

Authentication related rules

As mentioned earlier, authentication for the cloud-based requests still happens as part of the Secure Web Gateway Cloud and not as part of your Secure Web Gateway rules being synced.

It is very important that your rules and rule sets are configured to work for users that are authenticated on-premise (for example with NTLM/AD) as well as in the cloud (for example with a static username like we are using in these instructions).

Consider that the actual username and even more importantly the group names can look different between the cloud and the on-premise environment.

Adding usernames and group names to a test block page is a quick and easy way for you to see what exactly is available to you.

Tips and Tricks

Identify a request executed in the cloud

For policy-building purposes, it may be important to be able to identify whether a particular request is being filtered in the cloud or on-premise. As an example, you can add text to your block pages to show where the request was blocked.

There is an official property called "InTheCloud" which will return "true" only if a request was filtered through the Secure Web Gateway (On-Prem) proxy.

clipboard_eff6d14ebf52f136cbd269514c9d56a7f.png

Using a User-defined Property to set custom text and then embedding that text into the block pages would allow you to show which proxy was being used.

This kind of detection can also be helpful in situations where you would want to set a default user group for cloud users.

 

  • Was this article helpful?