[CentOS] OT: iscsi target bind to two addresses?

Tue Dec 1 14:43:53 UTC 2009
Ross Walker <rswwalker at gmail.com>

On Nov 30, 2009, at 11:07 PM, Gordon McLellan <gordonthree at gmail.com>  
wrote:

> Does anyone know off hand how to bind iscsi enterprise target to two
> distinct addresses.  Lets say I have a machine that has a bunch of
> interfaces on it, with different subnets.  Rather than have ietd
> broadcast itself on all interfaces (the default), I would like to
> limit it to only two interfaces.  I have edited the init.d startup
> script with --address x.x.x.x  which works, but I tried using the
> --address argument twice, and the second time is ignored.  I also
> tried x.x.x.x,y.y.y.y which also failed, second address was ignored.
>
> I'm thinking I could use ip tables to block ietd's ports on the
> unwanted interfaces but that seems like overkill.

If you are using the latest version use targets.allow to restrict  
which ip addresses a target is discovered on.

-Ross