On Fri, Mar 02, 2018 at 03:28:12AM +0100, miniupnp wrote:
> It can happen if minissdpd is run with -6 option to enable IPv6 but the
> network interface to listen to is not specified correctly by name (eth0).
> Please check what command line arguments are used.
> It should be something like
> minissdpd -6 -i eth0
> NOT
> minissdpd -6 -i 192.168.1.0

With default unmodified config (I purged and re-installed, just in case),
the daemon gets started with:
    /usr/sbin/minissdpd -i 0.0.0.0 -6
which causes "peer **** is not from a LAN" spam.

After manually changing /etc/default/minissdpd to have:
MiniSSDPd_INTERFACE_ADDRESS=br0
(on this particular machine the only configured interface is a bridge
because lxc and qemu, but same symptoms happen with just eth0)

Mar  3 04:10:34 umbar minissdpd[8554]: 1 new devices added
Mar  3 04:10:34 umbar minissdpd[8554]: 1 new devices added
Mar  3 04:10:35 umbar minissdpd[8554]: 1 new devices added
Mar  3 04:10:35 umbar minissdpd[8554]: 1 new devices added
Mar  3 04:10:35 umbar minissdpd[8554]: 1 new devices added
Mar  3 04:10:35 umbar minissdpd[8554]: 1 new devices added
Mar  3 04:10:35 umbar minissdpd[8554]: 1 new devices added
Mar  3 04:10:36 umbar minissdpd[8554]: 1 new devices added

There's only a single router, and it gets listed with only its IPv6 address.
The message repeated 8 times is only a cosmetic issue of course, compared to
the daemon not working.

So it looks like, if the daemon requires configuration, this would get
solved by something (the init script?  the daemon itself) autodetecting
interface to use.

In the common case of only a single router, it's trivial:

[~]$ ip -4 route|grep ^default
default via 192.168.0.1 dev br0 
[~]$ ip -6 route|grep ^default
default via fe80::ae22:5ff:fef0:8f3 dev br0 metric 1024 onlink pref medium

Obviously, it'd be preferable if the daemon listened on all interfaces, but
if it needs one, the default route is a reasonable answer.


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ A dumb species has no way to open a tuna can.
⢿⡄⠘⠷⠚⠋⠀ A smart species invents a can opener.
⠈⠳⣄⠀⠀⠀⠀ A master species delegates.

Reply via email to