Skip to content

Deploy a server

A TAK server is what carries ATLAS captures to the rest of the team while a job is running. Without one, every record stays on the handset that took it.

This page builds one from nothing: the machine it runs on, the install, the certificate every client depends on, the ports it opens, and the accounts the operators will use.

Then connect a handset and see the data in TAK.

1 Running
The OpenTAKServer dashboard showing CPU, disk and memory gauges with a Server Details panel naming the version
2 Accounts
The Users admin page listing administrator plus the two operator accounts atlas_p7 and atlas_p8
3 Mission
The Missions page with one mission named DoppelgangerAtlas
4 Checked in
The EUDs page listing two handsets with callsigns, device models, platform and the account each one authenticated as
A deploy end to end. The server answering, the two operator accounts, the mission they share, and the handsets checked in against it.
  1. Server Status. Up at all means nginx and the app are both answering.
  2. The version you are actually running.
  3. Add User. The admin makes every account.
  4. An operator account. Role User, Active on.
  5. New Mission. It needs a device checked in first.
  6. Default Role, which decides what a handset may do.
  7. Username, tying each device to the account it authenticated as.
  8. Last Event reading Connected, the server's own word for a live link.

A lab instance is small. Four cores, 4GB and 32GB of disk carried two handsets, two clients each, with the processor idle.

Do not let the hypervisor balloon it. On an overcommitted host the guest was squeezed from a nominal 4096MB down to 1867MB, and an ordinary memory spike during installation became an out of memory kill. Pinning the memory costs nothing and removes a failure that looks like a corrupt download.

One command, run as a normal user with sudo rights. Not as root, which it refuses.

Install takes about fifteen minutes on a 4 core guest
$ curl -s -L https://i.opentakserver.io/ubuntu_installer | bash -

It asks two questions while it runs.

QuestionAnswerWhy
Would you like to install ZeroTier?nan overlay network you do not need for a server your handsets can already reach
Would you like to install Mumble Server?nvoice, which ATLAS does not use

It finishes on Setup is complete and OpenTAKServer is running, with the address to open. Check the services before you trust it.

Verify
$ systemctl is-active opentakserver cot_parser eud_handler eud_handler_ssl nginx rabbitmq-server postgresqlactiveactiveactiveactiveactiveactiveactive

An eighth service, mediamtx, starts and exits after a few seconds on a stock install. It carries video, nothing ATLAS does touches it, and the server is fully usable with it down.

Point the certificate at the address your clients will use

Section titled “Point the certificate at the address your clients will use”

The installer issues the server certificate for the name opentakserver and nothing else. If your clients reach this server by IP address, every one of them will refuse to connect until you fix that. ATLAS reports CERTIFICATE_VERIFY_FAILED: IP address mismatch, ATAK fails to enroll, and browsers show a certificate warning.

This is what it looks like on a handset when you skip this step. The package is correct, the address is correct, and it still will not connect.

The ATLAS TAK Server screen with a red error panel reading Connection failed, HandshakeException, CERTIFICATE_VERIFY_FAILED, IP address mismatch
The failure this step prevents. Nothing on the handset can fix it.
  1. Still Disconnected, with the address it tried underneath.
  2. IP address mismatch. The certificate does not name the address you dialed.
  3. The package loaded cleanly. This is not a bad package.

Do this before you hand a package to anybody.

1. Add the address to the certificate’s own configuration. The file ends without a newline, so lead with one.

Name the address
$ printf 'IP.1 = 10.10.150.70' >> ~/ots/ca/certs/opentakserver/opentakserver_config.cfg$ sed -n '/[alt_names]/,$p' ~/ots/ca/certs/opentakserver/opentakserver_config.cfg[alt_names]DNS.1 = opentakserverIP.1 = 10.10.150.70

2. Re-sign the request that is already there, keeping the existing key so nothing else in the install goes stale, then append the authority and restart.

Re-sign and restart
$ openssl x509 -sha256 -req -days 3650   -in  ~/ots/ca/certs/opentakserver/opentakserver.csr   -CA  ~/ots/ca/ca.pem -CAkey ~/ots/ca/ca-do-not-share.key   -out ~/ots/ca/certs/opentakserver/opentakserver.pem   -set_serial $RANDOM$RANDOM -passin pass:atakatak   -extensions server -extfile ~/ots/ca/certs/opentakserver/opentakserver_config.cfgCertificate request self-signature ok$ cat ~/ots/ca/ca.pem >> ~/ots/ca/certs/opentakserver/opentakserver.pem$ sudo systemctl restart eud_handler_ssl nginx opentakserver

3. Prove it before moving on. A return code of zero against the streaming port means every client will connect. Anything else means none of them will.

Prove it
$ echo | openssl s_client -connect 10.10.150.70:8089 -CAfile ~/ots/ca/ca.pem -verify_ip 10.10.150.70 2>&1 | grep -E "Verification|Verify return"Verification: OKVerify return code: 0 (ok)

What is listening, and what that means for you

Section titled “What is listening, and what that means for you”

The installer configures no firewall at all. These are the ports it opens on a fresh install.

PortServiceBound to
8089Cursor on Target streaming over TLSevery interface
8088Cursor on Target streaming, no TLSevery interface
443, 80the web interfaceevery interface
8443, 8080the HTTP API that ATLAS reads missions and devices fromevery interface
8446certificate enrollmentevery interface
8322, 8883, 1936streaming and messaging transportsevery interface
1883, 5672, 25672the message brokerevery interface
4369the broker’s port mapperevery interface
5432PostgreSQLlocalhost only
8081the application itselflocalhost only

The database and the application are bound correctly. The message broker and its port mapper are not, and on a flat network that is the exposure worth closing first.

Three defaults ship weak and are yours to change before anything real touches this machine. The web account is administrator with the password password, printed in the server’s own log at first start. Both certificate passwords are the TAK default atakatak. The message broker runs on its stock credentials.

Making the accounts the operators will use

Section titled “Making the accounts the operators will use”

Admin, then Users, then Add User. Role is either User or administrator, and operators get User.

The Users admin page with the administrator account and two operator accounts, each showing a Role picker and an Active toggle
Two operator accounts, one per handset, so every device authenticates as itself.
  1. Add User. Every account is made here, by the administrator.
  2. Role administrator. Keep this to the one account that needs it.
  3. Role User and Active on is what an operator account looks like.

One account per handset, rather than one shared account, is what makes the device list worth reading. Every device then reports which account it authenticated as, so a handset is traceable to a person rather than to a pool.

Turning those accounts into something a handset can load is the next page, Connect a handset.