I would like to be able to mount an NFS share from one of the Debian-servers (boson) on my LAN. I've added a line to /etc/fstab:
boson:/srv/array1/rbin/firebin /home/admin/bin nfs rw 0 0
According to the "Hardened BSD Handbook" (https://hardenedbsd.org/~shawn/hbsd_handbook/book.html#network-nfs (https://hardenedbsd.org/~shawn/hbsd_handbook/book.html#network-nfs)) I should also activate the NFS-client. This should be done in /etc/rc.conf.
On OPNsense: I assume I should create a file in /usr/local/rc.d containing nfs_client_enable="YES"
which should override one of these settings:
$ cat /etc/defaults/rc.conf |grep nfs
netfs_types="nfs:NFS smbfs:SMB" # Net filesystems.
nfs_client_enable="NO" # This host is an NFS client (or NO).
nfs_access_cache="60" # Client cache timeout in seconds
nfs_server_enable="NO" # This host is an NFS server (or NO).
nfs_server_flags="-u -t" # Flags to nfsd (if enabled).
nfs_server_managegids="NO" # The NFS server maps gids for AUTH_SYS (or NO).
nfs_reserved_port_only="NO" # Provide NFS only on secure port (or NO).
nfs_bufpackets="" # bufspace (in packets) for client
nfsv4_server_enable="NO" # Enable support for NFSv4
nfscbd_enable="NO" # NFSv4 client side callback daemon
nfscbd_flags="" # Flags for nfscbd
nfsuserd_enable="NO" # NFSv4 user/group name mapping daemon
nfsuserd_flags="" # Flags for nfsuserd
Is that correct? Or should I create /etc/rc.conf itself?
I've decided to create /etc/rc.conf and add
nfs_client_enable="YES"
to it.
This works and NFS mounts can be mounted after
service nfsclient start
Never did this before but happy this works out of the box. :)
Cheers,
Franco