Skip to content

Reference The 25 checks

Open ports

Security check open-ports

What it reads

The ports listening on public addresses, from /proc/net/tcp and /proc/net/tcp6, and the ports Docker publishes.

Does it need root?

It reads everything it needs as a normal user.

When it passes

The report lists it as passed, in these words:

  • Only allowed ports are open (ports)databases

What it can find

Warning

Port port is open on a public address

Every open port is a way in. Only ports you mean to serve should be open. If this one should be open, add it to ports.allowed in /etc/kiyesi/config.yaml. If provider_firewall protects this server, which Kiyesi cannot see from inside, say so with provider_firewall: true under ports there.

Fix, to review and run yourself
Bind the program to 127.0.0.1 if only this server needs it. Or keep it behind the firewall: with none on, allow SSH first (sudo ufw allow 22/tcp, or the port you sign in on), then sudo ufw enable; with ufw on, sudo ufw status numbered shows the rule that allows port, and sudo ufw delete <number> removes it
Info

Port port listens on a public address, behind your provider's firewall

The settings say your provider's firewall protects this server, which Kiyesi cannot see from inside: that firewall decides who reaches port port.

Fix, to review and run yourself
Check your provider's firewall allows port only from where it should be reached