I’m running a self hosted instance of NetBird on a cloud VPS. I’ve then installed the client on another VPS which I wish to setup as a backup MX server. On that server I’ve only ports TCP/22 and TCP/25 open. My idea was once NetBird was up and running I could disable TCP/25 on the public interface and connect via NetBird so reducing an attack vector. As soon as I bring up NetBird both those ports become unavailable. How can I continue to expose TCP/25 publicly while still getting the benefits of NetBird?
You should be able to expose 25 publically, the service you use should always bind to the public ip (or all interfaces) and allow clients to connect where and when needed.
What is your netbird config like? Are you connecting over the public IP or the Netbird one? Did you setup an ACL for the NB IP?
Apologies for the long delay in responding I can see the issue now in that when I bring up Netbird any public IP is being rerouted through the wt0 interface and not via the default gateway which is the VPS upstream router.
I presume this is due to setting my local (home) OPNsense router as an exit node. Basically am getting cyclic routing when I perform a tcpdump on the VPS server.
How do I make it route only specific networks back across the wt0 interface and not everything?
OK - I’ve worked it out now when I looked at the Netbird routes list. I had the exit node set to all peers. Changed it so that the VPS is excluded and now all works as expected.