Server lockdown

Close every port.
Keep your way in.
With one command.

Lock a Linux server down to your private network, Docker's ports included, without the fear of locking yourself out.

web-1

$ sudo underpass lockdown on --web

Locked down. From the internet, this server now only answers 80/tcp, 443/tcp.

Docker's published ports are blocked too.

Check you can still reach it over Underpass, then confirm within 5 minutes.

$ sudo underpass lockdown confirm

Confirmed. This server stays locked down.

web-1lockdown status

Locked down

Only reachable over Underpass

postgres 5432/tcp

Docker published it: blocked from the internet

Emergency key

Set · rescue listener active

Nothing open

Nothing to scan.
Nothing to attack.

Open ports are how servers get broken into. After lockdown, the internet sees only the ports you chose, or none at all.

One command

sudo underpass lockdown on. No firewall rules to write, nothing to learn.

Docker too

Ports Docker published past ufw are blocked as well. A forgotten database stays private.

Still yours

SSH, admin panels and databases work as before, over your private network.

Never locked out

Safe to try.
Safe to forget.

Every way back in is planned for, down to our own servers being gone.

  • Undone unless confirmedLockdown reverts after 5 minutes unless you confirm from a new connection.
  • An offline emergency keyOpens SSH for your address alone, for 15 minutes, with our servers down.
  • Invisible until thenThe port never answers anyone else, so there's nothing to find.
  • You're toldEvery use of the key is emailed to you, with the address it opened for.
laptop

$ underpass emergency open 203.0.113.7 --key upk_7HQ2K-…

SSH is open for 198.51.100.24 for 15 minutes; connect now.

$ ssh admin@203.0.113.7

Welcome to web-1.

Keeps itself running

Underpass looks after itself.
On every server.

Lockdown makes Underpass your way in, so it's built never to be the reason you can't get there.

Restarted when frozen

A watchdog restarts a stuck service within about 2 minutes, and a crashed one in seconds, forever.

Repairs itself

A connection that goes stale is rebuilt on its own, with no one logging in.

A rescue listener

A separate small service hears the emergency key even if the main one stops.

Command to close every port
1
Until an unconfirmed lockdown undoes itself
5 min
SSH opened by the emergency key, for your address
15 min
Of our servers needed to get back in
0
When we're down

Your devices remember their device list, so they keep reaching each other even if Underpass's servers are unreachable, after a restart too. If a locked-down server goes quiet for 10 minutes, you get an email with its emergency command.

FAQ

Questions about server lockdown.

Something we didn't cover? Write to us and we'll help you get set up.

Ask us anything
  • Linux servers with nftables, which modern Debian, Ubuntu, Fedora and others have, with Underpass 0.8.8 or later. It works alongside ufw. With firewalld, lockdown explains what to change instead.

More features

/ Independent · bootstrapped · no investors

Built by a person,
not a fund.

I'm Endi, and I build Underpass myself. No investors to answer to, only the people who run their networks on it. Every message that comes in reaches me directly.