Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
en:dpi:dpi_bestpractice:categor_lists [2021/11/11 00:12] – kuligina | en:dpi:dpi_bestpractice:categor_lists [2023/08/28 14:54] (current) – removed elena.krasnobryzh | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <note tip> | ||
- | <note important> | ||
- | ====== 6 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. |