Where to start First steps track · 15 stages
Linux Labs

Server security

Quiz: what a server exposes

Question 4 of 10
Leave the quiz

Read the output

A check from the outside machine. What makes the 5432 answer different from the 8080 one?

$ sudo ip netns exec lab-outside nc -zv -w 2 192.0.2.1 5432
nc: connect to 192.0.2.1 port 5432 (tcp) failed: Connection refused
$ sudo ip netns exec lab-outside nc -zv -w 2 192.0.2.1 8080
nc: connect to 192.0.2.1 port 8080 (tcp) timed out: Operation now in progress
Back A–C or ↵ Sign in to answer
Loading…