Configuring ISCSI Between a Windows Server
Configuring ISCSI Between a Windows Server
setting up the iSCSI target on RHEL and connecting to it from Windows. Below are the steps for
both systems:
bash
sudo yum install targetcli -y
bash
sudo systemctl start target
sudo systemctl enable target
1. Launch targetcli:
bash
sudo targetcli
bash
bash
bash
/iscsi/iqn.2025-01.com.example:rhel-target/tpg1/luns create
/backstores/block/disk1
5. Set Up ACLs (to allow the Windows initiator):
o Get the Windows Initiator IQN (see next section) and add it to the ACL:
bash
/iscsi/iqn.2025-01.com.example:rhel-target/tpg1/acls create
<Windows_Initiator_IQN>
bash
bash
saveconfig
exit
bash
sudo firewall-cmd --permanent --add-port=3260/tcp
sudo firewall-cmd --reload