Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:dpi:dpi_components:dpiui:user_guide:vas_cloud_services:custom_protocols [2024/09/26 15:29] – created - external edit 127.0.0.1 | en:dpi:dpi_components:dpiui:user_guide:vas_cloud_services:custom_protocols [2025/05/21 12:12] (current) – elena.krasnobryzh | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Custom | + | {{indexmenu_n> |
- | {{indexmenu_n> | + | ======Custom |
- | To go to the " | + | Protocols/ |
+ | - **Built-in | ||
+ | - **Cloud protocols** created by VAS Experts — are periodically updated from the VAS Cloud. This ensures that popular applications remain up-to-date as their behavior changes. | ||
+ | - **Custom (user-defined) protocols** — protocols created by users via the GUI using VAS Cloud tools. These have higher priority than those loaded from the VAS Cloud, and within them, IP:PORT takes precedence over IP and CIDR. It is possible to add a protocol based on IP, SNI, or AS. | ||
- | {{ en: | + | Users can add protocols based on IP, SNI, and AS. Custom protocols override Built-in and Cloud protocols. |
- | The section "Custom Protocols" includes three blocks: " | + | Adding a new protocol is done in the **VAS Cloud Services** → **Custom Protocols** section in 3 steps: |
- | ===== Hardware | + | =====Step 1. Adding a New Protocol===== |
+ | {{ : | ||
+ | On the **Protocols** panel, you can: | ||
+ | - **Add list item.** | ||
+ | * Fill in the following parameters: | ||
+ | * **Name** — a mandatory field. It must contain only letters, numbers, or their combinations. Each name is automatically prefixed with “cp_” (CP stands for Custom Protocol), which is mandatory; | ||
+ | * **Custom Number** — a mandatory unique field, limited to the range of 1 to 1024; | ||
+ | * **Port** — filled in automatically; | ||
+ | * **Description** — an optional field; | ||
+ | * **Main List** — if this parameter is ignored, the default list type is “test.” The flags “main” and “test” are used for debugging the protocol (“test”) and subsequently launching it for policing subscribers (“main”). Usually, the test protocol is first uploaded to the DPI test stand, and after debugging is complete, the “main” flag is set, and it is uploaded to all other DPIs.\\ {{ : | ||
+ | - **Enable or disable the protocol.**\\ Performing any actions with a disabled protocol (step 7) automatically activates it. These changes are also reflected in the main section of the “User Interface” as an activation button next to the “Name” column of each protocol in the list. | ||
+ | - **Import data from a file.**\\ To facilitate the completion of the protocol creation fields, a template is provided that can be exported in Excel format, filled out, and uploaded in this window. After uploading the file, the data cannot be changed; only the protocol can be deleted.\\ {{ : | ||
+ | - **Delete an item from the list.** | ||
+ | - **Clear the list.** | ||
+ | - **Refresh the list.** | ||
+ | - **Enable and disable list items.** | ||
+ | - **Modify a list item.** | ||
+ | - **Export the list.** Available formats: Excel, CSV, PDF, PNG. | ||
- | This block contains | + | =====Step 2. Add Resources Defining the Protocol===== |
+ | {{ : | ||
+ | On the **Resource List** panel, you can: | ||
+ | - **Add list item.**\\ Fill in the following parameters: | ||
+ | * **Type** — a mandatory field, filled by selecting from the offered list (Auto, IP, SNI, ASN (only external AS can be specified, e.g., Facebook or Google)); | ||
+ | * **URI (Uniform Resource Identifier)** — a mandatory field, how to fill it depends on the type of resource (IP or SNI);\\ Example:\\ Type IP — 201.1.1.1.\\ Type SNI — google.com.\\ {{ : | ||
+ | - **Enable or disable the resource.**\\ Performing any actions with a disabled protocol (step 7) automatically activates it. These changes are also reflected in the main section of the “User Interface” as an activation button next to the “Name” column of each protocol in the list. | ||
+ | - **Import data from a file.** and **Check resource.**\\ To facilitate the completion of the protocol creation fields, a template is provided that can be exported in Excel format, filled out, and uploaded in this window. After uploading the file, the data cannot be changed; only the protocol can be deleted.\\ {{ : | ||
+ | - **Delete list items.** | ||
+ | - **Clear the list.** | ||
+ | - **Refresh the list.** | ||
+ | - **Enable and disable list items.** | ||
+ | - **Modify a list item.** | ||
+ | - **Export the list.** Available formats: Excel, CSV, PDF, PNG. | ||
- | Equipment in this list cannot be added or removed. The pivot table can be updated and edited | + | =====Step 3. After Preparing |
+ | <note important> | ||
- | At the bottom of the block there is a button for exporting the list to a user-selected format (Excel, CSV, PDF, PNG). | + | {{ : |
- | ===== Protocols ===== | + | On the **Hardwares** panel, you can: |
+ | - **Refresh the list.** | ||
+ | - **Enable and disable list items.** | ||
+ | - **Edit a list item.** | ||
+ | - **Export the list.** Available formats: Excel, CSV, PDF, PNG. | ||
- | <note tip> | + | =====Logs===== |
- | + | In **VAS Cloud Services** → **Logs** section, | |
- | The " | + | You can delete |
- | + | ||
- | * ** Adding a list item ** | + | |
- | + | ||
- | To add an item to the list, you must fill in the fields: | + | |
- | + | ||
- | // name // - is a required field, containing only Latin letters, numbers or their combination. At the beginning of each name, by default, the prefix " | + | |
- | + | ||
- | // user number // - is a required field, as well as unique and limited to the range from 1 to 1024; | + | |
- | + | ||
- | // port // - filled in automatically; | + | |
- | + | ||
- | // description // - is not a required field; | + | |
- | + | ||
- | // main list // - if this parameter is ignored, the default list type is test; | + | |
- | + | ||
- | At the very bottom of the window. there are the //" | + | |
- | + | ||
- | {{ en: | + | |
- | + | ||
- | + | ||
- | * ** Startup and shutdown ** | + | |
- | + | ||
- | Or activation and deactivation of the protocol, allows the user to enable the selected protocol for further work or disable it. Any action with a disabled protocol will automatically activate it. These changes are also displayed in the main section of the " | + | |
- | + | ||
- | <note important> | + | |
- | Example: for host '' | + | |
- | Detailed example in section [[en: | + | |
- | + | ||
- | * ** Import from file ** | + | |
- | + | ||
- | For the convenience of filling out the fields for creating a protocol, a template is provided that can be downloaded in excel format, filled in and downloaded back. It is impossible to change the data after downloading the file, you can only delete the protocol. | + | |
- | + | ||
- | {{ en: | + | |
- | + | ||
- | + | ||
- | * ** Delete ** - the ability to delete selected protocols, the selection of which is carried out by checking the box in the window located in the main section of the user interface. This action can also be performed by pressing the button in the form of an image of a "trash can", which is located next to the " | + | |
- | + | ||
- | * ** Clearing the list ** - deleting all protocols in the list; | + | |
- | + | ||
- | * ** Update list ** - updates the list; | + | |
- | + | ||
- | Below is a list of all user-created protocols, which can be filtered by name, user number, port, list type and description. You can change the protocol using the button located next to the " | + | |
- | + | ||
- | At the bottom of the block there is a button for exporting the list to a user-selected format (Excel, CSV, PDF, PNG) | + | |
- | + | ||
- | ====Example of prioritization of a custom protocol over a cloud protocol==== | + | |
- | **1. Let's upload two protocols: | + | |
- | + | ||
- | Cloud Protocol: '' | + | |
- | | + | |
- | | + | |
- | + | ||
- | Custom protocol: '' | + | |
- | | + | |
- | | + | |
- | + | ||
- | **2. Result of uploaded lists in DPI:** | + | |
- | + | ||
- | '' | + | |
- | * '' | + | |
- | + | ||
- | '' | + | |
- | * '' | + | |
- | * '' | + | |
- | + | ||
- | **3. The '' | + | |
- | * Subdomains are not affected, example: '' | + | |
- | * '' | + | |
- | + | ||
- | **4. The '' | + | |
- | * Subdomains are not affected, example: '' | + | |
- | * Impact on '' | + | |
- | + | ||
- | **In the cloud** '' | + | |
- | + | ||
- | ===== Resources ===== | + | |
- | + | ||
- | The list of resources depends on the protocol selected by the user from the previous block. | + | |
- | + | ||
- | The " | + | |
- | + | ||
- | * ** Adding an element ** | + | |
- | + | ||
- | To add an item to the list, you must fill in the fields: | + | |
- | + | ||
- | // type // - is a required field, filled in by choosing from the proposed list (ip or sni); | + | |
- | + | ||
- | // uri (Uniform Resource Identifier - a uniform resource identifier) // - is a mandatory field for filling, the filling method of which depends on the " | + | |
- | + | ||
- | P.S. Example of filling in ip type (201.1.1.1), | + | |
- | + | ||
- | {{ en: | + | |
- | + | ||
- | * ** Startup and shutdown ** | + | |
- | + | ||
- | Or activation and deactivation of a resource, allows the user to enable the selected resource for further work or disable it. Performing any actions with a disabled resource leads to its activation automatically. These changes are also displayed in the main section of the user interface as an enable button located in front of the Name column of each resource in the list; | + | |
- | + | ||
- | * ** Import from file ** | + | |
- | + | ||
- | For the convenience of filling out the fields for creating a resource, a template is provided that can be downloaded in excel format, filled in and downloaded back. It is impossible to change the data after downloading the file, you can only delete | + | |
- | + | ||
- | {{ en: | + | |
- | + | ||
- | * ** Delete ** - the ability to delete the selected resources, the selection of which is carried out by checking the box in the window located in the main section of the user interface next to the " | + | |
- | + | ||
- | * ** Clearing | + | |
- | + | ||
- | * ** Update list ** - update the list; | + | |
- | + | ||
- | Below is a list of all user-created resources, which can be filtered by protocol name, type and uri. You can change the protocol using the button located next to the " | + | |
- | + | ||
- | At the bottom of the block there is a button for exporting the list to a user-selected format (Excel, CSV, PDF, PNG). | + | |
+ | {{ : | ||