Package: miniupnpd
Version: 1.7-4
Severity: normal

Please, make 'MiniUPnPd_LISTENING_IP' option in '/etc/default/miniupnp'
optional for init script. This is needed to make daemon listen for requests on
two or more interfaces. (for me this is br0 and br2).

Commenting following section in init script - solves the problem for me, but 
this
is dirty hack.

#if [ -z "${MiniUPnPd_LISTENING_IP}" ]
#then
#       log_daemon_msg "${DAEMON_NAME}: no listening IP defined: exiting"
#       log_end_msg 1
#
#       exit 0
#fi

This line also need to be changed (miniupnpd.init:151):

-start-stop-daemon -q --start --exec "/usr/sbin/miniupnpd" -- -i 
${MiniUPnPd_EXTERNAL_INTERFACE} -o ${EXTIP} -a ${MiniUPnPd_LISTENING_IP} 
${MiniUPnPd_OTHER_OPTIONS}
+start-stop-daemon -q --start --exec "/usr/sbin/miniupnpd" -- -i 
${MiniUPnPd_EXTERNAL_INTERFACE} -o ${EXTIP} ${MiniUPnPd_OTHER_OPTIONS}


Possible way to fix: ignore value if empty.
Something like this (in initscript, instead of code above):

if [ ! -z "${MiniUPnPd_LISTENING_IP}" ]; then
  MiniUPnPd_OTHER_OPTIONS="-a ${MiniUPnPd_LISTENING_IP} 
${MiniUPnPd_OTHER_OPTIONS}"
elif [ "x${MiniUPnPd_LISTENING_IP}" == "xconfig" ]; then
  # pass
else
  log_warning_msg "Warning, you don't set listening ip for $NAME"
  log_warning_msg "Daemon will listen on '0.0.0.0/0'. Possible this is not you 
want."
fi

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-3-686-pae (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages miniupnpd depends on:
ii  debconf [debconf-2.0]  1.5.46
ii  iproute                20120521-3
ii  iptables               1.4.14-3
ii  libc6                  2.13-35
ii  net-tools              1.60-24.1
ii  uuid-runtime           2.20.1-5.1


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to