Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:dpi:dpi_options:use_cases:categor_lists:start [2023/08/29 12:53] – created elena.krasnobryzh | en:dpi:dpi_options:use_cases:categor_lists:start [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | <note tip> | ||
| - | <note important> | ||
| - | ====== Categorized lists ====== | ||
| - | {{indexmenu_n> | ||
| - | Service provider' | ||
| - | |||
| - | ====== Getting a list and making a sublist to use ====== | ||
| - | Downloading from Cloud: | ||
| - | < | ||
| - | wget --no-check-certificate https:// | ||
| - | wget --no-check-certificate https:// | ||
| - | gzip -d outcat.lst* | ||
| - | </ | ||
| - | |||
| - | Contents: | ||
| - | < | ||
| - | outcat.lst.dic - categories description | ||
| - | outcat.lst - domain lists by categories | ||
| - | </ | ||
| - | |||
| - | Example: getting a combined list of 4,5 categories: | ||
| - | < | ||
| - | |||
| - | ====== Examples of list activation ====== | ||
| - | ===== Blocking social networks and video hostings for corporate clients ===== | ||
| - | Block resources from the category " | ||
| - | List of categories to which the access will be blocked: \\ | ||
| - | 9 porno_sex \\ | ||
| - | |||
| - | Form a list of the received files: | ||
| - | < | ||
| - | zcat outcat.lst.gz | awk -F ' | ||
| - | |||
| - | fdpi_ctrl load profile --service 4 --profile.name 1_black --profile.json ' | ||
| - | |||
| - | fdpi_ctrl load --service 4 --profile_name 1_black --ip 10.64.66.100 | ||
| - | </ | ||
| - | |||
| - | The task is to block social networks and other resources not required for work in the organization. | ||
| - | < | ||
| - | the list of categories to be blocked: | ||
| - | 9        | ||
| - | 12 music_sites | ||
| - | 13 game_sites | ||
| - | 16 social_networks | ||
| - | 27 miners_pools_curs_etc | ||
| - | 38 forex | ||
| - | 43 gambling | ||
| - | |||
| - | Form the list of received files: | ||
| - | mkdir /home/lst; cd /home/lst | ||
| - | grep -P ' | ||
| - | |||
| - | Create a profile: | ||
| - | fdpi_ctrl load profile --service 4  --profile.name 1_black --profile.json '{ " | ||
| - | here, | ||
| - | http:// | ||
| - | |||
| - | Assign to subscriber: | ||
| - | fdpi_ctrl load --service 4 --profile_name 1_black --ip 192.168.0.1 | ||
| - | </ | ||
| - | ===== Providing access only to certain sites categories ===== | ||
| - | The task is to limit subscriber access by only certain categories of sites. | ||
| - | < | ||
| - | the list of categories to which the access will be provided: | ||
| - | 4        | ||
| - | 19 goverment | ||
| - | 25 museum | ||
| - | 26 medicina_hostitals | ||
| - | 32 child_sites | ||
| - | |||
| - | Form the list of the received files: | ||
| - | mkdir / | ||
| - | grep -P ' | ||
| - | |||
| - | Create profile: | ||
| - | fdpi_ctrl load profile --service 5  --profile.name 1_white --profile.json '{ " | ||
| - | here, | ||
| - | http:// | ||
| - | |||
| - | Assign to subscriber: | ||
| - | fdpi_ctrl load --service 5 --profile.name 1_white --ip 192.168.0.1 | ||
| - | </ | ||
| - | |||
| - | ====== Questions ====== | ||
| - | * How often is the list updated? - Once a day. We plan to reduce the update period. | ||