Skip to content
Kandaro
Book a demo

EDR

Early access

Network requirements

The agent only connects out, to two Kandaro addresses on port 443. Nothing on the machine waits for connections from outside.

What to allow

AddressPortUsed forWhen
agents.kandaro.com443, outboundEnrolment, the agent’s connection to Kandaro, its events and the commands it receives.All the time
dl.kandaro.com443, outboundThe installer, the package repository, the signing key and new versions of the agent.When installing and updating, and when the system refreshes its packages on a machine installed with Kandaro’s repository
  • Allow by name. The addresses behind these names change, so a rule on fixed IP addresses will break.
  • Name lookup. The machine must be able to look both names up. If you filter DNS, allow them there too.
  • A correct clock. Keep time synchronisation on. A machine whose clock is more than five minutes off can't connect.
  • No inbound rules. The agent opens no listening port for Kandaro.
  • The download address asks for a key. Testing it by hand without one gets a refusal, which still shows the address is reachable. Installs and updates bring their own key (Your download key).

How the connection works

The agent opens one long-lived secure connection and keeps it open. Events go up over it, and settings and approved actions come down without delay. Your firewall or proxy must let such a connection stay open.

If that connection can't be made for two minutes, the agent sends the same data as ordinary HTTPS requests to the same address. It still works, a little slower: an approved action then reaches the machine at its next check-in, every 30 seconds, instead of at once.

While a machine can't reach Kandaro at all, the agent keeps its events in an encrypted store on its own disk and sends them when it's back. The store has a size limit. When it is full, the least important records are dropped first, and the agent counts every one: sudo kandaro-agent status shows the numbers.

Proxies

The agent can go through an HTTP or HTTPS proxy. The installer picks the proxy up from the https_proxy variable, or from --proxy, and saves it in the agent's settings file, because a system service doesn't see your shell's variables. To change it later, edit proxy in /etc/kandaro/agent/bootstrap.yaml and restart the agent. It takes one of:

  • system: the proxy variables the service itself was given;
  • none: connect directly;
  • the proxy's address, starting with http:// or https://.

Other kinds of proxy, such as SOCKS, aren't supported. If your proxy cuts the long-lived connection, the agent falls back to ordinary requests as described above.

Proxies that open secure traffic

A company proxy that decrypts and re-encrypts secure traffic (often called TLS or SSL inspection) stops the agent from connecting. The machine proves who it is inside the secure connection, and a proxy in the middle breaks that proof. The agent also refuses a connection where the other side isn't really Kandaro.

Exclude both addresses in the table from inspection. Blocking and allowing by name still works; only the decrypting has to be off for them.

Check from the machine

sudo kandaro-agent doctor tests each step in order: the proxy setting, the name lookup, the connection to port 443, the secure connection, that the other side is Kandaro, and the clock. It says which step fails and what to do. Troubleshooting lists every check.