Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. NetXMS agent behind NAT switch

NetXMS agent behind NAT switch

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 17.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E
    E
    eugene1
    wrote on last edited by
    #1

    The NetXMS agent is installed on the computer, and the computer is located behind the NAT router on the LAN interface side in the 192.168.0.0/24 subnet. The NetXMS server is installed externally, on the WAN interface of the router in the 10.10.10.0/24 subnet.
    Ā 
    Questions that were not answered in the documentation:

    • which ports to forward on the router from WAN to LAN? one port - one device? for example WAN:4701 -> 192.168.0.2:4700,Ā  WAN:4702 -> 192.168.0.2:4700
    • Is it possible to use a router with port forwarding as a proxy agent?
    • the computer with the agent has been moved to a separate zone on the NetXMS server, for this zone the WAN interface node of the router is specified as a proxy. What other settings need to be made?

    Manual:Ā  Advanced topics — NetXMS Administrator Guide (4.4.1)

    1 Reply Last reply
    0
    • F
      F
      Filipp Sudanov
      wrote on last edited by
      #2

      Yes, to communication from server to agent you need just one port - 4700 on agent side. So yes, if you have several agent nodes behind a firewall, you can forward e.g. 4700, 4701, etc to these agents. Check "Communication through external gateway" checkbox in node properties - this is for the server to allow several nodes with same IP and to build topology information correctly.

      However, this approach is not very convenient, as you need to specify port number for each node. Alternatives are:

      • if you have a machine behind the NAT that is running all the time (or several machines and at least one of them running) you can configure netxms agent there as proxy. In this case communication to other systems will happen through that proxy, you don't need to open any more ports, network discovery will work
      • netxms agent can establish tunnel connection to the server - in this case you don't need any port forwarding

      Proxy agent is specifically netxms agent (with a few params in it's config - EnableProxy=yes, EnableSNMPProxy=yes...). For your router to act as a proxy you need to have a way to install netxms agent there. It's possible to build netxms agent for openwrt, or it can work on mikrotik routers that support docker.

      If you specify some address as proxy for a zone, that agent should be configured to work as proxy. For your approach with port forwarding there's no need to create a zone or specify proxy (buy anyways you can create a zone to group the nodes or to add a proxy in the future)

      1 Reply Last reply
      0
      • E
        E
        eugene1
        wrote on last edited by
        #3

        @filipp-sudanov said in NetXMS agent behind NAT switch:

        Yes, to communication from server to agent you need just one port - 4700 on agent side. So yes, if you have several agent nodes behind a firewall, you can forward e.g. 4700, 4701, etc to these agents. Check "Communication through external gateway" checkbox in node properties - this is for the server to allow several nodes with same IP and to build topology information correctly.

        this option is suitable. The node behind the NAT must then be created manually, but in which section? what is the procedure?

        1 Reply Last reply
        0
        • E
          E
          eugene1
          wrote on last edited by
          #4

          I figured out how to do it myself, thanks šŸ™‚ . the question is closed

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better šŸ’—

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups