From 960dee6dd0c9c188bc922acab6acb744952f4866 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 3 Mar 2011 22:08:50 +0000 Subject: [iscsi] Change default initiator IQN The default initiator IQN is "iqn.2000-09.org.etherboot:UNKNOWN". This is problematic for two reasons: a) the etherboot.org domain (and hence the associated IQN namespace) is not under the control of the iPXE project, and b) some targets (correctly) refuse to allow concurrent connections from different initiators using the same initiator IQN. Solve both problems by changing the default initiator IQN to be iqn.2010-04.org.ipxe: if a hostname is set, or iqn.2010-04.org.ipxe: if no hostname is set. Explicit initiator IQNs set via DHCP option 203 are not affected by this change. Unfortunately, this change is likely to break some existing configurations, where ACL rules have been put in place referring to the old default initiator IQN. Users may need to update ACLs, or force the use of the old IQN using an iPXE script line such as set initiator-iqn iqn.2000-09.org.etherboot:UNKNOWN or a dhcpd.conf option such as option iscsi-initiator-iqn "iqn.2000-09.org.etherboot:UNKNOWN" Signed-off-by: Michael Brown --- src/include/ipxe/iscsi.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/ipxe/iscsi.h b/src/include/ipxe/iscsi.h index 2202a9d87..5d3d73b0c 100644 --- a/src/include/ipxe/iscsi.h +++ b/src/include/ipxe/iscsi.h @@ -543,6 +543,8 @@ struct iscsi_session { /** Transport-layer socket */ struct interface socket; + /** Initiator IQN */ + char *initiator_iqn; /** Target address */ char *target_address; /** Target port */ @@ -694,6 +696,7 @@ struct iscsi_session { /** Target authenticated itself correctly */ #define ISCSI_STATUS_AUTH_REVERSE_OK 0x00040000 -extern const char * iscsi_initiator_iqn ( void ); +/** Default initiator IQN prefix */ +#define ISCSI_DEFAULT_IQN_PREFIX "iqn.2010-04.org.ipxe" #endif /* _IPXE_ISCSI_H */ -- cgit v1.2.3-55-g7522