Chapters Node deployment

Guide 04

Node deployment

Add a node in the management interface, then download and deploy its installation script.

Updated

Intended for: users with administrator permissions, and the people responsible for on-premises deployment.

Overview

A node is the on-premises / cloud component of the Merak Zero Trust platform. It establishes a secure network access tunnel on the target host.

Where to place nodes

The standard architecture uses two nodes: an “external node” in the DMZ or the cloud with a public IP, and an “internal node” on the internal network. Employee computers (devices) connect to the external node first, and the external node carries the connection through the internal node to applications on the internal network. Only the external node needs to accept inbound connections; the internal firewall does not change.

The standard two-node architecture: devices connect to the external node, which reaches internal applications through the internal node

NodePlacementRoleConsole “router role”
External nodeA DMZ or cloud host with a fixed public IP (or domain name)The entry point for user connections; devices and the internal node both connect to itIngress-only
Internal nodeOn the internal network; a fixed internal IP is enoughOnly connects outward, and reaches the applications on the internal network; no inbound firewall rules neededHost-capable

Key points of the architecture:

  • Every user and node must be authenticated by the Merak Auth Server, using MFA and TLS 1.3 mutual certificates.
  • Users see only the services they are granted. For example, if ERP and RD sit on the same network segment and vendor B is granted only ERP, vendor B cannot scan or probe RD.

Prerequisites

Prepare the machines and firewall settings below before installing. In the tables, inbound means connections coming in (others connecting to it) and outbound means connections going out (it connecting to others).

Machine requirements (minimum):

MachineQuantitySpecification
External node1Ubuntu Server 24.04 LTS or later (64-bit), 2 cores / 4 GB memory / 20 GB disk, root privileges; needs a fixed public IP (or domain name)
Internal node1Same as above; a fixed internal IP is enough

External node host firewall rules:

DirectionSourceDestinationPort
InboundDevices (employee computers)External nodeTCP 3022
InboundInternal nodeExternal nodeTCP 6262
OutboundExternal node*.merak.kunansec.comTCP 443

Internal node host firewall rules (no inbound rules needed):

DirectionSourceDestinationPort
OutboundInternal nodeExternal nodeTCP 6262
OutboundInternal node*.merak.kunansec.comTCP 443
OutboundInternal nodeEach applicationThe application’s own port
  • If the external node sits behind a firewall and uses an internal IP (for example in a DMZ), set up port forwarding on the firewall so TCP 3022 and 6262 on the public IP reach the external node.
  • Outbound TCP 443 must connect directly: it cannot go through a proxy server or be subject to HTTPS inspection (SSL decryption).
  • During installation you must fill in the “Host”: the external node’s public IP or domain name (the “Host” column on the Console’s nodes page). It cannot be changed afterwards.
  • Customers who have purchased Merak Agentless must also open inbound TCP 443 on the external node.

[Important] The installation script contains the enrollment JWT and can be downloaded only once, so keep it safe. If it is lost, the JWT must be regenerated.

Setting up two firewalls

If your company has two firewalls — firewall A between the internet and the external node, and firewall B between the external node (DMZ) and the internal network — configure them as below. Each firewall’s inbound/outbound is defined from the side it protects; anything not listed stays closed.

Firewall A (protects the DMZ; inbound = internet → DMZ, outbound = DMZ → internet):

DirectionSourceDestinationPortNotes
InboundAny source (devices may be outside the office)External nodeTCP 3022The devices’ connection entry point
OutboundExternal node*.merak.kunansec.comTCP 443Connects to the Merak cloud
OutboundInternal node, devices inside the office*.merak.kunansec.comTCP 443Internal traffic passes firewall B, then leaves through here
NAT3022 and 6262 on the public IPThe external node’s internal IPSame portNeeds port forwarding when the external node uses an internal IP

Firewall B (protects the internal network; inbound = DMZ → internal network, outbound = internal network → DMZ or internet):

DirectionSourceDestinationPortNotes
OutboundInternal nodeExternal nodeTCP 6262The internal node connects out
OutboundDevices inside the officeExternal nodeTCP 3022If employee computers inside the office also use the external node
OutboundInternal node, devices*.merak.kunansec.comTCP 443Connects to the Merak cloud, then passes firewall A
Inbound(none)(none)(none)No inbound rules at all — this is the point of using two nodes

