Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cyber Security Cards › Revision Cards

Networking Commands

Networking Commands Commands to check a server’s network: ip a (addresses), ss -tulnp (listening ports), ping , curl , nc . ss -tulnp is like a scan from the inside. Every listening port is a possible way in. A service on 0.0.0.0 is open to all. On 127.0.0.1 it is local only. “Ping fails, so the ser

Networking Commands Commands to check a server’s network: ip a (addresses), ss -tulnp (listening ports), ping , curl , nc . ss -tulnp is like a scan from the inside. Every listening port is a possible way in. A service on 0.0.0.0 is open to all. On 127.0.0.1 it is local only. “Ping fails, so the ser
Networking Commands · Download PNG
Read card text

What this card says

What it is

Commands to check a server’s network: ip a (addresses), ss -tulnp (listening ports), ping, curl, nc.

Why it matters for security

ss -tulnp is like a scan from the inside. Every listening port is a possible way in.

A service on 0.0.0.0 is open to all. On 127.0.0.1 it is local only.

Common mistake

“Ping fails, so the server is down.” Wrong. AWS security groups block ping by default.

Test a port with nc -zv IP 80 or curl -I.

CommandPurposeExample
ip addr (ip a)Interfaces and IP addressesip -4 a
ip routeRouting table / default gatewayip r
ss -tulnpListening TCP/UDP ports with processsudo ss -tlnp
netstat -tulnpOlder equivalent of ss (package net-tools)sudo netstat -tlnp
pingReachability (ICMP)ping -c 4 google.com

Learn more in the lesson: 6.7 Networking Commands

See all Ravi Sir's Cyber Security Cards