Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:dpi:opt_cgnat:log:start [2023/08/28 14:12] – ↷ Page moved from en:dpi:opt_cgnat:cgnat_log:start to en:dpi:opt_cgnat:log:start elena.krasnobryzh | en:dpi:opt_cgnat:log:start [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== NAT flow export ====== | ||
- | {{indexmenu_n> | ||
- | ===== 1 Export NAT flows in IPFIX (Netflow 10) ===== | ||
- | {{indexmenu_n> | ||
- | For data analisys on NAT flows on external systems IPFIX export is available (aka netflow v10). | ||
- | |||
- | Settings of NAT flows export: | ||
- | <code ini> | ||
- | ipfix_dev=em1 | ||
- | ipfix_nat_udp_collectors=1.2.3.4: | ||
- | ipfix_nat_tcp_collectors=1.2.3.6: | ||
- | </ | ||
- | here | ||
- | * **em1** - network device name for export | ||
- | * **ipfix_nat_udp_collectors** - addresses of udp collectors | ||
- | * **ipfix_nat_tcp_collectors** - addresses of tcp collectors | ||
- | |||
- | ^IPFIX template for NAT flows export^^^^^ | ||
- | ^ID ^IANA ^Size ^Type ^ Description^ | ||
- | |323 |0 |8 |int64 | ||
- | |4 |0 |1 |int8 | PROTOCOL_IDENTIFIER | | ||
- | |230 |0 |1 |int8 | TYPE_OF_EVENT | | ||
- | |8 |0 |4 |IP v4 | SOURCE_IPV4_ADDRESS | | ||
- | |225 |0 |4 |IP v4 | POST_NAT_SOURCE_IPV4_ADDRESS | | ||
- | |7 |0 |2 |int16 | ||
- | |227 |0 |2 |int16 | ||
- | |12 | ||
- | |11 | ||
- | |2000 | ||
- | |2003 | ||
- | |||
- | To collect information in IPFIX any universal collector can be used or [[en: | ||
- | |||
- | Also NAT information is transmited in fields postNATsourceIPv4Address and postNAPTsourceTransportPort in IPFIX export [[en: | ||
- | |||
- | ===== 2 Export NAT flows in text file ===== | ||
- | {{indexmenu_n> | ||
- | Settings for NAT flow export in text file on Stingray Service Gateway DPI server are in the configuration file / | ||
- | |||
- | <code ini> | ||
- | ajb_save_nat=1 | ||
- | ajb_save_nat_format=ts: | ||
- | ajb_nat_path=/ | ||
- | ajb_nat_ftimeout=30 | ||
- | </ | ||
- | here | ||
- | * ajb_save_nat=1 activate export NAT flows in text file | ||
- | * ajb_nat_path=/ | ||
- | * ajb_nat_ftimeout=30 time period of records | ||
- | * ajb_save_nat_format=ts: | ||
- | * ts - timestamp | ||
- | * ssid - session id (for link with Netflow/ | ||
- | * event - event : 1 - NAT44 Session create, 2 - NAT44 Session delete | ||
- | * login - subscriber login | ||
- | * ipsrc - IP address of request source (subscriber) | ||
- | * portsrc - port of request source (subscriber) | ||
- | * ipsrcpostnat - IP address of request source (subscriber) after NAT translation | ||
- | * portsrcpostnat - port of request source (subscriber) after NAT translation | ||
- | * ipdst - destination IP address (host) | ||
- | * portdst - destination port (host). | ||
- | |||
- | :!: file system for writing logs must be fast and local (no NFS and other remotes), this type of journaling is recommended only for short-term diagnostics |