# Configuring Rule Templates

To view and configure rule templates from the FlowVision GUI, click **Configuration** > **Rule** **Templates**.

The Rule Templates page shows the total number of existing rule templates and a table showing the details of each of these rule templates, such as the name of the template, the action performed, the override action and also an option to edit or delete a rule template.

The following image shows the Rule Templates page:

![Rule Templates page](https://content.gitbook.com/content/Uy210FjW8Gkz8ykjDZrg/blobs/EBPxm8ZFGlTKxwVlAaa7/Screenshot_7.png)

### Creating New Rule Templates

To create a new rule template,

1. Click the ![](https://content.gitbook.com/content/Uy210FjW8Gkz8ykjDZrg/blobs/gIqZjG09Z3R2KLXGZyw3/add_device_icon.png)icon at the top right corner of the Rule Templates page.\
   The Rule Template window displays.\ <br>

   <figure><img src="https://content.gitbook.com/content/Uy210FjW8Gkz8ykjDZrg/blobs/EziqB4is5xGyEp8pKt4D/create_rule_template.png" alt=""><figcaption><p>Template creation page</p></figcaption></figure>
2. Specify values for the following:

   * **Name** - specify a name for the new rule template.
   * **Description** - enter a description of the new rule template to show its purpose.
   * **Action** - select an action for the template. The available options are Permit, Deny, Match All.
   * **Type** - select the IP address type. Available options are IPV4 and IPV6.
   * **Counters** - enable or disable counters.
   * **IP** **Protocol** - select the IP protocol for the template. The available options are - IP, TCP, UDP.
   * **Source** **IP** - specify the source ip for the template.
   * **Source** **Mask** - specify the source mask for the template.
   * **Destination IP** - specify the destination IP for the template.
   * **Destination Mask** - specify the destination mask for the template.
   * **TTL** - specify the time-to-live value for the packets in the system.
   * **VLAN** - specify the VLAN details.
   * **TOS** - specify the type of service.
   * **Advanced Action** - specify the override actions. The available options are override-push-vlan, override-pop-vlan, and None.<br>

   3\. Click **Save** to apply the changes.

### Editing and Deleting Rule Templates

* To edit an existing rule template, click the ![](https://content.gitbook.com/content/Uy210FjW8Gkz8ykjDZrg/blobs/DeVd4eoqOQIEjwiBabO1/edit_icon.png)icon and make your changes in the **Rule Template** window.
*

```
<figure><img src="https://content.gitbook.com/content/Uy210FjW8Gkz8ykjDZrg/blobs/UBTBKWirhOz61qlZIiYW/Screenshot%202022-09-15%20at%208.24.50%20AM.png" alt=""><figcaption><p>Window to edit the existing template</p></figcaption></figure>
```

* To delete a rule template, click the ![](https://content.gitbook.com/content/Uy210FjW8Gkz8ykjDZrg/blobs/LZJUgHE99leQrK6hkZQ4/delete_backup_icon.png)icon.

<figure><img src="https://content.gitbook.com/content/Uy210FjW8Gkz8ykjDZrg/blobs/keAV8I39kopnhrS76Kdq/Screenshot%202022-09-15%20at%208.26.58%20AM.png" alt=""><figcaption><p>Template delete window</p></figcaption></figure>
