- The server inventory is
sudo ss -tlnp: a socket on0.0.0.0or[::]is visible from the network unless the filter closes it; for each one you decide who needs it. - Check from outside, from another machine:
nmapornc -zvshow what an attacker will see. - A service whose clients are on the same machine is bound to
127.0.0.1; for PostgreSQL that islisten_addresses, and it changes only with a restart. - The rest is closed by a deny-by-default filter in
/etc/nftables.confwith thenftablesservice enabled (in the Wiki). - At the start of the lesson the scanner found 5432 and 8080: the database and the admin panel listened on
0.0.0.0, and the server had no rules at all.
Step 7 of 7 · summary · 2 min
Summary
Found an inaccuracy? Report an error in the lesson