netbird icon indicating copy to clipboard operation
netbird copied to clipboard

Port 44338/tcp needs to be open in firewalld for SSH access

Open orchard0 opened this issue 10 months ago • 9 comments

Describe the problem

Unless port 44338/tcp is opened in firewalld Netbird SSH access won't work. ufw firewall doesn't need any open ports.

To Reproduce

Steps to reproduce the behavior:

  1. Use a Linux OS using firewalld.
  2. sudo netbird ssh server@ubu

Error received: Error: dial tcp 100.77.74.220:44338: connect: no route to host Couldn't connect. Please check the connection status or if the ssh server is enabled on the other peer

Expected behavior

Netbird SSH access should work without opening any ports in firewalld. This is partly its primary usefulness.

Are you using NetBird Cloud?

Self-host NetBird's control plane.

NetBird version

0.34.1

Additional context

I've tested this on Ubuntu 24.04, Fedora 41 Server and AlmaLinux 9.5.

It should be noted that port 44338/tcp doesn't need to be opened on an external firewall like a router or virtual server's external firewall. It's only need on the Linux OS that's using firewalld.

Turning off firewalld or opening a port using sudo firewall-cmd --add-port=44338/tcp --permanent fixes the issue. Alternatively using ufw also works. However, using ufw is not always an option.

orchard0 avatar Dec 17 '24 10:12 orchard0