Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
en:dpi:dpi_options:opt_capture:capt_make [2020/02/05 17:32] – ↷ Page moved from en:dpi:dpi_options:base_functionality:opt_capture:capt_make to en:dpi:dpi_options:opt_capture:capt_make lexx26 | en:dpi:dpi_options:opt_capture:capt_make [2024/09/26 15:29] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Preparing white list ====== | ====== Preparing white list ====== | ||
+ | {{indexmenu_n> | ||
+ | The allowed resources list is created in two steps: first, **a text file** with the list of resources is created. Second, this **file is converted** into internal dictionary' | ||
+ | <note tip>The following utilities are used for conversion: | ||
+ | * url2dic - for URL, SNI, CN | ||
+ | * ip2bin - for IP | ||
+ | |||
+ | Reverse conversion utilities: | ||
+ | |||
+ | * dic2host - to convert dic files with URL, SNI, CN to a list of domains | ||
+ | * dic2star - to convert dic files from SNI, CN to a list of domains with * | ||
+ | * bin2ip - to convert dic files from IP | ||
+ | |||
+ | To create a white list for payment systems, we recommend using a ready-made list. [[https:// | ||
+ | </ | ||
+ | |||
+ | After the text file is converted you need to move the lists to the DPI configuration directory: | ||
+ | |||
+ | <code bash>mv my_url_list.bin / | ||
+ | mv my_cn_list.bin / | ||
+ | mv my_ip_list.bin | ||
+ | mv my_sni_list.bin | ||
+ | |||
+ | <note important> | ||
+ | Any of the lists may be missing, but for restricting https resources, the SNI list is mandatory</ | ||
+ | |||
+ | ===== The file format of the whitelisted resources' | ||
+ | |||
+ | Each line contains one URL (no < | ||
+ | <code bash> | ||
+ | 3dmx.net | ||
+ | *.3dmx.net | ||
+ | </ | ||
+ | |||
+ | To convert into the internal format: | ||
+ | <code bash>cat my_url_list.txt|url2dic my_url_list.dic</ | ||
+ | |||
+ | ===== The file format of the whitelisted names in SSL certificates (Common name): ===== | ||
+ | |||
+ | Each line contains one [[en: | ||
+ | <code bash> | ||
+ | www.vasexpertsdpi.com</ | ||
+ | |||
+ | To convert into the internal format: | ||
+ | <code bash>cat my_cn_list.txt|url2dic my_cn_list.dic</ | ||
+ | |||
+ | ===== The file format of the whitelisted SNI (HTTPS) ===== | ||
+ | |||
+ | Each line contains one SNI (without < | ||
+ | |||
+ | <code bash> | ||
+ | *.qiwi.ru</ | ||
+ | |||
+ | To convert into the internal format: | ||
+ | <code bash>cat my_sni_list.txt|url2dic my_sni_list.bin</ | ||
+ | |||
+ | < | ||
+ | |||
+ | ====== File Format for White List of IP Addresses, CIDR: ====== | ||
+ | Starting from version 12.4, the creation of a list is supported based on: | ||
+ | * IPv4 < | ||
+ | * IPv4 | ||
+ | * IPv6 < | ||
+ | * IPv6 | ||
+ | * CIDR IPv4/IPv6 | ||
+ | |||
+ | Each line of the file contains only one entry, example for IPv4: | ||
+ | <code bash> | ||
+ | 78.47.115.34 443 | ||
+ | 95.211.6.93 | ||
+ | 95.211.4.0/ | ||
+ | </ | ||
+ | |||
+ | Convert to internal format: | ||
+ | <code bash>cat my_ip_list.txt | ip2bin my_ip_list.bin</ | ||
+ | |||
+ | < |