A template is a reusable configuration file. It represents parts of your Barracuda Web Application Firewall's existing configuration. You can create three types of templates:
- Full – A Full template represents a configuration object. You can create a new object with the desired settings using the Full template option. For example, a 'Service' template would include all (selected) URL Profiles, Parameter Profiles, Rule Groups, URL ACLs, etc., associated with the service. Typically, a full template includes all the relevant information pertaining to an object. You can edit the values of the parameters if required when creating this template. See Tables 1 and 2 below for more information.
- Partial – A Partial template represents parts of configuration of an object. With the Partial template, you can update the configuration of existing objects. Applying a partial template can be considered analogous to perform a "Bulk Edit" operation. For example, consider you want to update the Session Timeout value for multiple services. You can create a template with only Session Timeout value modified. When this template is applied on service(s), it only updates the Session Timeout value keeping other parameter values intact.
- Composite – A Composite template is a group of full templates of the same type of objects. It can be used when you want to migrate multiple objects of the same type from the QA environment to the production environment. For example, you want to copy URL profiles of an application to another application. You can create a template with selected URL profiles and apply it on the application for which these URL profiles needs to be configured. This will create URL profiles for the selected application on the WEBSITES > Website Profiles page.
Note that you cannot edit the values of parameters when creating a Composite template. If you wish to edit the values of certain parameters, download the template, open the XML file and edit the values before importing it.
Object Type and Dependency Objects
A template only contains a reference to "dependency objects". This means that when the template is downloaded and imported on another Barracuda Web Application Firewall, the dependencies are not imported. While using such a template, all dependencies appear as "key" parameters in the "Use Template" wizard and thus the appropriate dependencies can be referenced before applying the template. For example, when importing a template of a HTTPS service, the certificate is not imported. While applying the template, the certificate appears as a "key" parameter in the wizard and one of the existing certificates on the unit can be associated with the service.
Table 1 lists each object type and Objects on which the Object Type is dependent.
Rule Group Server
Secure Browsing Policy
Data Theft Protection
Custom Parameter Class
Table 2. List of Dependency Objects.
Dependency Object Name
Rate Control Pool
A rate control pool can be created on the ADVANCED > Libraries page.
An authentication service can be created on the ACCESS CONTROL > Authentication Services page.
Trusted Hosts Group
A trusted hosts group can be created on the WEBSITES > Trusted Hosts page.
A session identifier can be created on the ADVANCED > Libraries page.
Web Firewall Policy
A web firewall policy can be created on the SECURITY POLICIES > Policy Manager page.
A certificate can be created on the BASIC > Certificates page.
A client certificate can be associated on the ACCESS CONTROL > Client Certificates page.
Custom Blocked Attack Types
A custom blocked attack type can be created on the ADVANCED > Libraries page.
Custom Parameter Class
A custom parameter class can be created on the ADVANCED > Libraries page.
A credential server can be created on the WEBSITES > Secure Browsing page.
A response page can be created on the ADVANCED > Libraries page.
Custom Identity Theft Type
A custom identity theft type can be created on the ADVANCED > Libraries page.
Custom Input Type Validation
A custom input type validation can be created on the ADVANCED > Libraries page.
You can create service, security policy, and configuration templates and selectively apply (or reset) those templates to connected Barracuda Web Application Firewall devices in the Cloud Control Context view. This allows you to store your templates in a repository and synchronize data as needed. The BASIC > Templates page displays all defined templates in the Template Repository table.
Create a Template
Use the following steps to create a template.
- Log into the Barracuda Web Application Firewall Control Center as the Barracuda Web Application Firewall Control Center Account Admin, and go to the BASIC > Templates page.
- From the Create From Appliance drop-down menu, select the appliance, and then click Create Template; the Create Template wizard displays.
- click on the Barracuda Web Application Firewall in the left pane that you want to use to create the source object for your template. The view changes to the Proxy (Product) context display the Barracuda Web Application Firewall web interface for the selected device.
- Define your source object for the template. Go to the ADVANCED > Templates page. Note: You can also define services and policies within the web interface, for example BASIC > Services, and then click Import Template to add a new template of that particular object type.
- Click Create Template to define a new template. The template created is a self-contained object. For example, a 'Service' template would include all (selected) URL Profiles created for that service, Parameter Profiles, Rule Groups, URL ACLs etc. In short, a template would include all the relevant information pertaining to that object and not just the primary values. For information on object type and dependency objects, see Object Type and Dependency Objects and List of Dependency Objects.
- In the Create Template window, enter a unique Name to represent the template. The name can include alphanumeric characters and underscores (_). Any other special characters such as space, semicolon, asterisk, periods (.), hyphens (-), etc. are not allowed.
- Select the Template Format:
- Full - Creates a template for an object, which includes all configuration under that object. For example, a 'Service' template would include all (selected) URL Profiles created for that service, Parameter Profiles, Rule Groups, URL ACLs etc. In short, a template would include all the relevant information pertaining to that object and not just the primary values. You can edit the values of the parameters if required when creating this template.
- Composite - Creates a template for a particular object type. Composite template is useful when you want multiple instances of the same object type in a single template. For example, consider "Server" as your "Template Type". This will list all servers configured under each service. Select the servers which you want to include in the template and click Create. Note that you cannot edit the values of configuration parameters when creating a Composite template. If you wish to edit the values of certain parameters, download the template, open the XML file and edit the values before importing it. For more information on how to edit a composite template, see Edit Template.
- Template Type - Select an object type for which you want to create a template. For example, Service, Server, URL Profile, Parameter Profile.
- Based On - Select the object for which you want to create a template. For example, service1.
- Click Create. The new template is added to the list of Available Templates.
- Click on your user name in the left pane to switch back to the Cloud Control Context:
- In the Barracuda Web Application Firewall Control Center web interface, go to BASIC > Templates.
- From the Import drop-down menu, select the device where you created the source object; all source objects available on the selected device display:
- Select the source object you want to import, and then click Import. The table populates with your selections.
- In the Actions column for the new service, click Use; the available destinations display in a new window. The Use operation allows you to apply a template to selected destinations. For example, if you are applying a URL Profile template, the destination option can be a 'Service', because a URL Profile logically exists within a Service. If you are using a "Full" template, the Use template wizard displays different key parameters for each object. For a Composite template, the Use template wizard displays only the Destination field.
Expand the available options to select those devices to which to push the template: