Only one Debian client to access my NFS

  • Good evening,

    I'm french (sorry for the translate).

    I explain, for a school project I have to make a configuration under Openmediavault (4.1.22) respecting a specification.

    In the specifications I have "an NFS storage space accessible to a single Debian host read and write", so under OMV via the graphical interface we can put a "client authorised to mount the file system" I put the one of my debian client.

    I mounted NFS client on my debian, I did an mounting point… everything is working fine except that by trying from another vm, I could see that I can also do a mount point on the NFS so it is not accessible only since my main debian vm.

    I would like to know how to make only one debian client machine have access to my NFS share.

    Thank you in advance.

    The configuration :

    GNU nano 2.7.4 File: /etc/exports

    # This configuration file is auto-generated.

    # WARNING: Do not edit this file, your changes will be lost.


    # /etc/exports: the access control list for filesystems which may be exported

    # to NFS clients. See exports(5).


    # NFSv4 - pseudo filesystem root


  • 24 means only allow clients matching the first 24 bits of the ip. That is 192.168.1. The last 8 bits can be anything. 72 or 14, 1-255

    32 means all bits must match. So only is allowed.

    It is easy to spoof IP numbers. So using just IPs like this to secure a network is not enough.

    Either used a centralized login system.


    Use switches/routers/IPs to setup a network that only allows nfs traffic between specific clients and servers, for instance between servers inside a server room. Or in a trusted home network.

    Be smart - be lazy. Clone your rootfs.
    OMV 5: 9 x Odroid HC2 + 1 x Odroid HC1 + 1 x Raspberry Pi 4

  • DylanB

    Added the Label OMV 4.x
  • DylanB

    Added the Label resolved

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!