Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How can I setup an ISCSI target that is only visible to a certain IP address? For example, if a client runs iscsiadm discover from 10.1.1.130, I only want target iqn.2011-03.domain.org.istgt.ded130 shown to him.

I've tried setting up multiple InitatorGroups, but that does not appear to make any difference to what is displayed. If the InitiatorGroup does not limit discoverability, what is it used for?

For example from my istgt.conf file:

# InitiatorGroup section
[InitiatorGroup1]
  InitiatorName "DED30"
  Netmask 10.1.1.130/30

[InitiatorGroup2]
  InitiatorName "DED24"
  Netmask 10.1.1.124/30
[LogicalUnit1]
  TargetName "ded130"
  TargetAlias "ded130"
  Mapping PortalGroup1 InitiatorGroup1
  AuthMethod None
  UseDigest Auto
  ReadOnly No
  UnitType Disk
  UnitOnline yes
  BlockLength 512
  QueueDepth 32
  LUN0 Storage /mnt/tank/ded138_ds/ded138_extent 1000GB
share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.