[Pkg-mpd-maintainers] Bug#785418: Bug#785418: mpd: port 6600 is exposed to non-localhost despite `bind_to_address "localhost"`

Florian Schlichting fsfs at debian.org
Mon May 18 14:50:17 UTC 2015


Hi,

> > The default mpd.socket unit makes mpd available via both IPv4 and IPv6
> > on all interfaces, so you'll likely want to customize the ListenStream
> > directive in a local copy.
> 
> Thanks for your hint, I found the file, changed the directive in
> question to ListenStream=localhost:6600 and probably through "systemctl
> reenable mpd.socket", I managed to apply the change. I guess I'm not
> systemd savvy :-)

Oh, it's (relatively) new for all of us... Just in case you changed the
file in /lib/systemd/system/... (instead of creating a copy in /etc),
have a look at Example 2 at
http://www.freedesktop.org/software/systemd/man/systemd.unit.html#idm139689694041952
for "proper" ways of doing this as the change to the file in /lib will
be overwritten without notice upon the next package upgrade.

> > I'm not sure if this classifies as "systemd
> > common knowledge" that we still need a little time to thoroughly grasp,
> > or if a helpful comment in the mpd sample configuration is called for?
> 
> A comment would probably save this pitfall from some mpd users that have
> proviously only used non-systemd Debian.

Care to make a suggestion?

Florian



More information about the Pkg-mpd-maintainers mailing list