devops101 › Cheat sheet'ler › 📡 Ağ komutları cheat sheet

📡 Ağ komutları cheat sheet

Arayüz ve yönlendirme

ip aArayüzler ve IP'ler
ip rYönlendirme tablosu
ip neighARP/komşu
ip link set eth0 upArayüzü aç
ip route get 8.8.8.8Hangi yoldan gider

Bağlantı ve port

ss -tulpnDinlenen portlar ve süreçler
ss -tan state establishedKurulu bağlantılar
nc -vz host 443Port açık mı
ping -c 4 hostErişim testi
mtr hostYol boyu kayıp/gecikme
traceroute hostYol takibi

DNS

dig site.com +shortHızlı sorgu
dig @8.8.8.8 site.comBelirli çözümleyici
dig +trace site.comZinciri izle
dig -x 1.2.3.4Ters sorgu
nslookup site.comAlternatif
resolvectl statussystemd-resolved

Paket yakalama ve güvenlik duvarı

tcpdump -i any -nn port 53DNS trafiği
tcpdump -i eth0 -nn host 10.0.0.5 and port 443 -w c.pcapDosyaya yakala
nft list rulesetnftables kuralları
iptables -L -n -viptables kuralları
ufw status verboseufw durum
ufw allow 443/tcpPort izni

Şema

Bir web isteğinin yolu

  1. Tarayıcı
  2. DNS: isim→IP
  3. TCP bağlantısı
  4. TLS el sıkışması
  5. HTTP isteği
  6. Sunucu yanıtı

Uygulamada aç ve alıştırmaları çöz →