Hi robd & Colin,
robd wrote:My pi is in network A and my Nas is in network B and the two are connected via internet.
Connecting via NFS means opening ports, one doesn’t want to open.
So, is there an opportunity to change the nfs ports on the pi side or any other suggestion solving this problem?
Or should I go for DLNA?
NFS works like this: the client calls rpcbind on the server on port 111. The server returns the port number which NFS can use to mount the share. I suspect that you cannot (or don’t want to) open port 111 between your two network segments. You should read a little about this, opening port 111 is not normally something which you want to do. However when the port id is specified in the NFS mount command, NFS then misses out the rpcbind step and attempts to mount directly using the port provided. Look here more info:
https://linux.die.net/man/5/nfsIn the RuneAudio Sources UI you add custom mount flags. Set advanced options ON to see the extra options. In this case (for NFS) you should use:
- Code: Select all
ro,nocto,port=xxx
Where xxx is the port you wish to use.
This is also an interesting document which you should read:
https://www.tldp.org/HOWTO/NFS-HOWTO/security.htmlColin wrote:…sshfs is installed on the RuneAudio distribution (which I'm unsure of)…
I can confirm that sshfs is installed.
If you want to use sshfs you will need to mount it manually, here is the documentation:
https://linux.die.net/man/1/sshfsYou should use a mount point like this:
- Code: Select all
/mnt/MPD/NAS/<name>
And you need to create an empty directory before mounting:
- Code: Select all
mkdir /mnt/MPD/NAS/<name>
Don’t forget to remove the empty directory after an unmount.
janui