Skip to content
Docker · Coolify · Traefik

Docker server security, including what the firewall does not see

Docker server security has traps that a normal Linux checklist misses: published ports that skip ufw, databases made public with one click in Coolify, dashboards left open. Avanguard looks for them on the host and from the internet.

Docker-published ports bypass ufw

When you publish a port with -p 5432:5432, Docker writes its own iptables rules and the traffic to the container never passes through the chains ufw manages. The firewall says the port is closed; the internet reaches it anyway. Docker's documentation explains that your own rules for containers belong in the DOCKER-USER chain.

Avanguard reports Docker-published database ports even when the firewall is active, because the firewall is not what decides. The usual fixes:

  • Publish only on localhost: -p 127.0.0.1:5432:5432, or do not publish at all and use a Docker network.
  • Add filtering rules to the DOCKER-USER chain.
  • Confirm with the external port scan, which shows what the internet really reaches.

Coolify security: public databases

In Coolify a database can be made public with a switch: Coolify then starts a container with the -proxy suffix that publishes the port on every interface. It is handy during development and easy to forget. Avanguard recognizes these proxy containers and reports the database as exposed, with the explanation and the steps to close it or restrict it.

Traefik dashboard without authentication

Traefik, used by Coolify and many Docker setups, has a dashboard that shows every route and service. Left without authentication, it gives anyone a map of your infrastructure. Avanguard reports a Traefik dashboard reachable without auth.

Containers and their connections

The agent reports the open connections of the server and of every container. Avanguard checks them against public threat lists (abuse.ch Feodo Tracker, abuse.ch SSL Blacklist, Spamhaus DROP): a container talking to a botnet command server is a critical finding.

A database container that connects out to the internet is flagged too. A database should answer the application, not call outside: when it does, something is wrong.

HTTP traffic from Traefik and Coolify logs

Avanguard reads the access logs of Traefik and Coolify as well as nginx, Apache and Caddy: requests per status code, response times, busiest routes and IPs, a live list of requests. It raises alarms for exposed files such as /.env, scans of sensitive paths, login brute force and security scanners. Query strings, headers, cookies and bodies are never collected.

Automatic blocking in front of Docker

If you turn on automatic blocking of scanners, the agent's AVANGUARD chain is reached from both INPUT and DOCKER-USER, so blocks also apply to traffic going to containers. More on the rules on attack protection.

Frequently asked questions

Does the agent itself run in Docker?

Yes: one container, read-only, with all capabilities dropped except a few it needs. It works with Docker 20.10 or newer, or Podman. Details on how it works.

Will Avanguard change my Docker or Coolify configuration?

No. It reports the problem and gives you the commands; you apply them. The only firewall rules the agent writes are its own expiring blocks, and only if you turn automatic blocking on.

Does it find vulnerable packages on a Docker host?

It scans the packages of the host against the OSV database, along with missing updates and risky configurations. See the Linux vulnerability scanner.

Know what is happening on your servers, today

Create your account, run one Docker command and in a few minutes you see attacks, vulnerabilities and resources of the server, with the commands to fix what matters.

Already have an account? Sign in · Documentation