Comments (4)
Hi @asas6559 ,
Is the exporter really encoding things like source / destination IP address and ports with a PEN? It looks odd; if you enable debug, you should be able to get a copy of the template in the log, can you paste it here?
Paolo
from pmacct.
Thanks for your reply, Paolo
I just still learning nfacctd.
Now,all the primitives in the template i can get their values successfully.I want to get the value in L2 header,L3 header,L4 header like the image below.(I tried built-in primitives or defined them in primitives.lst by packet_ptr both not effitive.)
I have a question, in nfacctd ,does the primitives can be analyzed must be in the payload?
Here is the template log.(all the field in template value get successfully in data packet)
2023-09-07T13:00:45Z DEBUG ( default/core ): NfV10 agent : 10.45.126.38:65536
2023-09-07T13:00:45Z DEBUG ( default/core ): NfV10 template type : flow
2023-09-07T13:00:45Z DEBUG ( default/core ): NfV10 template ID : 65535
2023-09-07T13:00:45Z DEBUG ( default/core ): -------------------------------------------------------------
2023-09-07T13:00:45Z DEBUG ( default/core ): | pen | field type | offset | size |
2023-09-07T13:00:45Z DEBUG ( default/core ): | mypen | 253 [253 ] | 0 | 16 |
2023-09-07T13:00:45Z DEBUG ( default/core ): | mypen | 254 [254 ] | 16 | 16 |
2023-09-07T13:00:45Z DEBUG ( default/core ): | mypen | 251 [251 ] | 32 | 2 |
2023-09-07T13:00:45Z DEBUG ( default/core ): | mypen | 252 [252 ] | 34 | 2 |
2023-09-07T13:00:45Z DEBUG ( default/core ): -------------------------------------------------------------
2023-09-07T13:00:45Z DEBUG ( default/core ): Netflow V9/IPFIX record size : tbd
from pmacct.
Hi @asas6559 ,
The Source and Destination address that you highlight in Wireshark, ie. the exporter address and the collector address, are not part of NetFlow / IPFIX:
- The exporter IP address you can get with the
peer_src_ip
primitive; - the collector IP address is not available as a primitive but you could use a tag, just an idea;
When you say L2/L3/L4 headers, do you refer to the NetFlow / IPFIX flows or to the IP packets transporting the NetFlow / IPFIX data? nfacctd
does collect only NetFlow / IPFIX data in the payload, yes. pmacctd
does collect packets on the wire (and does not parse NetFlow / IPFIX).
Paolo
from pmacct.
Hi @paololucente ,
I get the exporter IP successfully by using peer_src_ip.
Thanks!
from pmacct.
Related Issues (20)
- uacctd don't log trafic HOT 4
- Question | Application ID having length of 4. HOT 3
- Question: nfacctd storage HOT 9
- Sampling directive broken HOT 2
- 1.7.10 print prugin and pre_tag_label_filter failure HOT 7
- Create pipeline to add information to PMACCT flows HOT 1
- Trouble writing data to database HOT 11
- Add IPv6 support to Proxy Protocol Header parsing HOT 4
- Compile failure on Oracle Linux 9 HOT 6
- nfacctd_templates_receiver container Operation not permitted HOT 3
- Openwrt: compile error for [-Werror=stringop-overflow=] in src/external_libs/libcdada/include/cdada/__list_internal.h HOT 8
- Adding timestamp to stderr logging HOT 7
- Telemetry daemon silently stops when incorrect messages sent to listening port HOT 1
- nfacctd: NetFlow v9 / IPFIX, correlate Options data to Flow data (ie. VRF ID -> VRF Name) HOT 3
- [sfacctd] Change the received datagrams agent address HOT 3
- [nfacctd] failed to parse Option Templates from Arista EOS device HOT 2
- [RPKI] bgp_daemon needs to be enabled to be able to connect to RTR cache HOT 3
- [RPKI] RPKI version mismatch when TLS for RTR HOT 2
- [nfacctd] Setting AS information from BGP no longer works in bleeding-edge HOT 8
- [RPKI] Pretag map filtering not working for ROA status
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pmacct.