NFS Kodi mount error illegal port

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
portsup
DD-WRT User


Joined: 20 Oct 2018
Posts: 210

PostPosted: Sun Dec 04, 2022 6:02    Post subject: NFS Kodi mount error illegal port Reply with quote
I am getting these errors

Code:
DD-WRT daemon.warn rpc.mountd[6269]: refused mount request from 192.168.1.1 for /jffs (/jffs): illegal port 50438


when trying to access a NFS share from Kodi on a Netgear xr700 build r50963. Note the port is random each time.

Info I can find is it relates to permissions https://sourceweaver.com/post/101926793280/nfs-mount-woes-illegal-port https://www.reddit.com/r/linuxquestions/comments/ceto52/help_nfs_illegal_port_fix/

and Kodi defaulting to nfs3 https://forum.kodi.tv/showthread.php?tid=309192

Quote:
Still an issue, so I'll go ahead and share my homework Smile

Kodi uses LIBNFS to access nfs shares. The library defaults to nfs3, but can also be set to call nfs4 (see the README of the github link above). This way you could set up shares under version 4 and be fine accesing them with a single port open. didn't do it though and can't confirm it works.

If you stick with nfs3, you can also bind RPCBind to a static port on the nfs server, instead of letting MOUNT-D assign random ones. This is done in /etc/default/nfs-kernel-server by changing RPCMOUNTDOPTS="--manage-gids"
to RPCMOUNTDOPTS="--port <your port of choice>". More detail on that at https://blog.kevinckurtz.com/nfs-on-rasp...-from-kodi. Worked for me with Kodi 18.5 and a nfs share on debian 10.


Some solutions are to change NFS config at /etc/exports to include "insecure" , or allow non root to mount, or change kodi to use nfs4. Now I just need to work out how to do them and the pros and cons of each. The NFS DDWRT implementation seems poor, it doesn't even default to include a user and password?

Interesting I tested Kodi on Windows and NFS works, Android it does not. https://github.com/xbmc/xbmc/issues/17387
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum