Use a Remote Agent to Access Private Resources Behind a Firewall

The remote agent feature is designed for data that you would like to investigate in LogicHub but can't because it is stored behind your firewall. The remote agent is a lightweight application that you install in your environment to allow access by LogicHub to a location beyond the firewall.

Note: A machine can have only one remote agent installed on it. If you require multiple remote agents, install each on a different machine.

For example, an on-premise Exchange server within your firewall isn't accessible by a LogicHub deployment hosted in AWS. Using the remote agent, you can allow the LogicHub to call the API of the on-premise Exchange server. To allow access,

  1. Add a new remote agent.
  2. Download and install it in your environment.
  3. Select the remote agent when setting up your web API (or other) integration.

A remote agent is always used as part of an integration. If the credentials for your integration are associated with a particular firewall, additional remote agents might be required to provide access to data that is protected by other firewalls.

📘

Outbound connection

The remote agent makes an outbound connection to port 443 of the LogicHub deployment to establish a secure WebSocket connection with the LogicHub deployment.

Add a New Remote Agent

Note: The Remote Agent feature isn't enabled by default in a LogicHub deployment. If you need to use this feature, work with LogicHub technical support to get it enabled on your deployment.

  1. Select Settings > Remote Agents.
  2. Click New.
  3. Enter a name to identify the agent, and click Submit.

The agent is added and listed on the Remote Agents page.

The colored icons associated with the remote agent name indicate the status. Hover over an icon to see the status definition.

  • Yellow. Remote agent is not yet connected.
  • Green. Remote agent is connected and can be used.
  • Red. Remote agent was disconnected due to an error on the remote agent side or LogicHub side. Any connection that uses this agent won’t work. For additional information, see the troubleshooting article.

In addition to the name, the entry for each agent lists the user who created the agent application and the version. Each time the remote agent application is updated, a new version is created.

To delete a remote agent, click the more icon (...) on the right and select Delete.

Download the Remote Agent

You can download and install the remote agent on a Unix or Windows system.

For Unix, the system must have systemd and minimum glibc version 2.12. To check the glibc version, run the command

ldd --version

The remote agent package for Unix contains the following files.

lhub-remote-agent/
     |____ remote-agent        : The executable agent application.
     |____ agent.config        : The agent configuration file. 
     |____ install_and_run.sh  : The script to install and run the agent.

The remote agent package for Windows contains the following files.

lhub-remote-agent/
     |____ remote-agent        : The executable agent application.
     |____ agent.config        : The agent configuration file.
  • remote-agent is the executable agent application.
  • agent-config is the agent configuration file.

To download a remote agent package to a Unix or Windows system:

  1. On the Settings > Remote Agents page, click the Unix or Windows button for the remote agent. A zip file containing the remote agent software is downloaded to your local system.
  2. Unzip the file to a convenient location.

Install and Run the Agent on Unix

  1. Navigate to the directory on the Unix system that contains the unzipped remote agent package.
  2. Run the following script as root. The script sets up the remote agent as a Unix service and starts it.

sudo bash install_and_run.sh

Install and Run the Agent on Windows

  1. Navigate to the Windows folder that contains the unzipped remote agent package.
  2. Open a command window and run the following commands. The first command installs the remote agent as a Windows service, and the second starts the remote agent.

.\remote-agent --startup=auto install
.\remote-agent start

📘

Minimum Windows Version

The remote agent requires Windows Server 2016 or newer.

You can manage the remote agent as you would for any other Unix or Windows service. By default, the agent restarts automatically when the system reboots.

Add a Remote Agent to an Integration

  1. On the Automation > Integrations page, search for and select the integration for which you need access beyond a firewall.
  2. Click Connections.
  1. Enter a label for the integration and the credentials to authenticate to the application you’re integrating with. For Remote Agent, select the remote agent that you created earlier.
  1. Click Connect to save the settings and connect integration. The integration is now in place and ready for use. Open the Settings > Remote Agents page to view the status of the agent at any time.

For more information about setting up integrations, see Add an integration.


Did this page help you?