You can export events (including by using the export utility) and save a file containing 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. In the Astra Linux Special Edition operating system, you are advised to use the network security configuration application known as UFW.
Manually creating a folder and mounting a shared network resource
To create a folder for saving files to a network resource:
mkdir <
full path to the local folder
>
For example:
mkdir
~/nfsshare
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
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
To configure automatic mounting of a shared resource in the Astra Linux Special Edition operating system:
To check if the package is available, enter the following command in the command line:
dpkg -l libpam-mount
If the libpam-mount package is not detected in the operating system, install this package by using the following command:
sudo apt install libpam-mount
After entering this command, perform the necessary actions at the system prompts.
volume
tag string within the pam_mount
tag:<volume fstype="nfs" server="<
name or IP address of the remote computer
>" path="<
full path to the shared network resource
>" mountpoint="<
full path to the local folder
>" user="<
user name
>" options="defaults" />
Example values for the volume tag string:
<volume fstype="nfs" server="nfs-server.example" path="/nfsshare" mountpoint="/home/%(USER)/nfsshare" user="user1" options="defaults" />
where user1
is the user name for which the network resource nfs-server.example/nfsshare will be connected as the /home/user1/nfsshare folder when the user logs in to the system.