Install SureAccess BE Node
The SureAccess Back-End (BE) node runs as a Docker container on a Linux server in your network. It opens an encrypted tunnel to the SureAccess Front-End (FE) node, so managed devices can reach internal resources and selected traffic can exit from your own network.
You need a BE node only for the FE + BE deployment model. To compare the models and configure SureAccess settings, see SureAccess.
Before you start, enable SureAccess (Step 1 of SureAccess) and confirm the FE node shows Running on the Node Details tab. The BE node cannot register until SureAccess is Enabled.
Prerequisites
Supported operating systems
- Ubuntu Server 22.04 LTS
- Ubuntu Server 24.04 LTS
Server sizing
| Resource | Minimum |
|---|---|
| vCPU | 2 |
| RAM | 2 GB |
| Disk | 50 GB SSD |
| Network bandwidth | Depends on the number of devices and the amount of traffic routed through the BE node. |
Other requirements
| Requirement | Details |
|---|---|
| Access | Root or sudo access, and SSH so you can copy and paste commands. |
| Container runtime | Docker Engine with the Docker Compose plugin, plus the docker-compose wrapper described in Install Docker. |
| Shell | bash. The installer must be run with bash, not sh. |
| IP address | A static IP or a DHCP reservation, so the network mask and test URLs stay valid. |
| Internal reachability | The server must reach the internal resources and internal DNS servers that devices will use. |
| Time | Accurate system time (timedatectl shows System clock synchronized: yes). |
Network requirements
Network interfaces: Two NICs are not strictly required, but recommended for secure deployments.
A single network interface is enough for standard setups: the BE node uses it both for the tunnel to the SureAccess FE node and to reach your internal resources. For stricter enterprise environments, we recommend two interfaces: one for outbound connectivity to the FE node and the internet, and a second one isolated for access to internal networks such as databases, intranet apps and internal DNS.
Firewall rules. Allow UDP traffic, both incoming and outgoing, between the BE server and the FE node's IP address and port. Find the FE node's public IP and UDP port under Settings > Account Settings > SureAccess > Node Details.
Step 1: Prepare the Linux server
Use a supported Ubuntu Server LTS release sized as in Server sizing.
Run the below checks:
sudo apt update && sudo apt -y upgrade # bring packages up to date
hostname -I # server IP
timedatectl # System clock synchronized: yes
curl -I https://<your-suremdm-url> # expect an HTTP response
Step 2: Install Docker
The gateway runs as a Docker container. Install Docker Engine with the Compose plugin, and add the docker-compose command the installer expects.
Check first. If Docker is already on the server, skip to the wrapper (item 4 below):
docker --version # "command not found" means Docker isn't installed
docker compose version # Compose plugin
docker-compose version # the command the installer calls
grep -n "docker-compose\|docker compose" install.sh # after Step 4: which command the installer uses
Install Docker with one of these options. Option A gives the current Docker release from Docker's own repository and is recommended. Option B uses Ubuntu's own packages: fewer steps and no third-party repository.
Option A: Docker's repository (recommended)
- Add Docker's signing key:
sudo apt-get update
sudo apt-get install -y ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
- Add Docker's repository. Don't skip this: without it, the next step fails with Unable to locate package docker-ce. Use these short lines; a single long line often breaks when pasted:
CODENAME=$(. /etc/os-release && echo $VERSION_CODENAME)
ARCH=$(dpkg --print-architecture)
echo "deb [arch=$ARCH signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $CODENAME stable" | sudo tee /etc/apt/sources.list.d/docker.list
- Install Docker Engine and the Compose plugin, and start Docker at boot:
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo systemctl enable --now docker
- Create the docker-compose wrapper. The installer calls docker-compose; current Docker provides docker compose:
printf '#!/bin/sh\nexec docker compose "$@"\n' | sudo tee /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
- Verify:
sudo docker run hello-world # prints "Hello from Docker!"
docker-compose version # prints the Compose version
Option B: Ubuntu's packages
Use this if Docker's repository doesn't support your Ubuntu release yet, or your network can't reach download.docker.com.
sudo apt-get update
sudo apt-get install -y docker.io docker-compose-v2
sudo systemctl enable --now docker
Then create the wrapper and verify, as in items 4 and 5 of Option A.
Don't mix the two options. We recommend installing the latest version of Docker.
Verification: hello-world prints Hello from Docker!, and docker-compose version prints a version number.
Step 3: Add the BE node in the SureMDM Console
- Go to Settings > Account Settings > Enterprise Integrations > SureAccess > Node Details.
- Click Add. A BE node appears with status Not Started. Note its Node ID.
- Click SureAccess Gateway Setup. Copy the Enrollment PSK and the installer download link, or click Download.
Create the BE node entry before running the installer. If no BE node in the Not Started state exists, BE registration will fail.
The Enrollment PSK lets a server register as a gateway for your account. Treat it as a secure key and keep it secured.
Step 4: Download and extract the installer
cd ~
curl -fLo installer.tar.gz "https://mars.astrouploads.com/products/vpninstaller_android/installer.tar.gz"
file installer.tar.gz # should report: gzip compressed data
mkdir -p ~/sureaccess
tar -xzf ~/installer.tar.gz -C ~/sureaccess
cd ~/sureaccess/installer
ls -l # install.sh is listed
Step 5: Run the installer
sudo bash ./install.sh
| Prompt | What to enter |
|---|---|
| SureMDM URL | Your full console URL including https\://, for example https\://yourcompany.suremdm.io. |
| Account ID | Your SureMDM Account ID. |
| Pre-shared key | The Enrollment PSK. |
| Node ID | The Node ID from step 3. If left blank, the installer uses a node in the Not Started state. |
| Type of server | BE |
| Replica count | 1 |
| Network Mask | The internal networks this BE node routes to. See below. |
Network Mask
The network mask tells SureAccess which internal networks this BE node serves. The FE node sends traffic for any destination inside these networks to this BE node, which delivers it to the intranet resource. Networks you don't add can't be reached through this BE node, so include every internal network that devices need, and the network of any internal DNS server SureAccess must use.
When the installer reaches Network Mask, it shows a menu that repeats after each choice:
| Option | What it does |
|---|---|
| 1 | Adds the network detected on the server. |
| 2 (Custom) | Lets you type a network in CIDR notation. |
| 3 (Done) | Finishes the list. |
To add the network masks:
- List the internal networks devices must reach, including the network of your internal DNS server.
- For each network, type 2 (Custom) and enter the network address with its prefix in CIDR notation.
- Add each network only once.
- Type 3 (Done). The installer prints NetworkMask: followed by the added entries. Please check the list before continuing.
Option 1 adds the server's own IP address with its prefix, not the network address. Use Custom to enter the network address instead.
A successful first install will display the below:
✔ Network 42gears_net Created
✔ Container code_vpn_0 Started
Step 6: Verify the BE node
- Wait about a minute, then confirm registration:
sudo docker logs code_vpn_0 2>&1 | grep REGISTRATION
Expected: REGISTRATION\_SUCCESS.
- Confirm the BE–FE tunnel:
sudo docker exec code_vpn_0 wg show | grep -E "endpoint|handshake|transfer"
Healthy: latest handshake under about 2 minutes old, and received above 0 B and growing. Run sudo docker exec code_vpn_0 wg to see the full output.
3. In the console, open Node Details and click Refresh. The BE node shows Active with the network masks you entered.
Verification: logs show REGISTRATION_SUCCESS, wg show reports a recent handshake with data received, and the BE node is Active in the console.