Agent Variables

Below are some of the variables that you can use to configure your installation of the Syntropy Agent.

Mandatory Variables

Variable NameDescription
SYNTROPY_AGENT_TOKENAgent authentication token (String)

Generate your agent token here.

👍

Agent Token Example

SYNTROPY_AGENT_TOKEN=nQlSAezB8yxncfPPW#$2mKR4UTqEQ2R5

Optional Variables

Syntropy Controller URL

Variable NameDescription
SYNTROPY_CONTROLLER_URLSyntropy Controller URL

Possible value: controller-prod-platform-agents.syntropystack.com
Example: SYNTROPY_CONTROLLER_URL=controller-prod-platform-agents.syntropystack.com

Syntropy Agent Name

Variable NamoDescription
SYNTROPY_AGENT_NAMESyntropy Agent Name

NB: Agent names should be unique for the account.

Syntropy Network API

Variable NameDescription
SYNTROPY_NETWORK_APIName of Network API

Default value: none
Possible values: docker, kubernetes, host
Example: SYNTROPY_NETWORK_API=docker

Syntropy Namespace

Variable NameDescription
SYNTROPY_NAMESPACEIf using Kubernetes, specify a namespace

Default value: Namespace where agent is deployed
Possible values: namespace names e.g. namespace1 , can be multiple namespaces to read
Example: SYNTROPY_NAMESPACE=namespace1,namespace2

Endpoint Latitude

Variable NameDescription
SYNTROPY_LATLatitude of Endpoint

Default value: none
Possible values: coordinates
Example: SYNTROPY_LAT=40.14

Endpoint Longitude

Variable NameDescription
SYNTROPY_LONLongitude of Endpoint

Default value: none
Possible values: coordinates
Example: SYNTROPY_LON=-74.21

Syntropy Provider

Variable NameDescription
SYNTROPY_PROVIDERDefine the Provider of your endpoint

Use the integer value for the provider you are using

ProviderValueExample
Amazon Web Services1SYNTROPY_PROVIDER=1
Microsoft Azure2SYNTROPY_PROVIDER=2
Google Cloud3SYNTROPY_PROVIDER=3
Alibaba Cloud4SYNTROPY_PROVIDER=4
Oracle Cloud5SYNTROPY_PROVIDER=5
DigitalOcean6SYNTROPY_PROVIDER=6
Rackspace7SYNTROPY_PROVIDER=7
VMware8SYNTROPY_PROVIDER=8
IBM Cloud9SYNTROPY_PROVIDER=9
Vultr10SYNTROPY_PROVIDER=10
HP Enterprise Cloud11SYNTROPY_PROVIDER=11
Tencent Cloud12SYNTROPY_PROVIDER=12
OVH13SYNTROPY_PROVIDER=13
Hetzner14SYNTROPY_PROVIDER=14
Liquid Web15SYNTROPY_PROVIDER=15
Linode16SYNTROPY_PROVIDER=16
Leaseweb17SYNTROPY_PROVIDER=17
Dreamhost18SYNTROPY_PROVIDER=18
INAP19SYNTROPY_PROVIDER=19
a2 Hosting20SYNTROPY_PROVIDER=20
Upcloud21SYNTROPY_PROVIDER=21
Hivelocity22SYNTROPY_PROVIDER=22
Packet23SYNTROPY_PROVIDER=23
Selectel24SYNTROPY_PROVIDER=24

Logging Level

Variable NameDescription
SYNTROPY_LOG_LEVELDefinition of Logging Level
Integer or String Values Accepted

Possible Values are as follows:

ExampleType
SYNTROPY_LOG_LEVEL=DEBUGDEBUG
SYNTROPY_LOG_LEVEL=INFOINFO
SYNTROPY_LOG_LEVEL=WARNINGWARNING
SYNTROPY_LOG_LEVEL=ERRORERROR
SYNTROPY_LOG_LEVEL=CRITICALCRITICAL

Endpoint Tags

