Your idea is worthwhile. However, the problem remains: which one is your wan ip? In your case it's the first one, in others' it may be the second one, the third one, that could be endless, not to say in some extreme situations, such ip will not show on the interface (behind DNAT). Much worse, miniupnpd itself will detect wan ip within the program when you don't tell it the external ip, which is far from init script can manage.
By the way, multiple external IP is yet another buggy thing which I'm not going to fix (see https://bugs.debian.org/cgi- bin/bugreport.cgi?bug=685649#32 ). Nevertheless, I will try to figure out how miniupnpd detects external ip and make init script behave the same as it (which might be just exactly '-m 1'). ** Bug watch added: Debian Bug tracker #685649 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685649 ** Changed in: miniupnpd (Ubuntu) Status: New => In Progress -- 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