Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
🔍 Discover Our Product Documentation

Barracuda CloudGen Firewall 10
Results will update as you type.
  • Deployment
  • Get Started
  • Network
  • High Availability
  • Licensing
  • Administration
  • Authentication
  • Cloud Integration
  • Assigned Services
  • Services
    • Access Control Service
    • DHCP
    • DNS
    • Dynamic Routing Protocols (OSPF/RIP/BGP)
    • Firewall
      • Forwarding Firewall
        • Default Forwarding Firewall Rules
        • Understanding Access Rules, Application Rules, and Policy Profiles
        • Access Rules
        • Policy Profiles
        • Firewall Objects
        • Application Control
        • TLS Inspection in the Firewall
        • Virus Scanning and ATP in the Firewall
          • How to Configure Virus Scanning in the Firewall for Web Traffic
          • How to Configure Virus Scanning in the Firewall for FTP Traffic
          • How to Configure ATP in the Firewall
          • How to Configure Virus Scanning in the Firewall for Outbound SMTP and POP3 Traffic
          • How to Configure Virus Scanning in the Firewall for SMB
        • URL Filtering in the Firewall
        • File Content Filtering in the Firewall
        • Mail Security in the Firewall
        • User Agent Filtering in the Firewall
        • How to Enforce SafeSearch in the Firewall
        • How to Configure Google Accounts Filtering in the Firewall
        • How to Block Search Terms using a Custom Application Object
        • How to Configure Custom Block Pages and Texts
        • Botnet and Spyware Protection in the Firewall
        • Intrusion Prevention System (IPS)
        • Traffic Shaping
        • Bridging
        • Firewall Plugin Modules
        • Firewall Authentication and Guest Access
        • How to Configure ICMP Settings
        • How to Configure IPv6 Header Settings
      • Host Firewall
      • Firewall Settings
    • HTTP Proxy
    • SIP Proxy
    • URL Filter
    • Virus Scanner
    • VPN
    • Wi-Fi
    • CloudGen Access Proxy
    • Edge Computing
  • Automated Critical Updates
  • Firewall Control Center
  • Barracuda Secure Connector
  • Best Practice
  • Implementation Guides
  • Monitoring and Reporting
  • Maintenance
  • Remote Access Clients
  • Management Interfaces, Tools, and Apps
  • TUFIN Integration API Service

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    How to Configure Virus Scanning in the Firewall for Web Traffic
    Published Jan 09

    How to Configure Virus Scanning in the Firewall for Web Traffic

    Subscribe

    The CloudGen Firewall scans web traffic for malware on a per-access-rule basis when Virus Scanning in the Firewall is enabled. When a user downloads a file, the firewall intercepts and scans the file if it is smaller than the limit set in the large file policy and if the MIME type is listed in the Scanned MIME types list. Files matching a MIME type exception are not scanned. To avoid browser timeouts while downloading the file, a very small amount of data is trickled to the browser to keep the connection open. Data trickling ceases while the file is scanned by the virus scanner. If the large file watermark is set to a very high value, browser sessions might time out. In this case, decrease the large file policy value. If the virus scanning services detects malware, the infected file is discarded, and the user is redirected to a customizable block page. The very small partial download from data trickling might still be present on the client. You can combine virus scanning with TLS Inspection to also scan HTTPS connections.

    virus_scanning_https_traffic_tls.png

    Before You Begin

    • Enable Application Control. For more information, see How to Enable Application Control.

    • Create a Virus Scanner service. For more information, see Virus Scanner.

    Step 1. Configure the Virus Scanner Engine(s)

    Enable and configure the virus scanner. Barracuda CloudGen Firewall F18 and larger support the Avira AV engine.

    1. Go to CONFIGURATION > Configuration Tree > Box > Assigned Services > Virus-Scanner > Virus Scanner Settings.

    2. Click Lock.

    3. Enable Avira AV by selecting Yes from the Enable Avira Engine list.

    4. Click Send Changes and Activate.

    Step 2. Enable TLS Inspection and Virus Scanning in the Firewall

    If you want to scan files that are transmitted over an TLS-encrypted connection, enable TLS Inspection and the Virus Scanning in the Firewall service.

    1. Go to CONFIGURATION > Configuration Tree > Box > Assigned Services > Firewall > Security Policy.

    2. Click Lock.

    3. Expand the Enable TLS Inspection drop-down list and enable TLS Inspection.

    tls_auto.png

    When set to Auto, the CloudGen Firewall will check for certificates and automatically enable TLS Inspection as soon as a valid license is detected.

    1. Upload your root CA certificate, or create a self-signed Root Certificate.

    outbound_TLS_Inspection_02.png
    1. (Optional) Click the plus sign (+) in the Trusted Root Certificates section to add additional root certificates. 

    2. In the Virus Scanner Configuration section, expand the drop-down list next to Enable Virus Scanning for, and select Yes for HTTP.  

    3. In the Scanned MIME types list, add the MIME types of the files you want to scan. Default: <factory-default-mime-types> and <no-mime-types>. For more information, see Virus Scanning and ATP in the Firewall.

    4. (optional) In the Scanned MIME types list, add MIME type exceptions. Prepend an "!" to not scan this MIME type. E.g., !application/mapi-http

    5. (optional) Change the Action if Virus Scanner is unavailable.

    AV_SMTP_09.png
    1. (optional) Click Advanced:

    AV_SMTP_02.png

     

    Changing settings for the virus scanner also affects virus scanning for mail traffic.

    • Large File Policy – Action taken if the file exceeds the size set as the Large File Watermark. Select Allow to forward the files unscanned; select Block to discard files that are too big to be scanned.

    • Large File Watermark (MB) – The large file watermark is set to a sensible value for your appliance. The maximum value is 4096 MB.

    • Stream Scanning Buffer – Select the buffer size for HTTP/HTTPS streaming media using chunked transfer encoding. Select Small for faster response times, or Big to scan larger chunks before forwarding the stream to the client.

    • Data Trickling Settings – Change how fast and how much data is transmitted. Change these settings if your browser times out while waiting for the file to be scanned.

    FW_virus_scanning_advanced.png
    • Click Send Changes and Activate.

    Step 3. Edit an Access Rule to Enable Virus Scanning

    Virus scanning can be enabled for all Pass and Dst NAT access rules.

    1. Go to CONFIGURATION > Configuration Tree > Box > Assigned Services > Firewall > Forwarding Rules.

    2. Click Lock.

    3. Double-click to edit the PASS or Dst NAT access rule.

    4. Click the Application Policy link and select:

      • Application Control – required. 

      • TLS Inspection – optional.

      • Virus Scan – required.

    AV_HTTP_01.png
    1. If configured, select a policy from the TLS Inspection Policy drop-down list. For more information, see TLS Inspection in the Firewall.

    2. Click OK.

    3. Click Send Changes and Activate.

    Monitoring and Testing

    • Each file blocked by the virus scanner generates a 5005 Virus Scan file blocked event.

    • Test the virus scan setup by downloading EICAR test files from https://www.eicar.org/download-anti-malware-testfile/https://www.eicar.org/download-anti-malware-testfile/, the ZIP file (EICAR.COM-ZIP) is also hosted there and is also blocked. The block page is customizable. For more information, see How to Configure Custom Block Pages and Texts.

    virus_scanning_block_page_eicar.png

     

    • To monitor detected viruses and malware, go to the FIREWALL > Threat Scan page.

    avScanning02.png

     

    Next Steps

    To combine ATP with virus scanning, see Advanced Threat Protection (ATP).


    We value your feedback.
    If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
    For general product inquiries or technical support, please contact the global Barracuda Support team.

    {"serverDuration": 11, "requestCorrelationId": "e2f4d69c67404ce8a2365a7fccfff44b"}