Created attachment 176824 [details] v1 patch # issue hardcodes em0 as the interface and provides no knob to swap this. https://svnweb.freebsd.org/ports/head/dns/openmdns/files/mdnsd.in?view=markup#l16 # fix - add a knob - set lo0 as a risk-free default I couldn't think of a better option, considering http://securityaffairs.co/wordpress/35607/hacking/mdns-amplify-ddos-attack.html although I have no idea if openmdns is at risk here.
Created attachment 176828 [details] v2 patch It seems ${name}_flags is already appended into command_args automatically. v2 patch does the right thing when no parameters are set or when flags are set.
A commit references this bug: Author: jbeich Date: Wed Nov 9 20:21:05 UTC 2016 New revision: 425803 URL: https://svnweb.freebsd.org/changeset/ports/425803 Log: dns/openmdns: fix interface selection in rc.d - Don't append default interface when /etc/rc.conf has mdnsd_flags - Switch to lo0 as a more predictable (but less useful) default interface PR: 214366 Submitted by: Dave Cottlehuber <dch@skunkwerks.at> Changes: head/dns/openmdns/Makefile head/dns/openmdns/files/mdnsd.in
A commit references this bug: Author: jbeich Date: Wed Nov 9 21:13:13 UTC 2016 New revision: 425807 URL: https://svnweb.freebsd.org/changeset/ports/425807 Log: dns/openmdns: document rc.d minimally PR: 214366 Changes: head/dns/openmdns/Makefile head/dns/openmdns/files/mdnsd.in
Thanks. Landed. em0 by default was based on OpenBSD port[1] but lo0 is more likely to be present on a system. I've added comments to rc.d script rather than a generic pkg-message. [1] http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/net/openmdns/pkg/mdnsd.rc http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/net/openmdns/pkg/README