Skip to main content

Behind a proxy or a firewall

Many networks only reach the internet through a proxy, and only to the sites the firewall allows. The node works like that: nothing it needs requires a direct connection, and this page lists every site it talks to.

What the node connects to​

The node only opens outbound connections. Nothing on the internet connects to it.

DestinationPortWho connectsWhat for
sugardaddy-central.azurewebsites.net443Installer and consoleEnrollment, heartbeat, license and updates
The Sugardaddy image registry (SeguridadSI gives you its exact name with your install line)443Docker engineThe Sugardaddy images (node, database, HTTPS and decoys)
*.blob.core.windows.net443Docker engineWhere Azure stores the layers of those images
login.microsoftonline.com443ConsoleOnly if you sign in to the console with Microsoft Entra ID
download.docker.com443InstallerOnly if the machine does not have Docker yet
Your system's package mirrors (for Ubuntu, archive.ubuntu.com and security.ubuntu.com)443 or 80SystemOnly to install Docker and for system updates

Add the destinations of your own alerts and SIEM (your mail server, Teams, Slack, your syslog collector): the node sends them only what you set up in the console.

Inside your network:

  • Remote sensors connect to the console on port 443.
  • Your browsers open the console on port 443 (see Who can open the console).

The virtual machine (appliance) needs the same list. Before it uses your enrollment code, it checks that it reaches Central and the image registries, so a blocked site shows up before the code is spent.

Install through a proxy​

Give the proxy to the installer in SUGARDADDY_PROXY, after sudo:

… && sudo SUGARDADDY_PROXY=http://proxy.example.com:3128 bash "$HOME/.sugardaddy-install.sh" https://…/instalar/<code> && …
  • Proxy with a user and password: http://user:password@proxy.example.com:3128. Write any special character in the user or the password percent-encoded (@ as %40, $ as %24). Basic authentication only: NTLM and Kerberos proxies need a local relay such as Cntlm.
  • Proxy that inspects HTTPS: give its CA certificate (the root your company installs on its computers) in PEM in SUGARDADDY_PROXY_CA=/path/to/ca.pem. The installer adds it to the system, to Docker and to the console.
  • Sites that must not go through the proxy: SUGARDADDY_NO_PROXY=intranet.local,10.0.0.0/8. The node's own network and the console address never go through it.

The installer sets up the proxy for the system packages, for the Docker engine (it restarts it once) and for the console, the sensor and the updater. Updates use it from then on. To change it later (the install line only works once), run on the machine:

sudo SUGARDADDY_PROXY=http://proxy.example.com:3128 /opt/sugardaddy/proxy.sh

with the same variables as above; SUGARDADDY_PROXY=none removes it.

A remote sensor works the same way: put SUGARDADDY_PROXY (and, if needed, SUGARDADDY_PROXY_CA) after sudo in its install line. The sensor never reaches the console through the proxy.

On the virtual machine, use option 8, Outbound proxy, on its screen before enrolling: it asks for the address, the user and password, the sites that do not go through it, and the CA certificate (paste it), and then tests every destination above.

Check it from Central​

The node tests every destination it uses every half hour, through the proxy if it has one, and reports it with its heartbeat. If something is blocked, SeguridadSI sees which site and why (the proxy asks for authentication, the name does not resolve, the certificate is not trusted) without asking you for access to the machine.

Who can open the console​

The console is born closed. Until you choose who can open it, port 443 only answers:

  • the network of the node machine, and
  • the address you installed from (your SSH session).

Everyone else gets a closed port. Choose the list in Settings → Console access.

If you lock yourself out, run this on the node machine (on the virtual machine, option 9 on its screen):

sudo touch /opt/sugardaddy/abrir-consola

It opens the console to everyone for 24 hours. The console shows it in red and records it in its audit log; after 24 hours it goes back to how it was.