NetXMS Support Forum

Development => General => Topic started by: intense on April 28, 2020, 12:43:12 PM

Title: Auto discovery of node in NAT network
Post by: intense on April 28, 2020, 12:43:12 PM
Hi all,
I would like to know if it's possible to discover automatically a node, which is a vm in a NAT network and hold a netxms agent. This setup is installed on my local laptop.
From my local laptop I'm connected to a netxms-server through vpn. I'm able to connect to this node manually, by creating this node in the management console and adding a port forwarding rule to the preferences of my vm so the tcp request of the configuration poll is forwarded from my laptop to the vm
but I would like to know if it's possible to do it automatically like in "network discovery".
Title: Re: Auto discovery of node in NAT network
Post by: Tursiops on April 30, 2020, 05:17:01 AM
This is really more a general support than a development question.

Your laptop cannot auto-discover devices behind a NAT. If it could, anyone on the internet could get into your network, too. If you are using port forwards, I'd suggest locking them down to only your NetXMS server.
Alternatively you can look at Agent Tunnels. In those setups, the Agent will establish a connection to the server as opposed to the server connecting to the client.
The server obviously must be reachable from the client. If both are behind a NAT you'll need to open a port somewhere. Opening the server side up means you only have to do it once to the server, not for every single agent behind a NAT. If you can lock that down for some additional security depends on your setup.

There have been a lot of posts regarding Agent Tunnel setups over time, I recommend searching the forum (and for additional questions to create a post in the support, as opposed to the development one).