Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:dpi:dpi_options:opt_statistics:statistics_asn:start [2023/08/28 15:15] – edrudichgmailcom | en:dpi:dpi_options:opt_statistics:statistics_asn:start [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Configuring autonomous systems ====== | ||
- | {{indexmenu_n> | ||
- | The up-to-date list that specify IP addresses that belong to each autonomous system is loaded on software update from **RIPE DB.** The global list of these links is in the file **/ | ||
- | <note warning> | ||
- | |||
- | One may need to modify this list occasionally - to improve NetFlow reports and for use in other services. | ||
- | |||
- | 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 | ||
- | < |