Open coralislands opened 1 week ago
Not sure if this is useful, but looks like the ifconfig thinks that the utun interface is assigned and properly running here.
utun5: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1300 inet 192.168.100.1 --> 0.0.0.0 netmask 0xffffff00
static_host_map:
"192.168.100.1": ["12.248.207.98:4243"]
Your static host map identifies the listening port as 4243
Your lighthouse config is set to listen on 4244
listen:
host: 0.0.0.0
port: 4244
Does it work if you set both of those ports to the same number and restart?
Sorry my bad. I was trying out different ports and did not update the node-config in the last attempt. But even with the updated port in the config, I am running into the same issue.
The next thing to check is that there is no host or network firewall blocking the traffic.
hole punching can't work without lighthouse coordination, so that first connection from a peer to the lighthouse must be permitted by the network.
You could try tcpdump on the lighthouse to see if the peer's UDP traffic is arriving or not.
Regarding lsof, please try running it again with sudo lsof -i :4244
to verify the Lighthouse is listening on the specified port.
As you have updated the port on the node from 4243 to 4244, please provide updated logs - the node logs you shared are showing the erroneous 4243 port. I am curious if the error has changed since correcting the port.
Please also verify that any firewalls on the Lighthouse are allowing UDP traffic on 4244 (and if you have a router in front of the Lighthouse, ensure port forwarding is setup correctly.) As Brad mentioned, you can use tcpdump
to verify whether the packets are making it to the destination.
On both the node and Lighthouse you can run: sudo tcpdump 'dst port 4244'
and then restart Nebula to ensure handshakes are flowing.
What version of
nebula
are you using? (nebula -version
)1.9.4
What operating system are you using?
Mac
Describe the Bug
I have setup 2 Macs - 1 as a lighthouse and other as a node. When I run the config on lighthouse, I can see that the lighthouse is running without any errors and the logs mention it is listening to port 4244 but when I check the "lsof -I :4244", it is empty.
I think this is leading to handshake failure between the node and the lighthouse, and hence unable to connect.
Logs from affected hosts
lighthouse logs
lsof output is empty.
node logs
Config files from affected hosts
lighthouse config file
node config