CHEATSHEET • PORTS & NETWORKING
DevOps Ports, Load Balancing & Networking Cheatsheet
Quick reference for default infrastructure & database ports, firewall security-group planning, DNS/TCP troubleshooting, and Nginx reverse proxy configs.
01Essential DevOps, Kubernetes & Database Ports
| Category | Service / Tool | Default Port(s) | Protocol / Notes |
|---|---|---|---|
| Core Access | SSH / SFTP | 22 | TCP • Encrypted remote shell & file transfer |
| Core Network | DNS | 53 | UDP / TCP • Name resolution & zone transfers |
| Web / Proxy | HTTP / HTTPS (Nginx, HAProxy) | 80, 443 | TCP • Ingress, reverse proxy & TLS termination |
| Kubernetes | kube-apiserver | 6443 | TCP • Cluster control-plane HTTPS API |
| Kubernetes | etcd | 2379–2380 | TCP • Cluster state client & peer communication |
| Kubernetes | kubelet | 10250 | TCP • Node agent API (logs, exec, metrics) |
| CI/CD & Artifacts | Jenkins / SonarQube / Registry | 8080 / 9000 / 5000 | TCP • Web UIs & private container registry |
| Observability | Prometheus / Grafana / Loki / ES | 9090 / 3000 / 3100 / 9200 | TCP • Metrics scraping, dashboards & log indexing |
| Data & Queues | Postgres / MySQL / Mongo / Redis / Kafka | 5432 / 3306 / 27017 / 6379 / 9092 | TCP • Keep restricted to private VPC subnets |
Advertisement
02DNS, Port Probing & Routing Diagnostics
Test if a remote TCP port is reachable without hanging
nc -zv -w 3 api.example.com 443
Query DNS A/CNAME records with clean short output
dig +short devopsautomation.in A
Inspect local network interfaces and kernel routing table
ip -br a && ip route
Inspect remote TLS certificate expiration date from CLI
echo | openssl s_client -servername example.com -connect example.com:443 2>/dev/null | openssl x509 -noout -dates
03Nginx Reverse Proxy & Load Balancer Template
upstream app_backend {
least_conn;
server 10.0.1.10:8080 max_fails=3 fail_timeout=15s;
server 10.0.1.11:8080 max_fails=3 fail_timeout=15s;
}
server {
listen 80;
server_name api.example.com;
location / {
proxy_pass http://app_backend;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}