On Tue, Oct 30, 2018 at 10:34 PM Troy Dawson <tdawson(a)redhat.com> wrote:
I really like the interface for Mozilla's Gateway , but I was
having problems with the firewall, and now I'm wondering if I'm the
only person seeing this strange ping that it does.
I've gotten the same result off a fresh install of both F28 and
on an x86_64 machine.
I've found that it really like's nodejs 8, so for F28 I use the
standard nodejs, and on F29 I use the nodejs8 module. If I use the
nodejs 10 in F29, I still get the same strange ping, but I also get
other errors as well.
Can you file any issues with nodejs 10 you find upstream? I'm not sure
how best to track upstream issues, maybe we can get a fedora tag?
Anyway, I follow all the steps in the README , including opening
the firewall., but when I do the "npm start", everything runs, but
then I get the following
2018-10-30 14:24:15.349 Service Discovery: changing profile - local
domain is now: f29-iot
2018-10-30 14:24:15.354 Service Discovery: state changed to: true
2018-10-30 14:24:15.858 Unhandled Rejection
2018-10-30 14:24:15.859 Error: Timed out getting default route
That's interesting, I wonder what mechanism it uses to find the default GW.
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)
2018-10-30 14:24:25.187 Checking for add-on updates...
Everything from "Unhandled Rejection" to the end of the trace, isn't
supposed to be there. And then nothing works.
After much code tracing, turning selinux off and on, and finally
looking at the firewall, I found the following solution.
firewall-cmd --zone=public --add-port=5353/udp --permanent
Right, that's adding mdns to the firewall.
BUT ... this shouldn't be happening.
Turns out that pinging this port (and a strange ip address) is
default behavior in the nodejs module dnssd if nothing else is set.
To me it looks like it *is* getting set in src/mdns-server.js, but
it's acting like it's not.
Did you tweak anything in config/default.js
Anyway, in short (to late), can someone try to install gateway on
their fedora machine and let me know if they are seeing the same
So dns-sd will be DNS Service Discovery, I would be it's querying if
it has internet connectivity or something to that effect. You mention
above the details can be set,
The default fedora bits for this are in the
NetworkManager-config-connectivity-fedora package and I think it would
be useful to be able to use those settings,