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.
- Server Status. Up at all means nginx and the app are both answering.
- The version you are actually running.
- Add User. The admin makes every account.
- An operator account. Role User, Active on.
- New Mission. It needs a device checked in first.
- Default Role, which decides what a handset may do.
- Username, tying each device to the account it authenticated as.
- Last Event reading Connected, the server's own word for a live link.
The machine underneath
Section titled “The machine underneath”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.
Installing it
Section titled “Installing it”One command, run as a normal user with sudo rights. Not as root, which it refuses.
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.
| Question | Answer | Why |
|---|---|---|
| Would you like to install ZeroTier? | n | an overlay network you do not need for a server your handsets can already reach |
| Would you like to install Mumble Server? | n | voice, 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.
$ 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.
- Still Disconnected, with the address it tried underneath.
- IP address mismatch. The certificate does not name the address you dialed.
- 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.
$ 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.
$ 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.
$ 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.
| Port | Service | Bound to |
|---|---|---|
| 8089 | Cursor on Target streaming over TLS | every interface |
| 8088 | Cursor on Target streaming, no TLS | every interface |
| 443, 80 | the web interface | every interface |
| 8443, 8080 | the HTTP API that ATLAS reads missions and devices from | every interface |
| 8446 | certificate enrollment | every interface |
| 8322, 8883, 1936 | streaming and messaging transports | every interface |
| 1883, 5672, 25672 | the message broker | every interface |
| 4369 | the broker’s port mapper | every interface |
| 5432 | PostgreSQL | localhost only |
| 8081 | the application itself | localhost 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.
- Add User. Every account is made here, by the administrator.
- Role administrator. Keep this to the one account that needs it.
- 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.