I do not have tailscale installed on openwrt, it is installed on proxmox. While testing tailscale I noticed that its always using the relayed connections.
The tailscale docs recommend enabling NAT-PMP and UPnP, but I would like to avoid enabling these do to security risk, is NAT-PMP safe?
The openwrt tailscale wiki does not specify needing port 41641 to be open, so is this not required when installed on openwrt?
However, this thread directly suggest port 41641 needs to be open as well as the linked reddit thread.
So what is the best way to get direct connection working with tailscale and openwrt?
It was not clear from your post.
Sure, enable miniupnpd-nftables using luci-app-upnp. It is decent version and properly configured by default, ie no open control interfac€ to the internet.
noted on this, but why isn't that needed when using tailscale openwrt package?
I forward port 41641 and have direct connection, so it's a good start but have two nodes on my lan for tailscale. So, if one goes down, I can still connect and will look into miniupnpd-nftables.
Not sure what you are doing but this works for me.
MacBook Pro(Tailscale) + OpenWrt Router <-- Internet --> ER-4 Router(Tailscale Exit Node) + LAN
Tailscale Exit Node is installed on the EdgeRouter running EdgeOS and is my Production Router.
Tailscale was installed on the OpenWrt Router as per the OpenWrt Tailscale Wiki some months ago and is my Test Router.
Tailscale was just disabled on the OpenWrt Router for this test.
root@usg-3p:~# tailscale down
root@usg-3p:~# tailscale status
Tailscale is stopped.
root@usg-3p:~#
To verify connection type:
1 MacBook Pro selects ER-4 as the Exit Node.
2 SSH into ER-4 and run tailscale status, the connection type confirmed as direct.
You need to make sure its a direct connection my ping your external nodes, the first few pings use DERP relay but then you should get a direct conection.
Can you post a screenshot that shows the device is using the DERP Servers?
Note, tailscale netcheck will show the nearest DERP Server and also list global DERP Servers, but that does not indicate the device is connecting through a DERP Server.