{"id":60063,"date":"2024-01-16T09:00:47","date_gmt":"2024-01-16T08:00:47","guid":{"rendered":"https:\/\/nolabnoparty.com\/?p=60063"},"modified":"2024-01-16T09:22:30","modified_gmt":"2024-01-16T08:22:30","slug":"veeam-linux-hardened-repository-using-iscsi","status":"publish","type":"post","link":"https:\/\/nolabnoparty.com\/en\/veeam-linux-hardened-repository-using-iscsi\/","title":{"rendered":"Veeam: Linux Hardened Repository using iSCSI"},"content":{"rendered":"<p><img decoding=\"async\" class=\"aligncenter wp-image-60180 size-full\" title=\"linux-hardened-repository-using-iscsi-01\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-01.jpg\" alt=\"linux-hardened-repository-using-iscsi-01\" width=\"602\" height=\"202\" \/><\/p>\n<p>If no physical server is available and a NAS device is <strong>the only repository installed<\/strong>\u00a0in your network, you can configure a VM Linux as a <a href=\"https:\/\/nolabnoparty.com\/en\/veeam-v11-configure-double-immutable-backups-on-prem-and-cloud-pt-1\/\">Hardened Repository<\/a> using iSCSI to make backups immutable.<\/p>\n<p>Using a supported Linux distribution, it is possible to <strong>map a LUN via iSCSI<\/strong> to a Linux VM in your virtual infrastructure and <strong>use it as backup repository<\/strong> for your Veeam backup infrastructure. <!--more--><\/p>\n<p>The storage device used in this procedure is a <strong>Synology NAS<\/strong> and the OS installed on the VM is a Linux <a href=\"https:\/\/ubuntu.com\/download\/server\" target=\"_blank\" rel=\"noopener\">Ubuntu 22.04.3 LTS<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<h2>Configure a Linux Hardened Repository using iSCSI<\/h2>\n<p>Before starting the configuration of the Linux VM, you need to create an iSCSI Initiator as well as a LUN that will be used to store backups.<\/p>\n<p>&nbsp;<\/p>\n<h4>Configure the iSCSI Initiator<\/h4>\n<p>To configure an iSCSI LUN in Linux Ubuntu, make sure the <strong>open-iscsi package<\/strong> is installed in the system in use.<\/p>\n<p><span style=\"color: #0000ff;\"># sudo apt -y install open-iscsi<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60182 size-large\" title=\"linux-hardened-repository-using-iscsi-02\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-02-600x128.jpg\" alt=\"linux-hardened-repository-using-iscsi-02\" width=\"600\" height=\"128\" \/><\/p>\n<p>Enable the iSCSI service each time the server boots.<\/p>\n<p><span style=\"color: #0000ff;\"># sudo systemctl enable open-iscsi<\/span><br \/>\n<span style=\"color: #0000ff;\"># sudo systemctl enable iscsid<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60184 size-large\" title=\"linux-hardened-repository-using-iscsi-03\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-03-600x175.jpg\" alt=\"linux-hardened-repository-using-iscsi-03\" width=\"600\" height=\"175\" \/><\/p>\n<p>Edit the <em>\/etc\/iscsi\/initiatorname.iscsi<\/em> file to specify the correct iSCSI Initiator.<\/p>\n<p><span style=\"color: #0000ff;\"># sudo vi \/etc\/iscsi\/initiatorname.iscsi <\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60186 size-large\" title=\"linux-hardened-repository-using-iscsi-04\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-04-600x42.jpg\" alt=\"linux-hardened-repository-using-iscsi-04\" width=\"600\" height=\"42\" \/><\/p>\n<p>The system is configured with a <strong>default InitiatorName setting<\/strong>\u00a0that needs to be adjusted.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60188 size-large\" title=\"linux-hardened-repository-using-iscsi-05\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-05-600x107.jpg\" alt=\"linux-hardened-repository-using-iscsi-05\" width=\"600\" height=\"107\" \/><\/p>\n<p>Retrieve the <strong>configured IQN<\/strong> from the storage device used as backup repository.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60190 size-large\" title=\"linux-hardened-repository-using-iscsi-06\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-06-600x319.jpg\" alt=\"linux-hardened-repository-using-iscsi-06\" width=\"600\" height=\"319\" \/><\/p>\n<p>Replace in the <em>\/etc\/iscsi\/initiatorname.iscsi<\/em> file the default <strong>InitiatorName<\/strong> with the IQN configured in the storage and save the file.<\/p>\n<p><em>InitiatorName=iqn.2000-01.com.lab:NAS-DS918BCK.Target01<\/em><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60192 size-large\" title=\"linux-hardened-repository-using-iscsi-07\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-07-600x121.jpg\" alt=\"linux-hardened-repository-using-iscsi-07\" width=\"600\" height=\"121\" \/><\/p>\n<p>If the <strong>iSCSI connection requires authentication<\/strong>, edit the file <em>\/etc\/iscsi\/iscsid.conf<\/em>.<\/p>\n<p><span style=\"color: #0000ff;\"># sudo vi \/etc\/iscsi\/iscsid.conf<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60194 size-large\" title=\"linux-hardened-repository-using-iscsi-08\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-08-600x47.jpg\" alt=\"linux-hardened-repository-using-iscsi-08\" width=\"600\" height=\"47\" \/><\/p>\n<p>Enable the automatic startup.<\/p>\n<p><span style=\"color: #000000;\"><em>node.startup = automatic<\/em><\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60208 size-large\" title=\"linux-hardened-repository-using-iscsi-09\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-09-600x224.jpg\" alt=\"linux-hardened-repository-using-iscsi-09\" width=\"600\" height=\"224\" \/><\/p>\n<p>Enable and configure <strong>authentication settings<\/strong>.<\/p>\n<p><span style=\"color: #000000;\"><em>node.session.auth.authmethod = CHAP<\/em><\/span><br \/>\n<span style=\"color: #000000;\"><em>node.session.auth.username = username<\/em><\/span><br \/>\n<span style=\"color: #000000;\"><em>node.session.auth.password = password<\/em><\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60212 size-large\" title=\"linux-hardened-repository-using-iscsi-10\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-10-600x271.jpg\" alt=\"linux-hardened-repository-using-iscsi-10\" width=\"600\" height=\"271\" \/><\/p>\n<p>Restart the iSCSI service.<\/p>\n<p><span style=\"color: #0000ff;\"># sudo systemctl restart iscsid open-iscsi<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60214 size-large\" title=\"linux-hardened-repository-using-iscsi-11\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-11-600x42.jpg\" alt=\"linux-hardened-repository-using-iscsi-11\" width=\"600\" height=\"42\" \/><\/p>\n<p>&nbsp;<\/p>\n<h4>Discovery and login to target<\/h4>\n<p>Run the following command to discover the iSCSI Target. The configured iSCSI Target <em>iqn.2000-01.com.lab:NAS-DS918BCK.Target01<\/em> has been discovered successfully (in the example, two iSCSI Targets have been discovered).<\/p>\n<p><span style=\"color: #0000ff;\"># sudo iscsiadm -m discovery -t sendtargets -p 192.168.10.31<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60216 size-large\" title=\"linux-hardened-repository-using-iscsi-12\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-12-600x108.jpg\" alt=\"linux-hardened-repository-using-iscsi-12\" width=\"600\" height=\"108\" \/><\/p>\n<p>Now login to the target.<\/p>\n<p><span style=\"color: #0000ff;\"># sudo iscsiadm --mode node --targetname iqn.2000-01.com.lab:NAS-DS918BCK.Target01 --portal 192.168.10.31 --login<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60218 size-large\" title=\"linux-hardened-repository-using-iscsi-13\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-13-600x111.jpg\" alt=\"linux-hardened-repository-using-iscsi-13\" width=\"600\" height=\"111\" \/><\/p>\n<p>Check if the <strong>connection has been established<\/strong> to the storage device.<\/p>\n<p><span style=\"color: #0000ff;\"># sudo iscsiadm -m session -o show <\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60220 size-large\" title=\"linux-hardened-repository-using-iscsi-14\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-14-600x58.jpg\" alt=\"linux-hardened-repository-using-iscsi-14\" width=\"600\" height=\"58\" \/><\/p>\n<p>&nbsp;<\/p>\n<h4>Create a new partition and file system<\/h4>\n<p>After connecting the iSCSI disk, check the configured partitions in Ubuntu. A <strong>new disk sdb<\/strong> is displayed.<\/p>\n<p><span style=\"color: #0000ff;\"># cat \/proc\/partitions <\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60222 size-large\" title=\"linux-hardened-repository-using-iscsi-15\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-15-600x273.jpg\" alt=\"linux-hardened-repository-using-iscsi-15\" width=\"600\" height=\"273\" \/><\/p>\n<p>Retrieve the <strong>list of installed <\/strong><strong>disks <\/strong>in Ubuntu to identify the disk used as repository.<\/p>\n<p><span style=\"color: #0000ff;\"># sudo fdisk -l<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60224 size-large\" title=\"linux-hardened-repository-using-iscsi-16\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-16-600x210.jpg\" alt=\"linux-hardened-repository-using-iscsi-16\" width=\"600\" height=\"210\" \/><\/p>\n<p>Since the partition to create is <strong>bigger than 2 TB<\/strong>, it is necessary to configure a <strong>GPT partition<\/strong>.<\/p>\n<p><span style=\"color: #0000ff;\"># sudo parted \/dev\/sdb mklabel gpt<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60226 size-large\" title=\"linux-hardened-repository-using-iscsi-17\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-17-600x107.jpg\" alt=\"linux-hardened-repository-using-iscsi-17\" width=\"600\" height=\"107\" \/><\/p>\n<p>Now create the partition using the <strong>entire disk formatted XFS<\/strong>.<\/p>\n<p><span style=\"color: #0000ff;\"># sudo parted -a opt \/dev\/sdb mkpart primary xfs 0% 100%<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60228 size-large\" title=\"linux-hardened-repository-using-iscsi-18\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-18-600x79.jpg\" alt=\"linux-hardened-repository-using-iscsi-18\" width=\"600\" height=\"79\" \/><\/p>\n<p>To check the just created partition, run the command:<\/p>\n<p><span style=\"color: #0000ff;\"># lsblk<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60230 size-large\" title=\"linux-hardened-repository-using-iscsi-19\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-19-600x290.jpg\" alt=\"linux-hardened-repository-using-iscsi-19\" width=\"600\" height=\"290\" \/><\/p>\n<p>Check the installed disks once again. Now the new <em>\/dev\/sdb1<\/em> partition is displayed.<\/p>\n<p><span style=\"color: #0000ff;\"># sudo fdisk -l<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60232 size-large\" title=\"linux-hardened-repository-using-iscsi-20\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-20-600x285.jpg\" alt=\"linux-hardened-repository-using-iscsi-20\" width=\"600\" height=\"285\" \/><\/p>\n<p>To leverage the <strong>Fast-Clone technology<\/strong> in <a href=\"https:\/\/nolabnoparty.com\/en\/upgrade-veeam-backup-replication-to-v12-1\/\">Veeam Backup &amp; Replication<\/a>, we need to <strong>enable reflink and CRC<\/strong> formatting the partition with the following command:<\/p>\n<p><span style=\"color: #0000ff;\"># sudo mkfs.xfs -b size=4096 -m reflink=1,crc=1 \/dev\/sdb1 -f -K<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60234 size-large\" title=\"linux-hardened-repository-using-iscsi-21\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-21-600x169.jpg\" alt=\"linux-hardened-repository-using-iscsi-21\" width=\"600\" height=\"169\" \/><\/p>\n<p>&nbsp;<\/p>\n<h4>Mount the file system<\/h4>\n<p>Once the partition has been formatted, we mount the file system for use.<\/p>\n<p>If you want to mount the partition under <em>\/mnt\/veeamrepo<\/em>, create the directory using <em>mkdir<\/em>.<\/p>\n<p><span style=\"color: #0000ff;\"># sudo mkdir -p \/mnt\/veeamrepo<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60236 size-large\" title=\"linux-hardened-repository-using-iscsi-22\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-22-600x61.jpg\" alt=\"linux-hardened-repository-using-iscsi-22\" width=\"600\" height=\"61\" \/><\/p>\n<p>Mount the file system with the command:<\/p>\n<p><span style=\"color: #0000ff;\"># sudo mount -o defaults \/dev\/sdb1 \/mnt\/veeamrepo<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60238 size-large\" title=\"linux-hardened-repository-using-iscsi-23\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-23-600x36.jpg\" alt=\"linux-hardened-repository-using-iscsi-23\" width=\"600\" height=\"36\" \/><\/p>\n<p>Run the following command to check the file system:<\/p>\n<p><span style=\"color: #0000ff;\"># df -Th<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60240 size-large\" title=\"linux-hardened-repository-using-iscsi-24\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-24-600x153.jpg\" alt=\"linux-hardened-repository-using-iscsi-24\" width=\"600\" height=\"153\" \/><\/p>\n<p>Now <strong>retrieve the UUID<\/strong> of the new partition to be configured in the <em>\/etc\/fstab<\/em> file.<\/p>\n<p><span style=\"color: #0000ff;\"># sudo blkid \/dev\/sdb1<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60242 size-large\" title=\"linux-hardened-repository-using-iscsi-25\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-25-600x64.jpg\" alt=\"linux-hardened-repository-using-iscsi-25\" width=\"600\" height=\"64\" \/><\/p>\n<p>Update the\u00a0<em>\/etc\/fstab<\/em> file with the new UUID\u00a0to <strong>mount the filesystem automatically<\/strong> each time the server boots.<\/p>\n<p><span style=\"color: #0000ff;\"># sudo vi \/etc\/fstab<\/span><\/p>\n<p><em>UUID=88d1bd31-1996-4545-9e5a-2b410364f13a \/mnt\/veeamrepo xfs _netdev 0 0<\/em><\/p>\n<p>Adding the value <strong>_netdev<\/strong>, the mount point will be mounted only after the network starts correctly.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60244 size-full\" title=\"linux-hardened-repository-using-iscsi-26\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-26.jpg\" alt=\"linux-hardened-repository-using-iscsi-26\" width=\"600\" height=\"274\" \/><\/p>\n<p>Restart the server and make sure the <strong>iSCSI LUN is m<\/strong><strong>apped<\/strong> after booting.<\/p>\n<p><span style=\"color: #0000ff;\"># sudo reboot<br \/>\n# df -Th<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60246 size-large\" title=\"linux-hardened-repository-using-iscsi-27\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-27-600x153.jpg\" alt=\"linux-hardened-repository-using-iscsi-27\" width=\"600\" height=\"153\" \/><\/p>\n<p>&nbsp;<\/p>\n<h4>Create the Veeam user<\/h4>\n<p>You need to create a dedicated Veeam user with the correct permissions so that the <strong>Veeam Transport Service<\/strong>\u00a0has the correct rights to the Veeam mount.<\/p>\n<p>Create a\u00a0<strong>new account<\/strong> and create the password.<\/p>\n<p><span style=\"color: #0000ff;\"># sudo useradd locveeam --create-home -s \/bin\/bash<\/span><br \/>\n<span style=\"color: #0000ff;\"># sudo passwd locveeam<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60248 size-large\" title=\"linux-hardened-repository-using-iscsi-28\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-28-600x112.jpg\" alt=\"linux-hardened-repository-using-iscsi-28\" width=\"600\" height=\"112\" \/><\/p>\n<p>To install the required Veeam components, we need to temporarily assign the just created user to the <em>sudo<\/em> group to <strong>execute the commands as root<\/strong>.<\/p>\n<p><span style=\"color: #0000ff;\"># sudo usermod -a -G sudo locveeam<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60250 size-large\" title=\"linux-hardened-repository-using-iscsi-29\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-29-600x39.jpg\" alt=\"linux-hardened-repository-using-iscsi-29\" width=\"600\" height=\"39\" \/><\/p>\n<p>&nbsp;<\/p>\n<h4>Assign permissions to the mount point<\/h4>\n<p>Assign permissions to access the\u00a0<em>\/mnt\/veeamrepo<\/em>\u00a0folder to the\u00a0<em>locveeam<\/em> account and check assigned permissions.<\/p>\n<p><span style=\"color: #0000ff;\"># sudo chown -R locveeam:locveeam \/mnt\/veeamrepo\/<\/span><br \/>\n<span style=\"color: #0000ff;\"># sudo chmod 700 \/mnt\/veeamrepo<\/span><br \/>\n<span style=\"color: #0000ff;\"># ll \/mnt<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60252 size-large\" title=\"linux-hardened-repository-using-iscsi-30\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-30-600x134.jpg\" alt=\"linux-hardened-repository-using-iscsi-30\" width=\"600\" height=\"134\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Test the Hardened Repository<\/h2>\n<p>Assigned the correct permissions, it's time to test the <a href=\"https:\/\/nolabnoparty.com\/en\/veeam-v12-configuring-a-hardened-repository\/\">Hardened Repository<\/a> using iSCSI.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>1. Create the new Hardened Repository using iSCSI in Veeam<\/strong><\/p>\n<p>Open the Veeam Backup &amp; Replication console and <strong>configure the new Hardened Repository<\/strong> (follow this <a href=\"https:\/\/nolabnoparty.com\/en\/veeam-v11-hardened-repository-immutability-configuration-pt-2\/\">step-by-step procedure<\/a>).<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60255 size-large\" title=\"linux-hardened-repository-using-iscsi-31\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-31-600x515.jpg\" alt=\"linux-hardened-repository-using-iscsi-31\" width=\"600\" height=\"515\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>2. Create a Backup Job<\/strong><\/p>\n<p>Create a Backup Job specifying the just created Hardened Repository to store the backup (follow this <a href=\"https:\/\/nolabnoparty.com\/en\/veeam-v11-hardened-repository-immutability-configuration-pt-2\/\">step-by-step procedure<\/a>).<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60257 size-large\" title=\"linux-hardened-repository-using-iscsi-32\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-32-600x427.jpg\" alt=\"linux-hardened-repository-using-iscsi-32\" width=\"600\" height=\"427\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>3. Run the Backup Job<\/strong><\/p>\n<p>Run the Backup Job.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60259 size-large\" title=\"linux-hardened-repository-using-iscsi-33\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-33-600x455.jpg\" alt=\"linux-hardened-repository-using-iscsi-33\" width=\"600\" height=\"455\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>4. Check Immutability<\/strong><\/p>\n<p>Try to delete the just created backup to test if the backup is immutable. As expected the <strong>backup can't be deleted<\/strong> due to its immutability status.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60261 size-full\" title=\"linux-hardened-repository-using-iscsi-34\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-34.jpg\" alt=\"linux-hardened-repository-using-iscsi-34\" width=\"589\" height=\"450\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Secure the Hardeneded Repository<\/h2>\n<p>Once the configuration and backup tests have been successfully completed, the Hardened Repository using iSCSI must be secured to avoid <strong>unauthorized accesses<\/strong>:<\/p>\n<ul>\n<li>Make sure the Veeam user (<em>locveeam<\/em> in the example) is not a member of the <strong>sudo group<\/strong>.<\/li>\n<li><strong>Unplug<\/strong> the Remote Server Management system (iDRAC, iLO, etc.) from the network.<\/li>\n<li><strong>Disable SSH<\/strong> access to the repository with the commands:<\/li>\n<\/ul>\n<p style=\"padding-left: 40px;\"><span style=\"color: #0000ff;\"># sudo systemctl disable ssh.service<\/span><br \/>\n<span style=\"color: #0000ff;\"># sudo systemctl stop ssh.service<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-60263 size-large\" title=\"linux-hardened-repository-using-iscsi-35\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2024\/01\/linux-hardened-repository-using-iscsi-35-600x152.jpg\" alt=\"linux-hardened-repository-using-iscsi-35\" width=\"600\" height=\"152\" \/><\/p>\n<p>Because the Linux machine runs in the virtual infrastructure, also the the <strong>access to the virtual environment<\/strong> must be secured.<\/p>\n<p>The configuration of the Linux <a href=\"https:\/\/nolabnoparty.com\/en\/veeam-v11-delete-backups-from-hardened-repository\/\">Hardened Repository<\/a> using iSCSI is now complete and the system is <strong>ready to use<\/strong>.<\/p>\n<p><img decoding=\"async\" title=\"signature\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/images\/firma.jpg\" alt=\"signature\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If no physical server is available and a NAS device is the only repository installed\u00a0in your network, you can configure a VM Linux as a Hardened Repository using iSCSI to make backups immutable. Using a supported Linux distribution, it is possible to map a LUN via iSCSI to a Linux VM in your virtual infrastructure and use it as backup repository for your Veeam backup infrastructure.<\/p>\n","protected":false},"author":3,"featured_media":60180,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":{"facebook_2879994398731222_17841400390232720":"","mastodon_115463926174894442_115463926174894442":"","linkedin_93tdZWzMZc_93tdZWzMZc":"","bluesky_did:plc:tkabz5kl2rukzdwtuongv3kz_did:plc:tkabz5kl2rukzdwtuongv3kz":""},"rop_publish_now_history":[],"rop_publish_now_status":"pending","footnotes":""},"categories":[2138,933],"tags":[579,2330,2777,2281],"class_list":["post-60063","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-backup-en","category-veeam-en","tag-backup-en","tag-hardened-repository","tag-immutable-backup","tag-iscsi-en","has_thumb"],"_links":{"self":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts\/60063","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/comments?post=60063"}],"version-history":[{"count":0,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts\/60063\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/media\/60180"}],"wp:attachment":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/media?parent=60063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/categories?post=60063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/tags?post=60063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}