09-22-2022, 04:35 PM
(09-22-2022, 01:05 PM)Tim Curtis Wrote:(09-21-2022, 11:52 PM)TheOldPresbyope Wrote: @Tim Curtis
An easier check of the active exports on an NFS server is sudo exportfs
For example, on my moOde 8.2.0 player with NFS server enabled and exporting a USB stick labeled RALLY8GB
Note, this is with the "default" Access setting. If I set Access to just my entire LAN, then instead of <world> one sees what I set: 10.0.0.0/24.Code:pi@m82arm64:~ $ sudo exportfs
/media/RALLY8GB
<world>
@didier573
1) It's a very bad idea to open port 2049 at your firewall, e.g., your router. This leaves you open to attacks from the outside world. The Internet is under siege by bad guys running what are called "port knocker" programs.
2) if you have enabled NFS file-sharing in System Config on your host moodeNAS then it should have port 2049 open even if you do not have any exportable USB storage devices connected. There's something not right here since you report
Code:Host: 192.168.1.17 (moodenas.home) Ports: 2049/closed/tcp//nfs///
3) you do not have to enable NFS file-sharing on your host moodeEND. It's a server setting, not a client setting.
Regards,
Kent
@TheOldPresbyope, the showmount command is run on the client while exportfs would be run on the server.
To verify the server is working check its status via systemd.
Code:systemctl status nfs-server
# Example
pi@trx:~ $ systemctl status nfs-server
● nfs-server.service - NFS server and services
Loaded: loaded (/lib/systemd/system/nfs-server.service; disabled; vendor preset: enabled)
Active: active (exited) since Tue 2022-09-20 15:54:44 EDT; 1 day 17h ago
Process: 944 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
Process: 945 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SUCCESS)
Main PID: 945 (code=exited, status=0/SUCCESS)
CPU: 476ms
pi@trx:~ $ sudo exportfs
/media/VFAT128 192.168.1.0/24
By my side I get :
pi@moodeEND:~ $ systemctl status nfs-server
● nfs-server.service - NFS server and services
Loaded: loaded (/lib/systemd/system/nfs-server.service; disabled; vendor preset: enabled)
Active: inactive (dead) since Wed 2022-09-21 20:14:25 CEST; 22h ago
Process: 165762 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
Process: 165763 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SUCCESS)
Process: 176163 ExecStop=/usr/sbin/rpc.nfsd 0 (code=exited, status=0/SUCCESS)
Process: 176164 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
Process: 176169 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
Main PID: 165763 (code=exited, status=0/SUCCESS)
CPU: 12ms
Sep 21 18:21:24 moodeEND systemd[1]: Starting NFS server and services...
Sep 21 18:21:26 moodeEND systemd[1]: Finished NFS server and services.
Sep 21 20:14:25 moodeEND systemd[1]: Stopping NFS server and services...
Sep 21 20:14:25 moodeEND systemd[1]: nfs-server.service: Succeeded.
Sep 21 20:14:25 moodeEND systemd[1]: Stopped NFS server and services.
pi@moodeEND:~ $
[b]pi@moodeNAS[/b]:[b]~ $[/b] sudo exportfs
[b]pi@moodeNAS[/b]:[b]~ $[/b]