Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
en:dpi:dpi_options:opt_statistics:statistics_asn [2020/02/05 17:30] – ↷ Page moved from en:dpi:dpi_options:base_functionality:opt_statistics:statistics_asn to en:dpi:dpi_options:opt_statistics:statistics_asn lexx26 | en:dpi:dpi_options:opt_statistics:statistics_asn [2024/09/26 15:29] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Configuring autonomous systems ====== | ====== Configuring autonomous systems ====== | ||
+ | {{indexmenu_n> | ||
+ | During software updates for SSG, an up-to-date correspondence list between AS numbers (autonomous systems) and IP addresses is downloaded from the RIR (Regional Internet Registry). | ||
+ | The global correspondence list for IPv4 is located in the file ''/ | ||
+ | |||
+ | <note warning> | ||
+ | |||
+ | Updating the AS list for IPv4 is possible dynamically during '' | ||
+ | Values: | ||
+ | * 0 (default) — cloud update is disabled; | ||
+ | * 1 — main list; | ||
+ | * 2, 3, etc. — reserved. | ||
+ | |||
+ | During the system' | ||
+ | |||
+ | The list of changes is prepared in text format. Each record is placed in a new line: | ||
+ | |||
+ | < | ||
+ | CIDR AS_number | ||
+ | CIDR AS_number | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | Here CIDR specifies the IP addresses range that belongs to the specified system. | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | This file is converted into the internal format by **as2bin** utility. It is placed to **/ | ||
+ | |||
+ | < | ||
+ | cat aslocal.txt|as2bin / | ||
+ | service fastdpi reload | ||
+ | </ | ||
+ | |||
+ | Loading the modifications does not require DPI restart (only reload). | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | ===== Examples for IPv4 ===== | ||
+ | |||
+ | To add local addresses to the operator' | ||
+ | |||
+ | < | ||
+ | vi aslocal.txt | ||
+ | 10.0.0.0/8 64511 | ||
+ | 172.16.0.0/ | ||
+ | 192.168.0.0/ | ||
+ | cat aslocal.txt|as2bin / | ||
+ | service fastdpi reload | ||
+ | </ | ||
+ | |||
+ | Here 64511 is the operator' | ||
+ | |||
+ | To apply specific policies to operator' | ||
+ | |||
+ | < | ||
+ | vi aslocal.txt | ||
+ | 10.0.0.1/32 64512 | ||
+ | 10.0.0.2/32 64512 | ||
+ | cat aslocal.txt|as2bin / | ||
+ | service fastdpi reload | ||
+ | </ | ||
+ | |||
+ | In order to avoid overlap of the new autonomous systems' | ||
+ | < | ||
+ | 64496..64511 are reserved for use in documentation and examples | ||
+ | 64512..65534 are reserved for private purposes | ||
+ | </ | ||
+ | |||
+ | ===== Examples for Ipv6 ===== | ||
+ | |||
+ | There is no analog to aslocal.bin for IPv6, as there is no way to merge these structures like in IPv4 case. It is necessary to add subnets to the general list: | ||
+ | |||
+ | - convert to text < | ||
+ | - add your subnets to text of list.txt | ||
+ | - merge back < | ||
+ | |||
+ | <note important> |