[Bug 871143] Re: Unable to bind ietd to specific address and port
harmscon
871143 at bugs.launchpad.net
Thu Feb 23 01:59:39 UTC 2012
I have the same requirement: only bind a specific address.
I took a very similar approach to resolve:
Add the following to /etc/defaults/iscsitarget:
## ietd options
# --address: bind to specific interface
ISCSITARGET_OPTIONS='--address=10.224.10.1'
Make the following change to function ietd_start() in
/etc/init.d/iscsitarget:
< start-stop-daemon --start --quiet --oknodo --exec $DAEMON -- $ISCSITARGET_OPTIONS
---
> start-stop-daemon --start --exec $DAEMON --quiet --oknodo
I hope this helps.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to iscsitarget in Ubuntu.
https://bugs.launchpad.net/bugs/871143
Title:
Unable to bind ietd to specific address and port
Status in “iscsitarget” package in Ubuntu:
Confirmed
Bug description:
It is possible to bind the iscsitarget daemon (ietd) to a specific IP
address and port number, but only by using the --address and --port
command-line options: there is no way to do so in the configuration
file. The /etc/init.d/iscsitarget script should therefore enable the
administrator access to these options.
My proposal is to append "-- $IETD_ARGS" to the start-stop-daemon line
in ietd_start() (as well as IETD_ARGS= earlier-on), so that it becomes
possible to set this variable in /etc/default/iscsitarget.
I have made the above changes locally, but now run the risk that if
the /etc/init.d/iscsitarget script is overwritten upon a future
upgrade by ietd daemon will revert to its default behaviour, which is
to listen on all IP addresses and well-known port 3260. This is a
security problem for me, and, I submit, generically.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: iscsitarget 1.4.20.2-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
Architecture: amd64
Date: Sun Oct 9 08:45:49 2011
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: iscsitarget
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iscsitarget/+bug/871143/+subscriptions
More information about the foundations-bugs
mailing list