Create or Edit a Custom Policy Template
To add specialized policies to your configuration files, you can create custom policy templates. A custom policy template can be for a packet filter or proxy policy and can use any available protocol. When you add a custom policy template to your configuration, make sure to specify a unique name for the policy template, so you can find the policy when you want to change or remove it. This name must be different than the name of any other policy template.
In the policy template, you can configure these properties:
Policy Type
Protocols
Specify the protocols the policy template applies to. You can add more than one protocol to the same policy template. The GRE, AH, ESP, ICMP, ICMPv6, IGMP, OSP, IP, and PIM protocols use a single port, and you cannot configure it. For some protocols, you must specify additional information:
- For the TCP and UDP protocols, specify the port or port range.
- For ICMP (Internet Control Message Protocol) and ICMPv6, specify an ICMP Type and ICMP Code. If you type 255 in the text boxes, the Firebox interprets the type and code as any ICMP traffic of any ICMP traffic type.
- For the IP protocol, specify the protocol number.
Custom Idle Timeout
You can specify a custom idle timeout. The idle timeout is the maximum length of time, in seconds, that a connection can stay active when no traffic is sent through the connection. If you do not specify a custom idle timeout, the template uses the default idle timeout setting of 180 seconds (3 minutes).
- Select Firewall > Firewall Policies or Firewall > Mobile VPN IPSec Policies.
The Policies page you selected opens. - Click Add Policy.
The Add Firewall Policy page opens.
- For the policy type, select Custom.
- From the Custom drop-down list, select a policy or click Add to create a new custom policy.
The Add Policy Template page opens.
- In the Name text box, type a name for the custom policy template.
- (Optional) In the Description text box, type a description of the policy template.
This appears in the Details section when you click the policy name in the list of User Filters. - Select a policy type: Packet Filter or Proxy.
- For a proxy policy, from the Proxy drop-down list, select a proxy type.
- To add a protocol, click Add.
The Add Protocol dialog box opens.
- From the Type drop-down list, select an option: Single Port or Port Range.
- From the Protocol drop-down list, select the protocol to use for this policy.
If you select Single Port, you can select TCP, UDP, GRE, AH, ESP, ICMP, ICMPv6, IGMP, OSP, IP, or Any.
If you select Port Range, you can select TCP or UDP.
The options below the drop-down list change for each protocol. - If you selected Single Port, in the Server Port text box, type the port number.
If you selected Port Range, in the Start Server Port and End Server Port text boxes, type the server port range. - Click OK.
The protocol appears in the Protocols list. - To specify the idle timeout, select the Specify custom idle timeout check box and type the timeout value in seconds.
- Click Save.
The custom policy name appears in the Add Firewall Policy page in the Custom drop-down list.
- Click .
Or, select Edit > Add Policies.
The Add Policy dialog box opens. - Click Manage Custom.
The Manage Custom Policy Templates dialog box opens. - To add a new custom policy template, click New.
Or, to edit an existing custom policy template, select the policy template and click Edit.
The New Policy Template dialog box opens.
- In the Name text box, type the name of the custom policy.
- In the Description text box, type a description of the policy.
- Select the type of policy: Packet Filter or Proxy.
- If you select Proxy, choose the proxy protocol from the adjacent drop-down list.
- To specify the idle timeout, select the Specify Custom Idle Timeout check box and type the timeout value in seconds.
- To add protocols for this policy, click Add.
The Add Protocol dialog box opens.
- From the Type drop-down list, select Single Port or Port Range.
- From the Protocol drop-down list, select the protocol for this new policy.
If you select Single Port, you can select TCP, UDP, GRE, AH, ESP, ICMP, ICMPv6, IGMP, OSP, IP, or Any.
If you select Port Range, you can select TCP or UDP. The options below the drop-down list change for each protocol. - If you selected Single Port, in the Server Port text box, type or select the port for this new policy.
If you selected Port Range, in the Start Server Port and End Server Port text boxes, type or select the starting server port and the ending server port. - Click OK.
The policy template is added to the Custom policies folder.
You can now use the custom policy template to add one or more custom policies to your configuration. Use the same procedure as you would to add a policy based on a predefined policy template.
ICMPv6 templates are only supported in Fireware v12.6.2 and higher. If you try to save a configuration that includes an ICMPv6 custom template to a lower version of Fireware, an error message appears that you must remove the template before you can save the configuration.
- Select Firewall > Firewall Policies or Firewall > Mobile VPN IPSec Policies.
The Policies page you selected opens. - Click Add Policy.
The Add Firewall Policy page opens.
- From the Custom drop-down list, select a policy and click Edit.
The Edit Policy Template page opens. - Edit the policy template.
- Click Save.
- Click .
Or, select Edit > Add Policies.
The Add Policy dialog box opens. - Click Manage Custom.
The Manage Custom Policy Templates dialog box opens.
- Select the policy template you want to edit and click Edit.
The Edit Policy Template dialog box opens.
- Edit the policy.
- Click OK.