NetXMS Support Forum

English Support => General Support => Topic started by: gdodd on January 25, 2018, 04:46:58 PM

Title: Agent Tunnel Port Configuration
Post by: gdodd on January 25, 2018, 04:46:58 PM
Is there a way to change the Agent Tunnel Port from 4703 to port 80 or 443 for example? If not, I'd like to make a feature request to allow this. Use case, some of my clients have strict firewall rules and do not allow traffic out except on specific ports, with typical web ports (80/443) being allowed.

Thank you,
Gary
Title: Re: Agent Tunnel Port Configuration
Post by: Victor Kirhenshtein on February 06, 2018, 11:17:47 AM
Hi,

it is supposed to be. You can set listening port on server by changing parameter AgentTunnelListenPort, and on agent side you can specify port after : in ServerConnection parameter. However, due to a bug, agent will always connect to port 4703. It is fixed in current development branch and fix will be included into next release.

Best regards,
Victor
Title: Re: Agent Tunnel Port Configuration
Post by: gdodd on February 06, 2018, 04:10:09 PM
Maybe this is part of the bug. I am on version 2.2.3 and do not have the AgentTunnelListenPort parameter in my server configuration (or I am looking in the wrong place).

Looking forward to the next release as I am eager to get the rest of my clients on NetXMS.
Title: Re: Agent Tunnel Port Configuration
Post by: gdodd on February 28, 2018, 05:39:01 PM
I have tested this with agent 2.2.4 and was able to use ServerConnection = <server_ip>:<port> in the agent config.

Server side I needed to add the parameter (see below) to the config table using my database manager

AgentTunnelListenPort 443 1 1 I N Port server listens on for Agent Tunnels NULL 4703
Title: Re: Agent Tunnel Port Configuration
Post by: Victor Kirhenshtein on February 28, 2018, 06:10:17 PM
Hi,

you can also add any missing configuration parameter directly from UI (there is option "add parameter" in server configuration view) or using nxdbmgr:

nxdbmgr set AgentTunnelListenPort 443

Best regards,
Victor