Public bug reported:

  I connect to the Internet via a BEC ADSL modem/router set up in bridge
mode.  The result of this is that I get a real (static) IP from my
provider, but there is also a RFC1918 address used to manage it.   And
that I have assigned as an alias on my server NIC.  The problem is
specifying that in /etc/default/miniupnd file via
MiniUPnPd_EXTERNAL_INTERFACE.  When /etc/init.d/miniupnpd executes this
line:

EXTIP="$(LC_ALL=C ${IP} addr show ${MiniUPnPd_EXTERNAL_INTERFACE} | grep
"inet " | awk '{ print $2 }' | cut -d"/" -f1)"

  It will  return all of the IP addresses assigned to that NIC.  I fixed
this on my system by adding '-m 1' to grep, like this:

EXTIP="$(LC_ALL=C ${IP} addr show ${MiniUPnPd_EXTERNAL_INTERFACE} | grep
-m 1 "inet " | awk '{ print $2 }' | cut -d"/" -f1)"

  That will of course mean that your external IP must be the first
assignment for that NIC, and that should be noted in the default file.

  With that said, the /etc/miniupnpd/miniupnpd.conf file specifically
mentions the ability to use multiple external IP's (if it's compiled
in), and the supplied init.d file does not support it.  It wouldn't take
much to make the init create the appropriate chains, but deleting the
old ones after a config change would require some thought.   And you'd
still need the '-m 1' :)

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: miniupnpd 1.8.20140523-4
ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
Uname: Linux 4.2.0-16-generic x86_64
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
Date: Tue Jan 12 15:18:25 2016
InstallationDate: Installed on 2016-01-11 (1 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
ProcEnviron:
 LANGUAGE=en_US
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: miniupnpd
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: miniupnpd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug wily

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1533384

Title:
  Unable to use with external NIC that has IP alias

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/miniupnpd/+bug/1533384/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to