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:start [2020/02/10 13:46] – edrudichgmailcom | en:dpi:dpi_options:opt_li:li_settings:start [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== 2 Configuration ====== | ||
- | {{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) | ||
- | < | ||
- | This is a " | ||
- | |||
- | If you set the configuration parameter | ||
- | < | ||
- | the memory for the record buffer is allocated in advance (on 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=/ | ||
- | ajb_save_ip=192.168.0.0/ | ||
- | </ | ||
- | Here: | ||
- | * ajb_save_udpi=1 - activate the traffic recording for a list of protocols | ||
- | * ajb_udpi_path=/ | ||
- | * ajb_save_udpi_proto=OSPFIGP: | ||
- | |||
- | <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=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: | ||
- | * ajb_save_url=-1 - activate recording of HTTP metadata | ||
- | * ajb_url_path=/ | ||
- | * ajb_url_ftimeout=30 - recording frequency | ||
- | * ajb_save_url_format=ts: | ||
- | |||
- | < | ||
- | ts - is a time stamp | ||
- | prg - is: id of the active services at the moment of request | ||
- | login - subscriber' | ||
- | ipsrc - subscriber' | ||
- | ipdst - host IP address (that of the request' | ||
- | host - the host name (Host field) | ||
- | path - the path to the requested resource (URI) | ||
- | ref - where from (Referer field) | ||
- | uagent - browser' | ||
- | cookie - Cookie | ||
- | ssid - session ID (for binding with Netflow/ | ||
- | tphost - data type of Host (HTTP=1/ | ||
- | blockd - bit mask, sign of blocking/ | ||
- | method - method 1 - GET, 2 - POST, 3 - PUT, 4 - DELETE (avaliable starting from 6.0 version) | ||
- | </ | ||
- | |||
- | ===== SSL/TLS ===== | ||
- | To record SSL/TLS requests' | ||
- | <code bash> | ||
- | 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: | ||
- | * ajb_save_url=-1 - activate recording of HTTP metadata | ||
- | * ajb_url_path=/ | ||
- | * ajb_url_ftimeout=30 - recording frequency | ||
- | * ajb_save_url_format=ts: | ||
- | |||
- | < | ||
- | ts - is a time stamp | ||
- | prg - id of the active services at the moment of request | ||
- | login - subscriber' | ||
- | ipsrc - subscriber' | ||
- | ipdst - host IP address (that of the request' | ||
- | host - the host name (Host/ | ||
- | path - the path to the requested resource (URI) | ||
- | ref - where from (Referer field) | ||
- | uagent - browser' | ||
- | cookie - Cookie | ||
- | ssid - session ID (for binding with Netflow/ | ||
- | tphost - data type of Host (HTTP=1/ | ||
- | blockd - bit mask, sign of blocking/ | ||
- | method - method 1 - GET, 2 - POST, 3 - PUT, 4 - DELETE (avaliable starting from 6.0 version) | ||
- | </ | ||
- | |||
- | ===== SIP ===== | ||
- | |||
- | To record SIP requests' | ||
- | <code bash> | ||
- | ajb_save_sip=1 | ||
- | ajb_sip_ftimeout=15 | ||
- | ajb_sip_path=/ | ||
- | ajb_save_sip_format=ts: | ||
- | </ | ||
- | Here: | ||
- | * ajb_save_sip=1 activate the SIP metadata recording in a file | ||
- | * ajb_sip_path==/ | ||
- | * ajb_sip_ftimeout=15 record timeout between files | ||
- | * ajb_save_sip_format=ts: | ||
- | < | ||
- | ts - time stamp | ||
- | ssid - session identifier (it's used to link to Netflow/ | ||
- | ipsrc - subscribers' | ||
- | ipdst - server IP | ||
- | login - subscribers' | ||
- | msg - message type | ||
- | scode - status-code | ||
- | from - phone/ | ||
- | to - phone/ | ||
- | callid - call identifier | ||
- | uagent - type of handset (User-Agent) | ||
- | </ |