# Configuring Flows

To create and configure flows from the FlowVision GUI, click **Configuration** > **Flow Manager**.

The Flow Manager page shows the number of existing flows and a table showing the flow details, such as, device ID, alias, description of the flow, status, the available counters, the action performed, and an option to edit and delete flows.

The following image shows the Flow Manager page:

![Flow Manager ](https://content.gitbook.com/content/moNcceKhbbta4BgME4L5/blobs/2KMGr81mMjATBVMO8NeX/Screenshot%202022-08-01%20at%204.49.58%20PM.png)

### Creating New Flows

To create a new flow, click the ![](https://content.gitbook.com/content/moNcceKhbbta4BgME4L5/blobs/EVJaS017goQlgd8VWTXt/add_device_icon.png)button on the top right corner of the Flow Manager page. The Add Flow page displays.

![Add Flow Page](https://content.gitbook.com/content/moNcceKhbbta4BgME4L5/blobs/BnS6SXydDqPt9lCLjVCc/Screenshot%202022-08-01%20at%204.51.31%20PM.png)

Specify the Flow Name, Description for the Flow, and select the Action.&#x20;

#### Adding Source Ports

To add source ports,

1. Click the **From Ports** button on the Add Flow page.\
   The Add From Ports window displays.<br>

   <figure><img src="https://content.gitbook.com/content/moNcceKhbbta4BgME4L5/blobs/6jlAsX0jzD1HLloJdwFx/Screenshot%202023-07-17%20at%2011.30.35%20AM.png" alt=""><figcaption><p>From port addition page</p></figcaption></figure>
2. Select a device to list all the ports available for that device.
3. Select the ports you need to add as source ports.&#x20;
4. Click Add to add the ports to the list of source ports.\
   The added ports are displayed in the field below the **From Ports** button on the Add Flow page.

#### Adding Rules

To add rules,&#x20;

1. Click the **Rules** button on the Add Flow page.\
   The Add Rule window displays.<br>

   <figure><img src="https://content.gitbook.com/content/moNcceKhbbta4BgME4L5/blobs/97W0rvAIx3LEPpCGfC1V/Screenshot%202022-09-15%20at%208.29.53%20AM.png" alt=""><figcaption><p>Add rule pop-up window</p></figcaption></figure>
2. Specify values for the following, in the **Rule** tab:
   * **Rule ID** - specify a name for the new rule.
   * **Description** - enter a description of the new rule to show its purpose.
   * **Action** - select an action for the rule. The available options are Permit, Deny, Match All.
   * **Type** - select the IP address type. Available options are IPV4 and IPV6.
   * **GTP** - enable or disable the GTP-based filter option on a rule
   * **Counters** - enable or disable counters.
   * **IP** **Protocol** - select the IP protocol for the rule. The available options are - IP, TCP, and UDP.
   * **Source** **IP** - specify the source IP for the rule.
   * **Source** **Mask** - specify the source mask for the rule.
   * **Destination IP** - specify the destination IP for the rule.
   * **Destination Mask** - specify the destination mask for the rule.
   * **TTL** - specify the time-to-live value for the packets in the system.
   * **VLAN** - specify the VLAN details.
   * **TOS** - specify the type of service.
   * **Override To Ports** - select the override option for ports.
   * **Advanced Action** - specify the override actions. The available options are override-push-vlan, override-pop-vlan, and None. If you select override-push-vlan, you must also provide the VLAN ID, in the VLAN ID field.
3. Specify values in the **Template** tab. Either specify the rule options in the first tab or select the pre-defined template on the second tab. For details on the template, refer to [Template](https://aviznetworks.gitbook.io/opbnos-r2.6/aviz-flowvision-graphical-user-interface-guide/configuration/configuring-rule-templates)
4. Click **Add** to add the rule.

The added rules are displayed in the table below the Rules button on the Flow Manager page.

<figure><img src="https://content.gitbook.com/content/moNcceKhbbta4BgME4L5/blobs/dwbTIHDiZ0A4iHAyYmke/Screenshot%202023-07-13%20at%201.15.46%20PM.png" alt=""><figcaption><p>Added rule displayed under Rules tab</p></figcaption></figure>

#### Adding Destination Ports

To add destination ports,

1. Click the **To Ports** button on the Add Flow page.\
   The Add To Ports window displays.<br>

   <figure><img src="https://content.gitbook.com/content/moNcceKhbbta4BgME4L5/blobs/ZREs9tmauCH7qnWvFH2L/Screenshot%202023-07-17%20at%2011.29.26%20AM.png" alt=""><figcaption><p>To port addition page</p></figcaption></figure>
2. Select a device to list all the ports available for that device.
3. Select the ports you need to add as destination ports.&#x20;
4. Click Add to add the ports to the list of destination ports.\
   The added ports are displayed in the field below the **To Ports** button on the Add Flow page.

After adding the source ports, destination ports, and rules, click **Create Flow** on the Add Flow page. This action creates a new flow.

<figure><img src="https://content.gitbook.com/content/moNcceKhbbta4BgME4L5/blobs/00Iy4CI1gJEhJ57rB02t/Screenshot%202022-08-13%20at%201.48.43%20PM.png" alt=""><figcaption><p>Page after Flow created</p></figcaption></figure>

### Editing and Deleting the existing Flow

To edit an existing flow, click the ![](https://content.gitbook.com/content/moNcceKhbbta4BgME4L5/blobs/qjXCEXAH8cQ1kH40FoyB/edit_icon.png)icon and make your changes in the **flow** page. Once the modification is done, click the update button

<figure><img src="https://content.gitbook.com/content/moNcceKhbbta4BgME4L5/blobs/Jxbq4XDa8sDXkVwCEhOM/Screenshot%202022-09-15%20at%209.24.40%20PM.png" alt=""><figcaption><p>Flow updated successfully</p></figcaption></figure>

To delete the existing flow, click the ![](https://content.gitbook.com/content/moNcceKhbbta4BgME4L5/blobs/vJ1nghPBBlYKdC6uYIqR/delete_backup_icon.png)icon.

<figure><img src="https://content.gitbook.com/content/moNcceKhbbta4BgME4L5/blobs/uneXm6XzWMrTJqyZhGgS/Screenshot%202022-08-13%20at%205.09.20%20PM.png" alt=""><figcaption><p>Flow deleted successfully</p></figcaption></figure>
