Hanoi · Debian 11 · The firewall and nftables
Safe house JADE GATE
Situation
A previous team drafted firewall rules for this machine and never switched them on, and it still forwards traffic for a field team that has gone home. KESTREL arrives in Hanoi next. Leave only SSH open, deny everything else by default, and make sure it all survives a restart.
You have an administrator account on vn-jadegate. Sign in as analyst with the password winter-jade.
How to play
- Press Start the machine. It downloads once, then resumes already booted.
- Sign in, then read
HANDOVER.txt.hardencheck listshows the controls. - Fix the machine. Run
sudo hardencheck IDorsudo hardencheck all. Each passing control prints a flag. - Paste each flag below to record it.
Practice mode: flags are checked in this browser and progress is saved here. Sign in on the scoreboard during the event so your flags count.
Checking whether this machine is available…
Controls
0/6 cleared · 0/900 points
-
Firewall loads at boot
The firewall rules never load when the machine starts. Make sure they do.
-
Deny inbound by default
Inbound traffic that no rule allows must be dropped, not accepted.
-
Keep loopback and replies
A default-deny firewall must still let the machine talk to itself and receive replies to its own connections.
-
Only SSH comes in
Remote administration over SSH is the only inbound service this safe house needs. Close the rest.
-
Save the firewall
Your running rules must survive a restart. Save them where the firewall service loads them from.
-
No packet forwarding
This machine is not a router. Stop it forwarding traffic, now and after a restart.