Ports + Protocols Flashcards
What ports does FTP use and what is it for?
20 (active mode) and 21 (control) - File Transfer Protocol is a generic way to transfer files between systems.
FTP authenticates with a username and password. It’s fully featured functionality allows you to list,add,delete files as you choose.
FTP isn’t secure - SFTP is because it uses SSH tcp/22 to encrypt files in transit.
What protocol uses port tcp/22 and what does it do?
SSH - Secure Shell - is an encrypted way of communicating to a remote device from a console. E.g. SSH into a firewall device.
tcp/22 is also used for SFTP - Secure File Transfer Protocol via SSH encryption.
What port does SFTP use and what is it for?
SECURE File Transfer Protocol is used to securely transfer files with encryption via SSH tcp/22.
What port is Telnet and what’s the problem with it?
Telnet udp/23 is a way of accessing remote devices but the connection is “in the clear”/unencrypted/unsecure.
What protocol uses port tcp/587?
SMTP with TLS encryption uses port tcp/587 to SEND MAIL.
Simple Mail Transfer Protocol - server to server and client to server email transfers.
What are the FOUR ports you can use to receive/retrieve emails from the server onto a client device?
tcp/143 - IMAP
tcp/993 - IMAPS (Secure)
tcp/110 - POP3
tcp/995 - POP3S (Secure)
What ports does DNS use?
udp/53 or tcp/53 (for large transfers of one DNS server to another) - converts names to IP addresses
What ports does DHCP use?
udp/67 udp/68 are used for DHCP - Dynamic Host Control Protocol - automatic assignment of IP addresses/subnet masks from a pool with a lease time that renews at T1 (50%) and T2 (88%) of the lease time. If DHCP server can’t be contacted at either of those times then the device sends out for a new IP address across the network.
You can assign DHCP reservation to certain devices using their MAC address so that they always have the same IP address assigned to them.
TFTP port?
udp/69 ;) Trivial File Transfer Protocol - used for simple unsecure small file transfer like config. files at high speed.
What are the two main web server communicating ports and protocols?
HTTP tcp/80 - web server communication.
HTTPS tcp/443 - encrypted web server communication.
What port/protocol manages time syncing across devices?
NTP udp/123 Network Time Protocol - precisely (within 1ms) syncs up the time across devices on a network. This is crucial for authentication information, usually happens a few times a day (the syncing)
What ports does SNMP use?
udp161 for network device statistics and udp162 for traps/alerts - trigger when a statistic hits a pre-defined threshold.
Which version of SNMP udp/161 uses Authentication and Encryption to send network statistics securely?
Version 3 of SNMP udp/161 uses encryption, authentication and message integrity checks to keep network statistics safe.
What protocol uses port tcp/389 and what does it do?
LDAP tcp/389 - Lightweight Directory Access Protocol - stores/accesses/retrieves data from a network directory (e.g. Active Directory on Windows).
What port does LDAPS use?
tcp/636 is used by LDAPS - Lightweight Directory Access Protocol Secure - LDAP encrypted over SSL encryption.