Port, bir cihazda çalışan birden fazla uygulamanın aynı ağ üzerinden veri iletmesini sağlayan sayısal bir tanımlayıcıdır.
# Port dinleme
netstat -an | find "LISTENING" (Windows)
ss -tuln | grep LISTEN (Linux)
# Port tarama
nmap -p 80,443 google.com
nc -zv google.com 80
# Port açma (Windows)
netsh advfirewall firewall add rule name="Open Port 8080" dir=in action=allow protocol=TCP localport=8080
Port Numaraları
| Port Aralığı | Açıklama |
|---|---|
| 0-1023 | Well-known ports (sistem portları) |
| 1024-49151 | Registered ports (kullanıcı portları) |
| 49152-65535 | Dynamic ports (özel portlar) |
Yaygın Portlar
| Port | Protokol | Servis |
|---|---|---|
| 20 | TCP | FTP (Data) |
| 21 | TCP | FTP (Control) |
| 22 | TCP | SSH |
| 23 | TCP | Telnet |
| 25 | TCP | SMTP |
| 53 | UDP/TCP | DNS |
| 67 | UDP | DHCP Server |
| 68 | UDP | DHCP Client |
| 80 | TCP | HTTP |
| 110 | TCP | POP3 |
| 123 | UDP | NTP |
| 143 | TCP | IMAP |
| 443 | TCP | HTTPS |
| 445 | TCP | SMB |
| 993 | TCP | IMAPS |
| 995 | TCP | POP3S |
| 1433 | TCP | MSSQL |
| 1521 | TCP | Oracle |
| 3306 | TCP | MySQL |
| 3389 | TCP | RDP |
| 5432 | TCP | PostgreSQL |
| 6379 | TCP | Redis |
| 8080 | TCP | HTTP-Proxy |
| 9200 | TCP | Elasticsearch |
| 27017 | TCP | MongoDB |
Port Test Komutları
bash# Port dinleme
netstat -an | find "LISTENING" (Windows)
ss -tuln | grep LISTEN (Linux)
# Port tarama
nmap -p 80,443 google.com
nc -zv google.com 80
# Port açma (Windows)
netsh advfirewall firewall add rule name="Open Port 8080" dir=in action=allow protocol=TCP localport=8080
🔒 Bu içeriği görmek için giriş yapın