Kaspersky Industrial CyberSecurity for Networks

Creating a folder for exporting events to a network resource

March 22, 2024

ID 155214

You can export events and save a file with the exported events on a network resource of the Server computer. You can share a network resource by using the Network File System (NFS) protocol, which is employed to mount a shared network resource of another computer (such as an NFS server export point) in the local file system of the Server computer. The standard tools of the operating system can be used to create a folder and to mount a shared network resource.

When using the NFS protocol, the rpcbind software package is activated in the operating system. Please keep in mind that cybercriminals may attempt to use this software package to conduct certain types of DDoS attacks. To eliminate an infiltration threat, the firewall must be properly configured. In the CentOS Stream operating system, you are advised to use the network security configuration application known as Firewalld.

Manually creating a folder and mounting a shared network resource

To create a folder for saving files to a network resource:

  1. Open the operating system console.
  2. Create a local folder for mounting the shared network resource. To do so, enter the following command:

    mkdir <full path to the local folder>

    For example:

    mkdir ~/nfsshare

  3. After the folder is created, enter the following command for mounting a network resource:

    sudo mount -t nfs <name or IP address of the remote computer>:\

    <full path to the shared network resource>\

    <full path to the local folder>

    For example:

    sudo mount -t nfs nfs-server.example:/nfsshare ~/nfsshare

  4. Check the mount result by using the following command:

    mount | grep <full path to the local folder>

    For example:

    mount | grep ~/nfsshare

    If mounting was successful, you will see data containing the name or IP address of the remote computer, the name of the shared network resource, and the name of the parent folder.

Automatically mounting a shared network resource

To configure automatic mounting of a shared resource in the CentOS operating system:

Open the /etc/fstab file for editing with root privileges and add the following string to the text of the file:

<name or IP address of the remote computer>:<full path to the shared network resource> <full path to the local folder> nfs defaults 0 0

For example:

nfs-server.example:/nfsshare /home/user1/nfsshare nfs defaults 0 0

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.