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 Web Security Gateway
Results will update as you type.
  • How to Update Your Notification Email Addresses and SMTP Server Setting
  • Release Notes
  • Getting Started
  • Deployment Options
    • Inline Pass-Through (Transparent) Mode Deployment
    • Inline Pass-through With Pre-existing Proxy Deployment
    • Forward Proxy Deployment of the Barracuda Web Security Gateway
    • Connecting Inline to your Network with a Pre-existing Proxy Server
    • High Availability and the Barracuda Web Security Gateway
    • Deploying the Barracuda Web Security Gateway with a Peer Proxy
    • Policy-Based Routing
    • Source-Based Routing
    • VLAN Deployments
    • Virtual Deployment
    • WCCP Deployment
    • Proxying Web Traffic Using a PAC File
    • How to Load Balance Barracuda Web Security Gateway With the Barracuda Load Balancer ADC
    • Barracuda Content Shield Integration With the Barracuda Web Security Gateway
  • Filtering Traffic for Offsite and Mobile Users
  • Securing the Barracuda Web Security Gateway
  • Managing Policies
  • Encrypted Traffic Filtering With the Barracuda Web Security Gateway
  • Managing Users and Groups
  • Advanced Configuration
  • Monitoring the System
  • Maintenance
  • Web Use Categories
  • About the Barracuda Web Security Gateway Hardware
  • Web Categorization Upgrade for Barracuda Web Security Gateway 15.x

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    Source-Based Routing
    Published Jan 14

    Source-Based Routing

    Jan 14, 2026
    Subscribe

    This configuration is available with any type of Barracuda Web Security Gateway deployment. 

    See also:

    • Forward Proxy Deployment of the Barracuda Web Security Gateway

    • Inline Pass-Through (Transparent) Mode Deployment

    • Directing Traffic to the Barracuda Web Security Gateway Vx

    • WCCP Deployment

    If you have clients or networks that you want to route to the Internet via a different gateway than the default set for the Barracuda Web Security Gateway, you can configure routing by specifying the source and destination IP addresses and gateways using the IP Routing feature. See the ADVANCED  > Advanced Networking page to set up source based routing.

    For example, assume your organization has multiple physical locations. The server dedicated to Sales services and resources is located in Los Angeles, and a user in the Sales department at the Atlanta office needs to access those resources on the corporate intranet. Rather than use the default route to the cloud, the user has a secondary exit point (172.32.0.254) that handles all intranet activity across a dedicated connection to the 10.1.0.0/16 (Corporate Resources) network.

    The Barracuda Web Security Gateway can look at traffic from the user’s machine (client) and direct the traffic to the appropriate gateway based on the source / destination of the traffic. If the packet is bound for a corporate resource, in this instance the Barracuda Web Security Gateway will route it out via the internal router, and all other traffic will proceed to the Internet via the Firewall.

    Figure 1: Source Based Routing Provided by the Barracuda Web Security Gateway.

    SourceBasedRoutingBWSG.png

    To set up the Barracuda Web Security Gateway per the above example, go to the IP Routing section of the ADVANCED  > Advanced Networking page and configure the following settings. This example configures the Barracuda Web Security Gateway so that all client traffic from the 172.32.0.0 subnet routes to the specified Destination IP Address via the Gateway Address.

    The IP addresses used in this example are just that - example addresses for demonstration purposes. Make sure to obtain the correct IP address and netmask values for your network for the actual configuration.

    Setting

    Meaning and example value

    Setting

    Meaning and example value

    Source IP Address

    IP address of client or network to be routed to the alternate gateway. Enter 172.32.0.0 for the subnet the client is coming from.

    Source Netmask

    Netmask of client or network to route to the alternate gateway; enter 255.255.0.0.

    Destination IP Address

    Alternate gateway (the corporate intranet, in this case) to which you want to route the client(s) or network. Enter 10.1.0.0.

    Destination Netmask

    Netmask of alternate gateway. Enter 255.255.0.0.

    Gateway Address

    Gateway address through which you're routing these clients/networks to the Internet - this would be the address of the Internal Router as shown above. Enter 172.32.0.254.


    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": 12, "requestCorrelationId": "7387c22d6a1545a0a4c3160da6331918"}