Firewall

Each server can have a firewall that Yawl writes and keeps: everything coming in is closed, except what Yawl needs and the rules you add. It is off until you turn it on: Servers, the server’s Firewall, Turn on.

What Yawl keeps open

  • SSH, on the port sshd listens on;
  • 80 and 443, the web traffic Caddy answers (443 also over UDP);
  • UDP 51820 from your other Yawl servers only, for the private network;
  • each Postgres outside_port, from its allow list (from everyone when the list is empty, as Postgres itself allows);
  • the server talking to itself, the Docker networks and the private network, replies to connections the server made, ping, and the ICMPv6 that IPv6 needs.

Outgoing traffic is not filtered.

Your rules

  • Allow a port, TCP, UDP or both, from everyone or from listed addresses and ranges (203.0.113.0/24).
  • Block addresses or ranges completely: a block wins over every allow, SSH too.
  • SSH from limits SSH to listed addresses. If your own address (the page shows it) is not in the list, or a block covers it, Yawl asks once more before it saves: Your address 203.0.113.7 is not in the list.

A port Docker publishes is covered too. With ufw alone it would not be: Docker writes its own rules ahead of ufw.

Keep, or it goes back

A change is applied at once, and the page asks: Check that you can still reach this server by SSH. Keep these rules? Open a new SSH session, then press Keep. Without Keep within 2 minutes the server puts the rules from before back by itself, also when the panel cannot reach it. A reboot during those 2 minutes ends on the rules from before too.

Turning the firewall off needs no Keep: it opens the server.

The SSH ban

An address with 5 failed SSH logins within 10 minutes is banned from SSH for 1 hour. Yawl reads the failures from /var/log/auth.log (Ubuntu has it). A server without that file (Debian 12 keeps only the journal) bans an address that opens more than 10 new SSH connections in a minute instead. An address in SSH from is never banned. The page lists banned addresses with Unban; each ban is in the audit log, and goes to Telegram if you press Send them to Telegram too.

Open ports

The page lists every port the server listens on, what listens on it, and who can reach it: open to everyone, open to some, or closed by the firewall. A port Docker publishes shows docker-proxy. A port listening on all addresses but closed is one rule away from open: check it is meant to be.

If you lock yourself out

The 2 minute rule catches most mistakes. If something still goes wrong, open your provider’s console (Hetzner, Contabo and the like all have one), log in as root and run:

nft delete table inet yawl

That removes Yawl’s firewall and nothing else. Then turn it off on the page, so the agent does not put it back.

Not here

Your provider’s own firewall (Yawl does not change it; open what you need there too), outbound rules, limits on web traffic, blocking countries. The firewall needs nftables, which Debian 12, Ubuntu 22.04 and later have.