Variable NameDescription
SYNTROPY_TAGSEndpoint Tag

Default value: none
Possible values: any string
Example: SYNTROPY_TAGS=tag1

Service Status

Variable NameDescription
SYNTROPY_SERVICES_STATUSBoolean Value determining whether service is enabled or disabled

Default value: false
Possible values: true, false
Example: SYNTROPY_SERVICES_STATUS=true

Port Range

Variable NameDescription
SYNTROPY_PORT_RANGERange of open ports for Wireguard to listen on

Possible values: XXXX-XXXX - x any digit.
Example: SYNTROPY_PORT_RANGE=45541-48666

Allowed IPs

Variable NameDescription
SYNTROPY_ALLOWED_IPSSubnets to allow routing through
  • WORKS ONLY IF SYNTROPY_NETWORK_API='host' *
    Possible values: [{"0.0.0.0/0":"internet"}]
    Example: SYNTROPY_ALLOWED_IPS=[{"127.0.24.0/24":"myvpc"},{"192.168.24.0/32":"vpc"}]

VPN Client setup

Variable NameDescription
VPN_CLIENTWork as VPN client if enabled
  • SYNTROPY AGENT WORKS AS VPN CLIENT ONLY IF VPN_CLIENT='true'
    Possible values: true
    Example: VPN_CLIENT=true
    Default value false means do not create a default route

Maximum Transmission Unit (MTU)

❗️

Danger

You can configure your VPC networks to have a different MTU, but changing it may result in network problems. The MTU is the size, in bytes, of the largest packet supported by a network layer protocol, including both headers and data. This value can vary for different providers.

Don't touch it unless you know what you are doing.

Variable NameDescription
SYNTROPY_MTUThis variable allows changing default Wireguard interfaces MTU
  • SYNTROPY INTERFACES MTU IS CONFIGURABLE *

0 (zero) means use default values.
Example: SYNTROPY_MTU=1400

Create iptables Rules

Variable NameDescription
SYNTROPY_CREATE_IPTABLES_RULESAllows disabling iptables forward rules creation

Default is enabled. Be sure you know what you are doing before changing it.

Cleanup on exit

Variable NameDescription
SYNTROPY_CLEANUP_ON_EXITCleanup on leave created Wireguard interfaces and routes on agent exit.

Default value false means keep created network setup on exit.

Exporter Port

Variable NameDescription
SYNTROPY_EXPORTER_PORTPort number on which start Prometheus exporter to show peers statistics

Port number on which start Prometheus exporter to show peers statistics

Peercheck Time

Variable NameDescription
SYNTROPY_PEERCHECK_TIMEThe time period in seconds how often check connected peers packet latency and loss

Valid values 1..60 seconds. Default is 5 seconds.

Peer check window

Variable NameDescription
SYNTROPY_PEERCHECK_WINDOWWindow size to calculate moving average of packet loss and latency.

How many values use for moving average
This value is like a multiplicator for SYNTROPY_PEERCHECK_TIME
The default value is 24 and with default SYNTROPY_PEERCHECK_TIME
The time window is 2 minutes: 24 * 5 = 120 seconds = 2 minutes

Routedel Threshold

Description
SYNTROPY_ROUTEDEL_THRESHOLDIf this value is configured, then routes to services will be deleted if packet loss (in percents) is bigger than this configured value

Default - unset or 0 (zero) value - do not delete routes.

Dynamic route selection (aka SDN routing) strategy

Variable NameDescription
SYNTROPY_ROUTE_STRATEGYspeed - oriented at choosing fastest path (all routes are treated equally)
dr - tries to use public route (direct route) whenever it is possible, and fallback to SDN, in case of direct route failure, to keep the connection persistent

Default value: speed
Possible values: speed, dr
Example: SYNTROPY_ROUTE_STRATEGY=speed


Next step

After you complete Syntropy Agent Installation, it will appear in Endpoint manager. Proceed further to find how you can manage your endpoints.