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_li:li_settings [2020/02/05 17:36] – ↷ Page moved from en:dpi:dpi_options:base_functionality:opt_li:li_settings to en:dpi:dpi_options:opt_li:li_settings lexx26 | en:dpi:dpi_options:opt_li:li_settings [2025/02/24 15:33] (current) – atereschenko | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
+ | {{indexmenu_n> | ||
+ | The system allows to record the traffic for selected protocols in PCAP format. It can save also metadata of HTTP requests, SIP, FTP in log files. | ||
+ | ====== PCAP ====== | ||
+ | To start recording IP or CIDR traffic (0.0.0.0/0 - to record all traffic) | ||
+ | <code bash> | ||
+ | ajb_save_ip=192.168.0.0/ | ||
+ | </ | ||
+ | This is a " | ||
+ | |||
+ | <note important>'' | ||
+ | |||
+ | If you set the configuration parameter | ||
+ | <code bash> | ||
+ | ajb_reserved=1 | ||
+ | </ | ||
+ | the memory for the record buffer is allocated in advance (at DPI start) and you can start and stop data recording on the run. You only need to change parameters ajb_save_url, | ||
+ | |||
+ | To record the data in PCAP format: please use the following parameters in configuration file **/// | ||
+ | <code bash> | ||
+ | ajb_save_udpi=1 | ||
+ | ajb_save_udpi_proto=OSPFIGP: | ||
+ | ajb_udpi_path=/ | ||
+ | </ | ||
+ | Here: | ||
+ | * // | ||
+ | * // | ||
+ | * // | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | PCAP files index mask | ||
+ | * 0 - not created | ||
+ | * 1 - via IPv4 | ||
+ | * 2 - via IPv6 | ||
+ | * 3 - via both IPv4 and IPv6. | ||
+ | |||
+ | <code bash> | ||
+ | ajb_pcap_ind_mask=0 // not created | ||
+ | ajb_pcap_ind_mask=1 // via IPv4 | ||
+ | ajb_pcap_ind_mask=2 // via IPv6 | ||
+ | ajb_pcap_ind_mask=3 // via both IPv4 and IPv6 | ||
+ | </ | ||
+ | |||
+ | This is a hot parameter. It can be changed on the run by command **service fastdpi reload**. | ||
+ | |||
+ | ====== HTTP ====== | ||
+ | To record HTTP requests' | ||
+ | <code bash> | ||
+ | ajb_save_url=-1 | ||
+ | ajb_save_url_format=ts: | ||
+ | ajb_url_path=/ | ||
+ | ajb_url_ftimeout=30 | ||
+ | </ | ||
+ | Here: | ||
+ | * // | ||
+ | * // | ||
+ | * // | ||
+ | * // | ||
+ | * //ts// - timestamp\\ | ||
+ | * //prg// - id of currently active services\\ | ||
+ | * //login// - subscriber' | ||
+ | * //ipsrc// - IP address of the request source (subscriber)\\ | ||
+ | * //ipdst// - IP address of the request recipient (host)\\ | ||
+ | * //host// - host name (field Host/ | ||
+ | * //path// - path to the requested resource (URI) on the host\\ | ||
+ | * //ref// - referral source (Referer field)\\ | ||
+ | * //uagent// - browser type (User-Agent field)\\ | ||
+ | * //cookie// - cookies (Cookie field)\\ | ||
+ | * //ssid// - session identifier (for connection with Netflow/ | ||
+ | * //tphost// - data type in the Host field (HTTP=1/ | ||
+ | * //blockd// - bit mask, blocking/ | ||
+ | * //method// - method 1 - GET, 2 - POST, 3 - PUT, 4 - DELETE (the field is available from version 6.0) | ||
+ | |||
+ | ====== SSL/TLS ====== | ||
+ | To record SSL/TLS requests' | ||
+ | <code bash> | ||
+ | ajb_save_ssl=-1 | ||
+ | </ | ||
+ | Here flag mask for saving SSL:\\ | ||
+ | * 0 - not saved | ||
+ | * 1 - sni (SSL) | ||
+ | * 2 - cname | ||
+ | * 3 - sni (QUIC) | ||
+ | |||
+ | -1 - to record everything | ||
+ | <code bash> | ||
+ | ajb_ssl_path=/ | ||
+ | ajb_ssl_ftimeout=30</ | ||
+ | Here: | ||
+ | * // | ||
+ | * // | ||
+ | * // | ||
+ | * // | ||
+ | * //ts// - timestamp\\ | ||
+ | * //prg// - id of currently active services\\ | ||
+ | * //login// - subscriber' | ||
+ | * //ipsrc// - IP address of the request source (subscriber)\\ | ||
+ | * //ipdst// - IP address of the request recipient (host)\\ | ||
+ | * //host// - host name (field Host/ | ||
+ | * //path// - path to the requested resource (URI) on the host (where applicable)\\ | ||
+ | * //ref// - referral source (Referer field) (where it is applicable)\\ | ||
+ | * //uagent// - browser type (User-Agent field)(where it is applicable)\\ | ||
+ | * //cookie// - cookies (Cookie field) (where it is applicable)\\ | ||
+ | * //ssid// - session identifier (for connection with Netflow/ | ||
+ | * //tphost// - data type in the Host field (HTTP=1/ | ||
+ | * //blockd// - bit mask, blocking/ | ||
+ | * //method// - method 1 - GET, 2 - POST, 3 - PUT, 4 - DELETE (the field is available from version 6.0) (where it is applicable) | ||
+ | </ | ||
+ | |||
+ | ====== SIP ====== | ||
+ | |||
+ | To record SIP requests' | ||
+ | <code bash> | ||
+ | ajb_save_sip=1 | ||
+ | ajb_sip_ftimeout=15 | ||
+ | ajb_sip_path=/ | ||
+ | ajb_save_sip_format=ts: | ||
+ | </ | ||
+ | Here: | ||
+ | * // | ||
+ | * // | ||
+ | * // | ||
+ | * // | ||
+ | * //ts// - timestamp\\ | ||
+ | * //ssid// - session identifier (for connection with Netflow/ | ||
+ | * //ipsrc// - subscriber' | ||
+ | * //ipdst// - Server IP\\ | ||
+ | * //login// - subscriber' | ||
+ | * //msg// - message type\\ | ||
+ | * //scode// - status code \\ | ||
+ | * //from// - number/id of the caller\\ | ||
+ | * //to// - number/ | ||
+ | * //callid// - call identifier\\ | ||
+ | * //uagent// - type of subscriber device (User-Agent) |