Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:dpi:dpi_options:use_cases:qs_rateplans [2023/08/29 12:23] – [Preparing Captive Portal, for zero balance and access to payment systems] edrudichgmailcom | en:dpi:dpi_options:use_cases:qs_rateplans [2024/09/26 15:29] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
{{indexmenu_n> | {{indexmenu_n> | ||
====== Introduction ====== | ====== Introduction ====== | ||
- | To implement [[en: | + | To implement [[en: |
* ** rate_10M ** - basic tariff plan that is used after subscriber authorization. | * ** rate_10M ** - basic tariff plan that is used after subscriber authorization. | ||
* ** blocked ** - a tariff plan that is used to block a subscriber and provide access only for certain protocols. His name must be passed to the Radius-Reject. | * ** blocked ** - a tariff plan that is used to block a subscriber and provide access only for certain protocols. His name must be passed to the Radius-Reject. | ||
After blocking, the subscriber is assigned (Service 5) ** my_white_list ** - Allow list of resources to which he has access to pay for the service. It also redirects HTTP resources to the Captive Portal. | After blocking, the subscriber is assigned (Service 5) ** my_white_list ** - Allow list of resources to which he has access to pay for the service. It also redirects HTTP resources to the Captive Portal. | ||
- | <note important> | + | <note important> |
===== Traffic distribution by class for the tariff plan ===== | ===== Traffic distribution by class for the tariff plan ===== | ||
- | To mark the priorities, use the option [[en: | + | To mark the priorities, use the option [[en: |
1. Create a **protocols.txt** file with a description of the protocol groups that we want to separate from the general traffic, and the priorities (classes) assigned to them: | 1. Create a **protocols.txt** file with a description of the protocol groups that we want to separate from the general traffic, and the priorities (classes) assigned to them: | ||
Line 37: | Line 37: | ||
</ | </ | ||
===== Creating a tariff plan ===== | ===== Creating a tariff plan ===== | ||
- | To organize the subscriber bandwidth according to the tariff plan, use the option [[en: | + | To organize the subscriber bandwidth according to the tariff plan, use the option [[en: |
\\ | \\ | ||
1. For each tariff plan of the subscriber in the billing, create a configuration file with a description of its settings for DPI. | 1. For each tariff plan of the subscriber in the billing, create a configuration file with a description of its settings for DPI. | ||
Line 74: | Line 74: | ||
</ | </ | ||
- | 3. So that our settings for subscribers, | + | 3. So that our settings for subscribers, |
< | < | ||
udr=1 | udr=1 | ||
Line 88: | Line 88: | ||
1.Create a description of the tariff plan for subscribers in blocked.cfg blocking. | 1.Create a description of the tariff plan for subscribers in blocked.cfg blocking. | ||
- | Allow only cs0 traffic [[en: | + | Allow only cs0 traffic [[en: |
< | < | ||
htb_inbound_root=rate 10mbit | htb_inbound_root=rate 10mbit | ||
Line 115: | Line 115: | ||
</ | </ | ||
- | 3. Create a list of sites available in the Captive Portal mode. More details in the description of the [[en: | + | 3. Create a list of sites available in the Captive Portal mode. More details in the description of the [[en: |
Create a file ** my_white_list.txt ** from the url of payment system sites. | Create a file ** my_white_list.txt ** from the url of payment system sites. | ||
Line 155: | Line 155: | ||
===== Integration with billing without Radius ===== | ===== Integration with billing without Radius ===== | ||
- | <note important> | + | <note important> |
1. We carry out integration with billing | 1. We carry out integration with billing | ||
Line 196: | Line 196: | ||
fdpi_ctrl del --service 5 --ip $ {ip_address} | fdpi_ctrl del --service 5 --ip $ {ip_address} | ||
</ | </ | ||
- | ~~ DISCUSSION | Help us improve the documentation: | + |