Installing NFS Server for FortiSIEM Event Storage
When you install FortiSIEM, you have the option to use either local storage or NFS storage. For cluster deployments using Workers, the use of an NFS Server is required for the Supervisor and Workers to communicate with each other. This document describes how to set up and configure NFS servers for use with FortiSIEM.
|
Installation in Rocky Linux
- Step 1: Install the NFS Server
- Step 2: Check the Exported Directories
- Step 3. Optional—Enable NFS 4.1 on FortiSIEM Nodes
Step 1: Install the NFS Server
Follow these steps to install NFS Server in Rocky Linux:
- Login to the Rocky Linux server as
root
. - Download and install the NFS packages using the following command.
# dnf install nfs-utils
- Start and enable the NFS service by running the following scripts.
# systemctl start nfs-server
# systemctl enable nfs-server
- Check NFS service status:
# systemctl status nfs-server
- Create a new directory in large volume to share with the FortiSIEM Supervisor and Worker nodes, and change the access permissions to provide FortiSIEM with access to the directory using the command:
# mkdir /FortiSIEM
# chmod -R 777 /FortiSIEM // without this permission, installation won't work
- Edit and the save the
/etc/exports
file by adding the following lines. This enables the FortiSIEM Supervisor and Worker nodes access to the/FortiSIEM
directory./FortiSIEM <Supervisor_IP_Address>(rw,sync,no_root_squash)
/FortiSIEM <Worker1_IP_Address>(rw,sync,no_root_squash)
/FortiSIEM <Worker2_IP_Address>(rw,sync,no_root_squash)
- Export the directories in
/etc/exports
by running this command:# exportfs -arv
- If
firewalld
is installed, then enable the FortiSIEM Supervisor and Worker to communicate by adding these firewall rules:firewall-cmd --permanent --add-service=nfs
firewall-cmd --permanent --add-service=rpc-bind
firewall-cmd --permanent --add-service=mountd
firewall-cmd --reload
- Restart the NFS server using the command:
# systemctl status nfs-server
Step 2: Check the Exported Directories
Follow these steps to check the exported directories from the FortiSIEM Supervisor and Worker Nodes:
- Login to the Supervisor and run this command:
# showmount -e <NFS Server>
- Make sure the exported list is correct as follows:
/FortiSIEM <Supervisor_IP>,<Worker1_IP>,<Worker2_IP>
- Repeat the previous steps for each Worker node.
Step 3. Optional—Enable NFS 4.1 on FortiSIEM Nodes
Follow these steps to enable NFS 4.1 on FortiSIEM Super and Worker Nodes:
- Make sure your NFS Server supports NFS 4.1.
- Login to each node.
- Edit the
/etc/fstab
file to change the valuenfsvers=3
tonfsvers=4.1
. - Save the file.
- Reboot the node.
Installation in an AWS Environment
Follow these steps to install NFS Server in an AWS Environment
Step 1: Launch NFS Server
Follow these steps to launch the NFS Server from the AWS Marketplace
- Login to your AWS account.
- Go to Services > Compute > EC2.
- Click EC2 Dashboard > Launch Instance.
- Select the Rocky Linux Instance.
- Click Compute Optimized C5 Instance.
- Configure the Instance details following the steps:
- Choose '1' in the number of instances.
- Choose 'Network' as the VPC selected for Supervisor and Worker nodes.
- Choose 'Subnet' as the subnet where you want to launch FortiSIEM VMs.
- Set Auto-assign public IP as 'Disabled'.
- Set Shutdown behavior as 'Stop'
- Check Enable termination protection.
- In Network Interfaces, choose the Primary IP as the Private IP of your choice within that subnet.
You can select 'Auto-Assign' which is the default option.
- Click Add Storage.
You can the default for root partition. Since you need storage for event data, add a new EBS volume based on your storage requirements (minimum 50GB).
- Click Add Tags. You can add a tag similar to “FortiSIEM EventDB NFS” to search the instance.
- Click Configure Security Group.
- Create a new Security Group and keep the defaults which are needed for FortiSIEM to operate.
- Click Review and Launch and click Launch.
- Select Create a new key pair and provide a key pair name of your choice.
- Click Download Key Pair and save the
.pem
file. - Click Launch Instance and wait for the instance to start.
- Configure Elastic IP following these steps:
- Go to EC2 Dashboard > Elastic IPs.
- Click Allocate New Address.
- Select VPC and click Allocate.
The IP address will be allocated.
- Click the Elastic IP that was allocated.
- Click Actions > Associate address and select the instance by searching the tag you created in Step 6i.
- Click Associate.
Step 2: Start and Configure the NFS Server
Follow these steps to start and configure the NFS server.