<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[agent-to-server connections]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">This little line in the Changelog got me all excited: "Experimental agent-to-server connections (agent tunnels)"<br />
But how do I experiment with these experimental connections? <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.netxms.org/topic/5001/agent-to-server-connections</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:16:16 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5001.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Apr 2017 22:06:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to agent-to-server connections on Tue, 19 Sep 2017 21:07:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">Certificate is in PEM format.<br />
I found solution of this problem.<br />
The certificate file consists of two parts: certificate and private key, e.g.:<br />
-----BEGIN RSA PRIVATE KEY-----<br />
xxx<br />
-----END RSA PRIVATE KEY-----<br />
-----BEGIN CERTIFICATE-----<br />
yyy<br />
-----END CERTIFICATE-----<br />
Problem occurs when private key part is first and certificate part is second.<br />
When certificate part is first, everything is fine.</p>
<p dir="auto">Regards, Grzegorz.</p>
]]></description><link>https://forum.netxms.org/post/23107</link><guid isPermaLink="true">https://forum.netxms.org/post/23107</guid><dc:creator><![CDATA[ditonet]]></dc:creator><pubDate>Tue, 19 Sep 2017 21:07:24 GMT</pubDate></item><item><title><![CDATA[Reply to agent-to-server connections on Tue, 19 Sep 2017 18:43:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">most likely certificate format is wrong. Server expects it to be in PEM format.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/23094</link><guid isPermaLink="true">https://forum.netxms.org/post/23094</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 19 Sep 2017 18:43:36 GMT</pubDate></item><item><title><![CDATA[Reply to agent-to-server connections on Tue, 19 Sep 2017 12:52:02 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I'm trying to run agent-to-server connection, but log says:<br />
Cannot load server certificate from C:\NetXMS\Certs\NetXMS_Server.crt (error:0906D06C:PEM routines:PEM_read_bio:no start line)<br />
NetXMS runs on Windows Server 2008 R2<br />
Any ideas?</p>
<p dir="auto">Regards, Grzegorz.</p>
]]></description><link>https://forum.netxms.org/post/23090</link><guid isPermaLink="true">https://forum.netxms.org/post/23090</guid><dc:creator><![CDATA[ditonet]]></dc:creator><pubDate>Tue, 19 Sep 2017 12:52:02 GMT</pubDate></item><item><title><![CDATA[Reply to agent-to-server connections on Mon, 11 Sep 2017 13:55:34 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have finally got agent-to-server connections working in version 2.1.1 (same certificate issues as Tursiops).</p>
<p dir="auto">I created the nodes with the 0.0.0.0 address and bound the agents to the nodes and they connected, but any status or dci polls returned "&lt;error&gt;". </p>
<p dir="auto">Once I entered the external ip of the tunnel into the node everything started working.  I have about 45 of these sites set up this way and some of them have dhcp connections to their isp's so I don't know yet if a change of ip on the tunnel will break it.</p>
<p dir="auto">Would it be possible to put some indication on the object details screen (capabilities or general grid) that a tunnel is connected and maybe its ip or id? ( assuming we have to go back to the 0.0.0.0 address )</p>
<p dir="auto">thx</p>
]]></description><link>https://forum.netxms.org/post/23066</link><guid isPermaLink="true">https://forum.netxms.org/post/23066</guid><dc:creator><![CDATA[StanHubble]]></dc:creator><pubDate>Mon, 11 Sep 2017 13:55:34 GMT</pubDate></item><item><title><![CDATA[Reply to agent-to-server connections on Sun, 14 May 2017 22:31:04 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">The node in question was (and is) completely unreachable to the server, unless the tunnel was working.<br />
Inbound active server-&gt;agent connections are being rejected by the firewall in that network.</p>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.netxms.org/post/22308</link><guid isPermaLink="true">https://forum.netxms.org/post/22308</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Sun, 14 May 2017 22:31:04 GMT</pubDate></item><item><title><![CDATA[Reply to agent-to-server connections on Fri, 12 May 2017 16:15:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">it's strange that 0.0.0.0 is not working - it did on my system. Are you sure that after you set system IP server uses tunnel istead of direct connection? Also, in 2.1-RC1 that just released we have added tunnel manager in the GUI, so you can see active tunnels and bind/unbind them from UI.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/22297</link><guid isPermaLink="true">https://forum.netxms.org/post/22297</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 12 May 2017 16:15:36 GMT</pubDate></item><item><title><![CDATA[Reply to agent-to-server connections on Thu, 11 May 2017 06:51:40 GMT]]></title><description><![CDATA[<p dir="auto">Ok, found the final issue.</p>
<p dir="auto">Using 0.0.0.0 as the agent IP did not work.<br />
Using the systems actual IP address once the tunnel was bound did work.</p>
]]></description><link>https://forum.netxms.org/post/22290</link><guid isPermaLink="true">https://forum.netxms.org/post/22290</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Thu, 11 May 2017 06:51:40 GMT</pubDate></item><item><title><![CDATA[Reply to agent-to-server connections on Fri, 21 Apr 2017 04:13:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi again,</p>
<p dir="auto">Hope this thread helps other people who might want to try the new experiemental agent-&gt;server connection functionality.</p>
<p dir="auto">After spending some more time on this, I guess it all depends on how you set up your CA.<br />
I used the following guide: <a href="https://jamielinux.com/docs/openssl-certificate-authority/index.html" rel="nofollow ugc">https://jamielinux.com/docs/openssl-certificate-authority/index.html</a><br />
Now, that's where I managed to become confused between the Wiki article and the above guide.</p>
<p dir="auto">The NetXMS Wiki says to link to the CA certificate and a combined Server certificate/key.<br />
The latter is presumably meant to sign additional certificates, but my server certificate was not authorised to do that.<br />
Instead, I had to put my Intermediate CA certificate and key in as "ServerCertificate" and now the tunnels are up, bound and showing in NetXMS.</p>
<p dir="auto">What's still not working for me is actual data collection:</p>
<ul>
<li>Status polls return unknown status, configuration polls don't run due to node unreachable.</li>
<li>DCIs all show &lt;ERROR&gt;</li>
<li>The only exception is a full configuration poll, which happily detects the agent.</li>
</ul>
<p dir="auto">I wasn't quite sure if this was Zone related, so I moved the nodes in question into the Default zone "just in case", but it made no difference.<br />
The communication IP is set to 0.0.0.0 as per Wiki.</p>
<p dir="auto">Not sure what else I might possibly be missing at this stage?</p>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.netxms.org/post/22207</link><guid isPermaLink="true">https://forum.netxms.org/post/22207</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Fri, 21 Apr 2017 04:13:26 GMT</pubDate></item><item><title><![CDATA[Reply to agent-to-server connections on Fri, 21 Apr 2017 02:55:56 GMT]]></title><description><![CDATA[<p dir="auto">Hi again,</p>
<p dir="auto">I went through some of the code and think I have a better understanding on how nodes are bound to tunnels now.<br />
Posting some of this information here in case it might be helpful to others (even though my tunnels still are not working due to TLS handshake problems).</p>
<p dir="auto">The agent connects without a certificate and the server generates one for the agent. The certificate contains the agent's GUID as common name. So whenever it connects afterwards, the server knows which node it's talking to, so there is no need to store any node&lt;-&gt;tunnel reference in the database. Which means all I need to do to "start fresh" is to delete the certificate, which by default (on Windows) is stored in %localappdata%\nxagentd\certificates. So for the standard Windows agent which is running as Local System that would be C:\Windows\System32\config\systemprofile\AppData\Local\nxagentd\certificates. Delete the certificates and the tunnel will show up as unbound on the server again.</p>
<p dir="auto">That basically answered my last two questions. It just doesn't tell me why the TLS handshake is failing.  <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f615.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--confused" style="height:1.4em;width:auto;vertical-align:middle" title=":-\" alt="😕" /></p>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.netxms.org/post/22206</link><guid isPermaLink="true">https://forum.netxms.org/post/22206</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Fri, 21 Apr 2017 02:55:56 GMT</pubDate></item><item><title><![CDATA[Reply to agent-to-server connections on Fri, 21 Apr 2017 01:37:01 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">I've been trying to get this to work, but it appears I'm getting something wrong with the certificates, leading to tunnels not working from the moment I bind them.</p>
<p dir="auto">After setting up a CA on the NetXMS server, I configured NetXMS as per the Wiki article.<br />
When a node connects, I see an unbound tunnel. I bind it and see the following in the logs:</p>
<pre><code>[DEBUG] IssueCertificate: new certificate request (CN override: &lt;NODE GUID&gt;)
[DEBUG] IssueCertificate: new certificate issued successfully
[DEBUG] [TUN-1] Certificate issued
</code></pre>
<p dir="auto">After that, the tunnel disappears and the client logs just keep telling me the TLS handshake is failing, and the server logs give me "verification error 20 (unable to get local issuer certificate)" and "verification error 2 (unable to get issuer certificate)". I translate that as "I don't trust your intermediate/CA cert, go away".<br />
Next I installed the CA and Intermediate cert on the actual node, but that did not make any difference.<br />
The certificate chain on the NetXMS server verifies ok and the server is not complaining about the certificates at startup either, but confirms they loaded ok.<br />
Not sure if I am missing something with the certificate setup?</p>
<p dir="auto">And another question, is there a way to "unbind" tunnels I setup for testing?<br />
Once I bind them, I can neither see the tunnels as "Bound" or "Unbound" and cannot find a way to remove that link in the Console or in the database. Short of wiping the nodes and re-adding them, how do I remove those node&lt;-&gt;tunnel links?</p>
<p dir="auto">I also can't see where the client certificates are actually stored on the node?</p>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.netxms.org/post/22205</link><guid isPermaLink="true">https://forum.netxms.org/post/22205</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Fri, 21 Apr 2017 01:37:01 GMT</pubDate></item><item><title><![CDATA[Reply to agent-to-server connections on Sun, 09 Apr 2017 09:19:43 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">this is short configuration instruction: <a href="https://wiki.netxms.org/wiki/How_to_configure_agent_to_server_connection" rel="nofollow ugc">https://wiki.netxms.org/wiki/How_to_configure_agent_to_server_connection</a></p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/22140</link><guid isPermaLink="true">https://forum.netxms.org/post/22140</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Sun, 09 Apr 2017 09:19:43 GMT</pubDate></item></channel></rss>