Port 21
ftp · SCTP/TCP/UDP
| Zakres | Port systemowy/well-known (0–1023) |
|---|---|
| Protokół | SCTP/TCP/UDP |
| Usługa | ftp |
| Odniesienie | RFC 959, RFC 9260 |
| Zmieniono | 2022-02-07 |
Najczęstsze pytania
Do czego służy port 21?
Port 21 jest zarejestrowany w IANA dla: ftp (SCTP/TCP/UDP). Opis: File Transfer Protocol [Control]; FTP.
Czy port 21 jest portem well-known?
Tak. Port 21 leży w zakresie 0–1023 (porty systemowe, well-known). W Linuksie i macOS tylko uprzywilejowane procesy mogą je otwierać.
Jak sprawdzić, czy port 21 jest otwarty?
Lokalnie w Linuksie poleceniem ss -tulpn | grep ':21\b', w Windows poleceniem netstat -ano | findstr :21. Zdalny host przetestujesz w PowerShell poleceniem Test-NetConnection <host> -Port 21 lub w Linuksie/macOS poleceniem nc -zv <host> 21.
Jak otworzyć port 21 w zaporze?
Ubuntu/Debian (ufw): sudo ufw allow 21/tcp. Fedora/RHEL (firewalld): sudo firewall-cmd --add-port=21/tcp --permanent, a potem firewall-cmd --reload. Windows (PowerShell jako administrator): New-NetFirewallRule -DisplayName "Port 21" -Direction Inbound -Protocol TCP -LocalPort 21 -Action Allow.
Wpisy w rejestrze IANA
| Protokół | Usługa | Opis (IANA) |
|---|---|---|
| TCP | ftp | File Transfer Protocol [Control] |
| UDP | ftp | File Transfer Protocol [Control] |
| SCTP | ftp | FTP |