Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:dpi:dpi_components:platform:subscriber_management:subsman_cmd [2018/03/18 11:55] – created lexx26 | en:dpi:dpi_components:platform:subscriber_management:subsman_cmd [2026/07/02 14:11] (current) – ↷ Links adapted because of a move operation elena.krasnobryzh | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | {{tag> |
| + | ====== | ||
| + | {{indexmenu_n> | ||
| + | Service profiles are created, modified, and deleted using the '' | ||
| + | Services are divided into three types: | ||
| + | * **Without a profile** — the service settings are described in the DPI configuration or do not require a description, | ||
| + | * **Anonymous (unnamed) profiles** — the service is not created in advance; its parameters are specified when the service is assigned to a subscriber in JSON format | ||
| + | * **Named profiles** — the service is created before being assigned to a subscriber and is stored in the internal DPI database — [[en: | ||
| + | **Named profiles** have the following advantages over anonymous profiles: | ||
| + | - Simplify subscriber administration | ||
| + | - Allow finding subscribers with a required profile by profile name | ||
| + | - Allow updating the profile for all subscribers using a given profile simply by changing the profile parameters | ||
| + | - Allow controlling the limit on the number of unique profiles (maximum 65535) | ||
| + | |||
| + | **Anonymous (unnamed) profiles**, in turn, have the following advantages: | ||
| + | - No profile management is required (there is no need to create or delete profiles); the profile is automatically removed when the subscriber or the subscriber' | ||
| + | - No profile name needs to be invented | ||
| + | |||
| + | ===== Command syntax ===== | ||
| + | General command format: | ||
| + | <code bash> | ||
| + | |||
| + | Command parameter description: | ||
| + | ^ Parameter | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | < | ||
| + | |||
| + | =====Service list===== | ||
| + | |||
| + | <note tip>When blocking services (4, 16, 49) are activated, only TCP traffic is blocked. To block UDP traffic as well, [[en: | ||
| + | |||
| + | ^ ID ^ Brief description | ||
| + | | 1 | bonus program | ||
| + | | 2 | advertising | ||
| + | | 3 | ad blocking | ||
| + | | 4 | blacklist filtering | ||
| + | | 5 | whitelist and Captive Portal | ||
| + | | 6 | notification via HTTP redirect | ||
| + | | 7 | caching | ||
| + | | 8 | DDoS protection passed | ||
| + | | 9 | RADIUS accounting / NetFlow statistics collection for billing | ||
| + | | 10 | DDoS protection | ||
| + | | 11 | CGNAT and NAT 1:1 | [[en: | ||
| + | | 12 | PCAP traffic recording | ||
| + | | 13 | mini Firewall | ||
| + | | 14 | traffic diversion to a TAP interface | ||
| + | | 15 | special subscriber (all traffic is assigned to cs0; filtering (Service 4) is not applied for the vChannel and the common channel) | [[en: | ||
| + | | 16 | whitelist and redirection to the Captive Portal without Internet access | ||
| + | | 17 | traffic mirroring to the specified VLAN | [[en: | ||
| + | | 18 | session policing for specific protocols and traffic class identification at the channel and subscriber levels | ||
| + | | 19 | DNS response substitution; | ||
| + | | 49 | IPv6 traffic blocking | ||
| + | | 50 | marketing campaign participant with notification via HTTP redirect | ||
| + | | 51 | reserved (internal service) | ||
| + | | 254 | VRF | [[en: | ||
| + | |||
| + | ====== Creating, enabling, and disabling services ====== | ||
| + | |||
| + | <note important> | ||
| + | |||
| + | Creating a named profile for Service 6 (one-time redirect), operator news notification, | ||
| + | <code bash> | ||
| + | fdpi_ctrl load profile --service 6 --profile.name redir_to_news --profile.json '{ " | ||
| + | fdpi_ctrl load --service 6 --profile.name redir_to_news --ip 192.168.0.1 | ||
| + | fdpi_ctrl load --service 6 --profile.name redir_to_news --login test | ||
| + | </ | ||
| + | |||
| + | <note important> | ||
| + | |||
| + | Assigning Service 6 without a profile (the service parameters are taken from the DPI configuration file): | ||
| + | <code bash> | ||
| + | fdpi_ctrl load --service 6 --ip 192.168.0.1 | ||
| + | fdpi_ctrl load --service 6 --login test | ||
| + | </ | ||
| + | |||
| + | Assigning Service 6 with an anonymous profile (an unnamed profile that exists until the service is disabled for the subscriber): | ||
| + | <code bash> | ||
| + | fdpi_ctrl load --service 6 --profile.json '{ " | ||
| + | fdpi_ctrl load --service 6 --profile.json '{ " | ||
| + | </ | ||
| + | |||
| + | Disabling Service 6 for a specific subscriber: | ||
| + | <code bash> | ||
| + | fdpi_ctrl del --service 6 --ip 192.168.0.1 | ||
| + | fdpi_ctrl del --service 6 --login test | ||
| + | </ | ||
| + | |||
| + | ====== Service management commands ====== | ||
| + | |||
| + | Get a list of all subscribers with Service 6 enabled: | ||
| + | <code bash> | ||
| + | |||
| + | Find subscribers with Service 6 assigned using a specific named profile: | ||
| + | <code bash> | ||
| + | fdpi_ctrl list all --service 6 --profile.name redir_to_news | ||
| + | </ | ||
| + | |||
| + | Get information for a specific IP address for Service 6: | ||
| + | <code bash> | ||
| + | |||
| + | Delete a named profile (the profile must not be assigned to any subscribers before deletion): | ||
| + | <code bash> | ||
| + | fdpi_ctrl del profile --service 6 --profile.name redir_to_news | ||
| + | </ | ||
| + | |||
| + | Modify the settings of a service with a named profile (the new settings will be applied to all subscribers using the specified service profile): | ||
| + | <code bash> | ||
| + | fdpi_ctrl load profile --service 6 --profile.name redir_to_news --profile.json '{ " | ||
| + | </ | ||
| + | |||
| + | Display all created profiles for all services: | ||
| + | <code bash> | ||
| + | fdpi_ctrl list all profile --service | ||
| + | </ | ||
| + | |||
| + | When specifying an IP list, multiple options can be used simultaneously: | ||
| + | <code bash> | ||
| + | fdpi_ctrl list --service 6 --ip 192.168.0.1 --ip 192.168.0.2 --file fip_1.txt --ip_range 192.168.0.3-192.168.0.6 --login USER1 | ||
| + | </ | ||
| + | |||
| + | The operation will be applied to all specified entries for which no error occurred. | ||
| + | |||
| + | :!: If an error occurs, previously applied changes are **not** rolled back! | ||
| + | |||
| + | <note tip> | ||