Configuring Web Filtering and Application Control in bridged mode for a Sophos UTM

  • Article ID: 119360
  • Rating:
  • 9 customers rated this article 3.2 out of 6
  • Updated: 17 Jun 2013

This article explains how to setup your Sophos UTM so you can create a bridged interface and then configure Web Filtering and Application Control.

Known to apply to the following Sophos product(s) and version(s)

Sophos UTM

What To Do

Initial setup

  1. Go through the UTM setup as normal (to watch a video of an example setup click here) and ensure that the internal interface is valid for your network.  Set the WAN interface up as a 'Standard Ethernet interface with dynamic IP address'. This interface will be removed later to create the bridge.
  2. Once the device has been configured go to 'Interfaces & Routing' | 'Interfaces' | 'Interfaces' tab and delete the external (WAN) interface. This allows for the creation of the bridged interface (br0).
  3. Ensure the internal connection has no default gateway assigned.

Creating the bridged interface

  1. Go to 'Interfaces & Routing' | 'Bridging' | 'Status' tab and enable the 'Bridge status'.
  2. Under the section 'Bridge configuration' select 'Bridge select NICs (mixed mode)' and select the Ethernet interfaces you wish to bridge.
  3. Go back to 'Interfaces & Routing' | 'Interfaces' | 'Interfaces' tab and select the 'New interface' button. Create a interface with the following settings:



    Name: Bridged Interface
    Type: Ethernet Standard
    Hardware: br0 (this is the newly created bridged interface)
    IPV4 Address: Give this an appropriate IP address for the network that the bridged interface is connected to
    Netmask: Select the appropriate netmask for the network that the bridged interface is connected to
    IPv4 Default GW: Enabled
    Default GW IP: IP address of the appropriate network gateway that the bridged interface is connected to.

  4. Go to 'Network Protection' | 'Firewall' | 'Rules' tab and create a new firewall rule to allow the appropriate traffic through it. For this example we will assume you have a network firewall in place and we can allow all traffic through the Sophos UTM device.

    Group: Left as default
    Position: 1
    Sources: Any
    Services: Any
    Destinations: Any
    Action: Allow
    Time Period: Always
    Log traffic: enabled
    Comment: ANY ANY Rule for Bridge mode

  5. Enable the firewall rule.

Now this is complete we are able to connect the UTM device to the network (one cable to the firewall, one to the switch). Computers on the attached switch should now be able to connect out to the Internet via the bridged UTM (e.g., try browsing to google.com). If you experience any issues open the firewall live log to ensure traffic is allowed through.

Configure Web Filtering

  1. To set up the web filtering functionality on the web server go to 'Web Protection' | 'Web Filtering' | 'Global' tab and press the enable button.
  2. In the 'Allowed networks' we have chosen 'Any' in the screenshot below, however if you have defined your internal network you would use this.
  3. Enable 'Transparent Mode' with 'Full Transparent' and set the 'Authentication Mode' to none.


  4. Go to the 'Antivirus/Malware' tab, enable 'Use Antivirus scanning' and select 'Single Scan (Maximum Performance)'.
  5. Under the section 'File extension filter' delete all the entries in the 'Blocked file extensions' list.
  6. Go to the 'URL Filtering' tab and use the following settings:

    Allow content that does not match the criteria below: Enabled
    Block Spyware infection and communication: Enabled
    Block URLs with a reputation below a threshold of: Unverified
    Block these website categories: Appropriate categories for your site
    Block access to uncategorized sites: Enabled
    Google SafeSearch: On
    Bing SafeSearch: On
    Yahoo SafeSearch: On
    YouTube for Schools: Off
    Youtube School ID: blank

  7. If there are certain sites that are required to be whitelisted add them to the 'Always allow these URLs/sites'. Additionally if there are certain sites you never want to allow access to add them to the 'Additional URLs/sites to block'.
  8. Go back to the 'Global' tab, open the live log and then try to access some websites that you know should be allowed and some that should be blocked. The live log will show you error codes and reasons if this is not working as desired.

Configure Application Control

  1. Go to 'Web protection' | 'Application Control' | 'Network Visibility' tab and enable 'Network Visibility'.


    Note: For the example in this article we are interested in seeing ALL traffic in the 'Logging & Reporting' reports so we will create a blanket rule to accept and allow all applications.  We would not do this in a real world installation.
  2. Create a new rule with the following settings:



    Name: Allow all apps
    Group: Leave as default
    Position: Leave as default
    Action: Allow
    Control by: Applications
    Control these applications: All Applications (refer to the screenshot below - applications can be filtered by many fields)
    For: Any network
    Log: Enabled
    Comment: Allow all apps for reporting

  3. This will now allow ALL apps to show up in any 'Logging & Reporting' reports.
  4. To view the web usage reports go to 'Logging & Reporting' | 'Web Protection' | 'Web Usage Report' tab. In the drop down menu 'Available Reports' select what type of report you would like to view (e.g., Users, Categories, Sites, Urls, etc.)


  5. To view the application control reports go to 'Logging & Reporting' | 'Web Protection' | 'Application Control' tab. Again you can select which report to view by selecting the drop down list.


  6. To view currently used applications go to the main dashboard and select the br0 interface in the right hand pane. From here you will have the option to either block or shape the traffic.



    If the option to shape the traffic is unavailable go in to 'Interfaces & Routing' | 'Quality of Service (QoS)' | 'Status' tab and enable quality of service on the br0 interface. Any traffic shaping rules that have been configured through the 'Flow Monitor' page will be displayed in the 'Traffic Selectors' tab.


 
If you need more information or guidance, then please contact technical support.

Rate this article

Very poor Excellent

Comments