[Important] The “Host” address: the internal node and devices inside the office all connect using the external node’s “Host” address. Many firewalls do not allow connecting from the internal network to their own public IP (no NAT loopback). Choose one of these:

  • Recommended: set the “Host” to a domain name, and have internal DNS resolve it to the external node’s internal DMZ IP (split DNS). Internal connections then pass only firewall B, and firewall A does not need TCP 6262 open.
  • Or turn on NAT loopback on firewall A so the internal network can reach the public IP.

Hardware sizing

Each node is one VM; choose a tier by peak traffic per second. The table gives preliminary recommendations; adjust them after an on-site assessment.

Peak traffic per secondCPUMemoryDiskNIC
100 Mbps4 cores8 GB50 GB SSD1 Gbps
300 Mbps6 cores12 GB100 GB SSD1 Gbps
500 Mbps8 cores12 GB100 GB SSD1 Gbps
1 Gbps12 cores16 GB200 GB SSD10 Gbps
1.5 Gbps16 cores24 GB200 GB SSD10 Gbps
2 Gbps20 cores24 GB200 GB SSD10 Gbps
2.5 Gbps24 cores32 GB200 GB SSD10 Gbps
3 Gbps28 cores32 GB200 GB SSD10 Gbps

[Tip] The traffic figures are peak traffic per second (Mbps, Gbps), not file sizes or monthly totals.

How to choose a tier:

  • Estimate the peak traffic per second and pick the tier at or above it.
  • With the post-quantum encryption module, go one tier higher (encryption uses more CPU).
  • If your security policy requires separating the outside network (users connecting in from the internet) from the inside network (connections to internal systems), the node host needs two NICs, one facing out and one facing in; otherwise one is enough.
  • At 500 Mbps and above, a standby node is recommended.

Step 1 Open the nodes page

  1. Sign in to the Merak management interface.
  2. Click “Nodes” in the left navigation.

The node list appears, with these columns:

ColumnDescription
NameThe node’s custom name
HostThe address of the host the node is on
StatusThe node’s current connection status
Deploy StatusThe node’s deployment progress (e.g. Pending)
CreatedThe date the node was created
Created ByThe ID of the account that created the node
UpdatedThe date it was last updated
ActionsEdit or delete

The node list

Step 2 Add a node

  1. Click the “Add Node” button at the top right.
  2. In the “Add Node” window that opens, enter the node name (required).
  3. Click “Create”.

[Tip] Once created, the node is deployed as an on-premises node, and you can download install.sh to run on the target host.

The Create Node window

Step 3 Download the installation script

Once the node is created, the system shows the installation details page:

  1. Check the expiry time shown on the page (the JWT’s validity period).
  2. Click “DOWNLOAD INSTALL.SH” to save the installation script locally.
  3. Once the download has finished, click “Done”.

[Notes] The installation script contains the enrollment JWT and can be downloaded only once, so keep it safe straight away; if the JWT has expired or you need to reinstall, click “Regenerate JWT” to get a new installation script; Ubuntu Server 24.04 LTS or later is supported.

The installation details page, with the DOWNLOAD INSTALL.SH and Regenerate JWT buttons

Step 4 Run the installation on the target host

Upload the downloaded install.sh to the target host and run it. The procedure is:

  1. Upload the installation script to the target host.

    scp install.sh <user>@<host-ip>:/home/<user>/
  2. Connect to the target host.

    ssh <user>@<host-ip>
  3. Make it executable.

    chmod +x install.sh
  4. Run the installation script.

    sudo ./install.sh
  5. Wait for the installation to finish.

The installation script automatically downloads and installs the required packages, registers the node with the Merak controller (using the enrollment JWT it contains), and starts the node service. When installation succeeds, the terminal shows an installation complete message.

Step 5 Check the node status

  1. Go back to the Merak management interface and click the “Nodes” page on the left.
  2. Confirm the node you just created now shows the status “Online”.

If the status still shows “Pending” or “N/A”, check: whether the installation script ran successfully, whether the target host can reach the external network, and whether the JWT is still within its validity period.

FAQ

ProblemPossible causeWhat to do
The installation script stops right awayUnsupported operating systemConfirm the target host runs Ubuntu Server 24.04 LTS or later.
The JWT has expiredNot installed soon after downloadGo back to the nodes page, open the node’s details, and click “Regenerate JWT” at the top right.
The node status stays at “Pending”No network, or installation failedCheck the host’s network connection and run the installation script again.
Forgot to download install.shIt can be downloaded only onceGo back to the nodes page and click “Download Install Kit” to download it again.
Need to delete a node—Choose “Delete” in that node’s actions.