Community discussions

MikroTik App
 
danergo
Member Candidate
Member Candidate
Topic Author
Posts: 191
Joined: Tue Dec 24, 2019 8:49 pm

Why packet sniffer doesn't see NFS packets?

Tue Feb 04, 2025 9:03 pm

I setup my packet sniffer to push data to Wireshark on WIRESHARKIP.

As filter, I set an NFS Client: Interfaces=All, IP Address=NFSCLIENTIP, Direction=Any, Filter option=or.

I see NFS Client asking for IP address, but I can't see any single NFS packet passing through during a mount.

Why?
Last edited by danergo on Tue Feb 04, 2025 10:44 pm, edited 1 time in total.
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11490
Joined: Mon Dec 04, 2017 9:19 pm

Re: Why packet sniffer doesn't see NFS packets?

Tue Feb 04, 2025 9:10 pm

Could it be that the NFS client and server are in the same LAN, connected to different ports of the Mikrotik, that are bridged together?
 
danergo
Member Candidate
Member Candidate
Topic Author
Posts: 191
Joined: Tue Dec 24, 2019 8:49 pm

Re: Why packet sniffer doesn't see NFS packets?

Tue Feb 04, 2025 10:44 pm

They are in different VLANs, if that makes any difference.

WIRESHARKIP, NFSSERVERIP: VLAN10
NFSCLIENTIP: VLAN20
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11490
Joined: Mon Dec 04, 2017 9:19 pm

Re: Why packet sniffer doesn't see NFS packets?

Tue Feb 04, 2025 11:07 pm

It may, because my assumption was that the NFS client and the NFS server "take a shortcut" in terms that the communictaion between them doesn't get to the router's CPU. If your device supports IP routing in hardware (L3HW), this variant is still possible although they are in different subnets so L2 forwarding in hardware is not sufficient as an explanation. Without L3HW, the explanation must be different. If that is the case, try setting hw on the /interface/bridge/port row to no, but it is kind of cargo cult suggestion - I know this helps in another scenario were it does not seem logical (with hw set to yes, the sniffer doesn't see either the packets the router sends itself or the ones it receives, I never remember which direction is affected), but it should not be the case here as both directions (client to server and server to client) are both incoming and outgoing from the point of view of the router so they should be sniffed anyway.

As you wrote that you could see the NFS client to request its IP address (via DHCP I guess), I assume that you are familiar with the TZSP encapsulation and that Wireshark indeed does receive all the packets that did reach the CPU and match the sniffer filter condition.

I also assume that you cannot see any other traffic to/from the client than the DHCP one? Because Wireshark allows to disable dissectors of known protocols, so the actual NFS traffic may be shown as "undissected TCP" one.
 
danergo
Member Candidate
Member Candidate
Topic Author
Posts: 191
Joined: Tue Dec 24, 2019 8:49 pm

Re: Why packet sniffer doesn't see NFS packets?

Wed Feb 05, 2025 8:13 am

@sindy, I would give you my crystal-ball if I'd have one. :D
try setting hw on the /interface/bridge/port row to no
That's the one. I see all NFS packets coming and going now.

Thank you!