Install an Access Tier using Tarball
Install the Access Tier on virtual or physical 64-bit Linux servers, on-prem or cloud
Note: Netagent v2 has been released, simplifying the process of installing and configuring an Access Tier:
1. Use an API key with the access_tier scope for registration
2. All agent configuration is done via the Command Center API and UI
If you need to install Netagent v1, use the legacy v1 guides.
Steps
Install the Access Tier via the following four steps.
Step 1. Register your Access Tier
1.1 Log into the Command Center, and navigate from Networks > Access Tiers.
1.2 Select + Create Access Tier, and configure the required parameters when going through the installation wizard. An existing API key is required; these should appear in the dropdown menu of the API Key field on the Configure tab. If you don’t have an existing API key, navigate from Settings > API Keys and select + Add API Key, then select the access_tier scope.
1.3 If you will be using this Access Tier to secure an existing Service Tunnel, enter the required information to set up Service Tunnels.
1.4 Optional: If you want to enable Private Resource Discovery (to view a summary of commonly accessed private resources accessed by end users via Service Tunnels), then, under Advanced Settings, toggle on Enable Private Resource Discovery.
1.5 Select Continue to proceed to the Install tab.
1.6 Take note of the installation parameters for use in subsequent sections.
Step 2. Review the Pre-Install Checklist
Network Reachability
-
The Access Tier server(s) should be located in your internet-facing DMZ and have a public IP address, so that it can be reached from anywhere on the internet.
- Configure a public wildcard DNS record that follows your corporate domain name convention to map to the Access Tier’s public IP address
- A common pattern is to use
*.corp.example.com
. Then, corporate services can be exposed to your users aswebsite1.corp.example.com
,sshserver2.corp.example.com
, etc. - If you’re deploying multiple Access Tiers across multiple locations, you can further scope the subdomains into
*.east.corp.example.com
,*.west.corp.example.com
, etc.
- A common pattern is to use
- Expose the following ports to the internet so the Access Tier can accept inbound connections from the internet:
Ingress Port | Protocol | Traffic | Used by Cloud Secure Edge Service Type |
---|---|---|---|
80 |
TCP | HTTP | N/A (will be redirected to HTTPS) |
443 |
TCP | HTTPS | Hosted Websites |
8443 |
TCP | MTLS | Infrastructure (SSH, RDP, etc) |
51820 |
UDP | WireGuard | Service Tunnel |
- Ensure the Access Tier can make outbound connections to following addresses:
The netagent
binary supports HTTPS proxy settings. If an Egress proxy is configured on the host via the HTTPS_PROXY
environment variable, outbound connections from the Access Tier will automatically use it.
Egress Address | Protocol | Purpose |
---|---|---|
tcp://{shield-location}.banyanops.com:{shield-port} |
TCP | Connect to its Shield (Cluster Coordinator) to receive Policies and send Event data |
https://net.banyanops.com |
HTTPS | Connect to the Command Center for installation and configuration |
https://{orgname}.trust.banyanops.com |
HTTPS | Connect Command Center TrustProvider component to authenticate OIDC JWT tokens used for web access |
- Ensure your networking policies allow traffic to flow from the Access Tier server to backend machines running the applications and services you need to secure access to.
Supported Operating Systems
The netagent
binary, which is the core component of a Access Tier, can be installed on virtual or physical 64-bit Linux servers on most Linux distributions.
Officially Supported: the following distros are officially supported:
- Ubuntu 20.04, 22.04
Support Deprecated: the following Linux distros are no longer supported:
- CentOS 6.x, RHEL 7.x
- Ubuntu 12.04, 14.04, 16.04, 18.04
- Amazon-Linux-2
- CentOS 7.x and RHEL 8.x
Step 3. Download, Configure & Install
Download
Ensure you have assumed root privileges:
user@host$ sudo su -
root@host#
Download and extract the Tarball installer, and cd
into the directory:
# create folder for the Tarball
mkdir -p /opt/banyan-packages
cd /opt/banyan-packages
# download and unzip the files
wget https://www.banyanops.com/netting/netagent-2.8.13.tar.gz
tar zxf netagent-2.8.13.tar.gz
cd netagent-2.8.13
Configure
Before you start the netagent
binary you need to enter its registration parameters - obtained in Step 1 - in the config.yaml
file.
# edit the `config.yaml` file to specify Access Tier registration parameters
# command_center_url # Command Center URL, such as https://net.banyanops.com
# api_key_secret # API key generated via the Command Center ("access_tier" or "Admin" scope)
# access_tier_name # Name of an existing Access Tier in the Command Center
# access_tier_public_address # (optional) public address for this Access Tier, such as "corp-dns-cname.example.com"
# https_proxy # (optional) specify to configure HTTPS_PROXY environment variable
vi config.yaml
Install
# double check the configuration params
cat config.yaml
# run the setup script so netagent can be managed using systemctl
./setup-netagent.sh
# manage using systemctl
sudo systemctl [start|stop|status] netagent
Step 4. Validate
Once the Access Tier is installed, you can check its logs on the host at /var/log/banyan/netagent.log
to ensure it is functioning as expected.
Under Networks > Access Tiers > [Your Access Tier] section of the Command Center, select the Test Connection button to verify that your Access Tier is correctly installed.
Access Tier - Test Connection
Additional Notes
Install via environment variables
Instead of manually creating the config.yaml
file used to configure the Netagent binary, you can instead set environment variables and call a “bootstrap” script to install Netagent. This method is particularly useful for automated deployments.
# Set env vars to specify Access Tier connectivity parameters
export API_KEY_SECRET= # API key generated via the Command Center ("access_tier" or "Admin" scope)
export COMMAND_CENTER_URL= # Command Center URL, such as https://net.banyanops.com
export ACCESS_TIER_NAME= # Name of an existing Access Tier in the Command Center
export ACCESS_TIER_PUBLIC_ADDRESS= # (optional) public address for this Access Tier, such as "corp-dns-cname.example.com"
export HTTPS_PROXY= # (optional) specify to configure HTTPS_PROXY environment variable
# Run the bootstrap script
./x/bin/configure-bootstrap
Upgrading Netagent
Upgrading Netagent is similar to installing it:
Step 1: Download the latest Tarball and extract it
Ensure you have assumed root privileges:
user@host$ sudo su -
root@host#
Download and extract the Tarball installer, and cd
into the directory:
# create folder for the Tarball
mkdir -p /opt/banyan-packages
cd /opt/banyan-packages
# download and unzip the files
wget https://www.banyanops.com/netting/netagent-2.8.13.tar.gz
tar zxf netagent-2.8.13.tar.gz
cd netagent-2.8.13
Step 2: Run the setup script
./setup-netagent.sh
The setup script will ask the user whether they wish to overwrite /opt/banyan/config.yaml
with the installer’s config.yaml
. Enter no
to proceed.
Can’t find what you’re looking for?
We’re happy to help. Contact our team.