In this document, you’ll find a step-by-step guide on how to configure Network Connector agents.
Requirements
It's necessary to have the agent Network Connector installed. To do this, follow the steps in the document How to install Network Connector.
Configure Network Connector agents
On the machine where the primary Network Connector agent is installed:
- Locate the
docker-compose.ymlfile of the Network Connector agent. - Change the
SENHASEGURA_SECONDARYparameter value tofalsein the primary agent'sdocker-compose.ymlfile.
The docker-compose.yml file should look like this example:
services:
senhasegura-network-connector-agent:
image: "registry.senhasegura.io/network-connector/agent-v2:latest"
restart: unless-stopped
networks:
- senhasegura-network-connector
environment:
SENHASEGURA_FINGERPRINT: "CHANGE_ME"
SENHASEGURA_AGENT_PORT: "CHANGE_ME"
SENHASEGURA_ADDRESSES: "CHANGE_ME"
SENHASEGURA_AGENT_SECONDARY: "false"
networks:
senhasegura-network-connector:
driver: bridge
Configure secondary agents
- Change the
SENHASEGURA_SECONDARYparameter value totruein thedocker-compose.ymlfile of all secondary agents.
The docker-compose.yml file should look like this example:
services:
senhasegura-network-connector-agent:
image: "registry.senhasegura.io/network-connector/agent-v2:latest"
restart: unless-stopped
networks:
- senhasegura-network-connector
environment:
SENHASEGURA_FINGERPRINT: "CHANGE_ME"
SENHASEGURA_AGENT_PORT: "CHANGE_ME"
SENHASEGURA_ADDRESSES: "CHANGE_ME"
SENHASEGURA_AGENT_SECONDARY: "true"
networks:
senhasegura-network-connector:
driver: bridge
After configuring the agents in the Network Connector Server you can switch agents via an SSH/Telnet connection. Even if you choose to shut down the primary agent, you won’t lose remote access, as the secondary SNC will automatically take over.
Manage the primary and secondary Network Connector
To turn off the Network Connector primary, access the network-connector-ha-dr-one and run the docker-compose down command. To turn off the Network Connector secondary, access the network-connector-ha-dr-two and run the docker-compose down command.
Do you still have questions? Reach out to the Segura® Community.