Guide 04
Node deployment
Add a node in the management interface, then download and deploy its installation script.
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.

| Node | Placement | Role | Console “router role” |
|---|---|---|---|
| External node | A 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 it | Ingress-only |
| Internal node | On the internal network; a fixed internal IP is enough | Only connects outward, and reaches the applications on the internal network; no inbound firewall rules needed | Host-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):
| Machine | Quantity | Specification |
|---|---|---|
| External node | 1 | Ubuntu 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 node | 1 | Same as above; a fixed internal IP is enough |
External node host firewall rules:
| Direction | Source | Destination | Port |
|---|---|---|---|
| Inbound | Devices (employee computers) | External node | TCP 3022 |
| Inbound | Internal node | External node | TCP 6262 |
| Outbound | External node | *.merak.kunansec.com | TCP 443 |
Internal node host firewall rules (no inbound rules needed):
| Direction | Source | Destination | Port |
|---|---|---|---|
| Outbound | Internal node | External node | TCP 6262 |
| Outbound | Internal node | *.merak.kunansec.com | TCP 443 |
| Outbound | Internal node | Each application | The 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):
| Direction | Source | Destination | Port | Notes |
|---|---|---|---|---|
| Inbound | Any source (devices may be outside the office) | External node | TCP 3022 | The devices’ connection entry point |
| Outbound | External node | *.merak.kunansec.com | TCP 443 | Connects to the Merak cloud |
| Outbound | Internal node, devices inside the office | *.merak.kunansec.com | TCP 443 | Internal traffic passes firewall B, then leaves through here |
| NAT | 3022 and 6262 on the public IP | The external node’s internal IP | Same port | Needs 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):
| Direction | Source | Destination | Port | Notes |
|---|---|---|---|---|
| Outbound | Internal node | External node | TCP 6262 | The internal node connects out |
| Outbound | Devices inside the office | External node | TCP 3022 | If employee computers inside the office also use the external node |
| Outbound | Internal node, devices | *.merak.kunansec.com | TCP 443 | Connects 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 second | CPU | Memory | Disk | NIC |
|---|---|---|---|---|
| 100 Mbps | 4 cores | 8 GB | 50 GB SSD | 1 Gbps |
| 300 Mbps | 6 cores | 12 GB | 100 GB SSD | 1 Gbps |
| 500 Mbps | 8 cores | 12 GB | 100 GB SSD | 1 Gbps |
| 1 Gbps | 12 cores | 16 GB | 200 GB SSD | 10 Gbps |
| 1.5 Gbps | 16 cores | 24 GB | 200 GB SSD | 10 Gbps |
| 2 Gbps | 20 cores | 24 GB | 200 GB SSD | 10 Gbps |
| 2.5 Gbps | 24 cores | 32 GB | 200 GB SSD | 10 Gbps |
| 3 Gbps | 28 cores | 32 GB | 200 GB SSD | 10 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
- Sign in to the Merak management interface.
- Click “Nodes” in the left navigation.
The node list appears, with these columns:
| Column | Description |
|---|---|
| Name | The node’s custom name |
| Host | The address of the host the node is on |
| Status | The node’s current connection status |
| Deploy Status | The node’s deployment progress (e.g. Pending) |
| Created | The date the node was created |
| Created By | The ID of the account that created the node |
| Updated | The date it was last updated |
| Actions | Edit or delete |

Step 2 Add a node
- Click the “Add Node” button at the top right.
- In the “Add Node” window that opens, enter the node name (required).
- Click “Create”.
[Tip] Once created, the node is deployed as an on-premises node, and you can download
install.shto run on the target host.

Step 3 Download the installation script
Once the node is created, the system shows the installation details page:
- Check the expiry time shown on the page (the JWT’s validity period).
- Click “DOWNLOAD INSTALL.SH” to save the installation script locally.
- 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.

Step 4 Run the installation on the target host
Upload the downloaded install.sh to the target host and run it. The procedure is:
Upload the installation script to the target host.
scp install.sh <user>@<host-ip>:/home/<user>/Connect to the target host.
ssh <user>@<host-ip>Make it executable.
chmod +x install.shRun the installation script.
sudo ./install.shWait 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
- Go back to the Merak management interface and click the “Nodes” page on the left.
- 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
| Problem | Possible cause | What to do |
|---|---|---|
| The installation script stops right away | Unsupported operating system | Confirm the target host runs Ubuntu Server 24.04 LTS or later. |
| The JWT has expired | Not installed soon after download | Go 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 failed | Check the host’s network connection and run the installation script again. |
| Forgot to download install.sh | It can be downloaded only once | Go 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. |