Back to Cheatsheets
Networking Cheatsheet
Essential networking concepts, protocols, and commands for system administrators and developers.
Network Protocols
HTTP/HTTPS
Application layer protocol for web
TCP
Transport layer, reliable connection
UDP
Transport layer, connectionless
IP
Network layer protocol
DNS
Domain Name System
Network Commands
ping hostname
Test network connectivity
traceroute hostname
Trace route to host
netstat -tuln
Show listening ports
nslookup domain
DNS lookup
dig domain
DNS information
Network Security
iptables -L
List firewall rules
ufw status
Check firewall status
nmap -sV host
Port scan with version
tcpdump -i eth0
Capture network traffic
openssl s_client -connect host:443
Test SSL connection
Network Configuration
ifconfig
Network interface config
ip addr
Show IP addresses
route -n
Show routing table
hostname -I
Show IP address
nmcli device show
Network manager info
Network Troubleshooting
mtr hostname
Network diagnostic tool
telnet host port
Test port connectivity
curl -I url
Check HTTP headers
wireshark
Network protocol analyzer
ss -tuln
Socket statistics
Network Services
systemctl status nginx
Check web server status
systemctl status sshd
Check SSH service
systemctl status dnsmasq
Check DNS service
systemctl status dhcpd
Check DHCP service
systemctl status iptables
Check firewall service