Skip to content
Smarter by Design.Simpler for Business

Connection, Port & Scan ​

The Connection, Port & Scan group gathers the two commands that show the connections and the listening ports on the device, a scanner that probes the ports of a remote target, and a client that opens a manual TCP connection. The questions "Is this port being listened on?", "How many connections are open to the backend?", "Is 443 open on the target, or is it blocked on the way?" are the job of this group.

Which Command When? ​

QuestionCommandExample
Which ports are being listened on in the selected route table, and which process holds them?sssys-cmd ss -tlnp
How many established connections are there to the backend?sssys-cmd ss -tn state established dst 10.20.0.30
What are the routes of the route table?netstatsys-cmd netstat -rn
Is there an error or a dropped packet on the interfaces?netstatsys-cmd netstat -i
Are the ports on the target open or filtered?nmapsys-cmd nmap -Pn -p 80,443 10.20.0.30
Connecting to the port and seeing the first response of the service manuallytelnetsys-cmd telnet 10.20.0.30 8080

Common Behavior ​

SubjectBehavior
WritingAll four are tools with free parameters: everything written after the command name is passed to the tool as it is.
ContextAll four run from within the selected v-device and route table: ss and netstat show the connections of that route table, and nmap and telnet connect to the target from that route table.
RestrictionIn the ss command, the -F, --filter, -D and --diag parameters are rejected.
Interactiontelnet opens a full terminal session and cannot be connected to a pipe; the output of the other three commands can be filtered with |.
RecordingEvery run is written to the user logs.

All of the writing rules and the restrictions: System Commands.