Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nfdump not showing NAT/Translated IPs for sflow #485

Closed
mikej96 opened this issue Nov 30, 2023 · 3 comments
Closed

nfdump not showing NAT/Translated IPs for sflow #485

mikej96 opened this issue Nov 30, 2023 · 3 comments

Comments

@mikej96
Copy link

mikej96 commented Nov 30, 2023

I can't seem to get nfdump to show the src/dst xlt ip's and ports from an A10 CGN device sending sflow to an sfcapd collector.

I am testing using the latest master branch as well as 1.6.25 compiling with --enable-sflow and --enable-nsel and --enable-devel

The nat_src and nat_dst and nat_src_port and nat_dst_port all show up in the packet and get processed by sfcapd, but nfdump does not show them when using any type of output modifier including -o raw. The default nfdump shows the following:

2023-11-30 16:39:31.327 INVALID  Ignore UDP       100.69.55.17:6881  ->  101.119.161.193:3499           0.0.0.0:0     ->          0.0.0.0:0        1.5 M        0

I've attached sample sfcapd output and sample ndump output. Any ideas on what I might be doing wrong? It seems like it could be a bug with sfcapd saving the data properly to the nfcapd files, or a problem with nfdump reading them.

Happy to help troubleshoot more, and can provide any other information if requested.

Example nfdump output:
example_nfdump_trimmed.txt

Example sfcapd output:
example_packet_from_sfcapd.txt

@phaag
Copy link
Owner

phaag commented Dec 2, 2023

@mikej96 - would you mind, to collect a pcap, sent to sfcapd, worth a couple 10k bytes of data and send it to me to the email address in the AUTHORS file?

@mikej96
Copy link
Author

mikej96 commented Dec 2, 2023

pcap sent, thank you!

phaag added a commit that referenced this issue Dec 3, 2023
@phaag
Copy link
Owner

phaag commented Dec 3, 2023

Implemented in master repo.

@phaag phaag closed this as completed Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants