WEBVTT
Kind: captions
Language: en

1
00:00:00.000 --> 00:00:06.239
Welcome to lesson seven, where we finish the port list from objective 1.4.

2
00:00:06.239 --> 00:00:14.249
Our online store's server is back, with ten more services, from SNMP on ports 161 and 162 up to

3
00:00:14.249 --> 00:00:22.090
SIP on 5060 and 5061. Watch for one pattern as we go: several of these are secure versions of

4
00:00:22.090 --> 00:00:30.100
older protocols, and an S at the end of the name usually means the traffic is protected by TLS.

5
00:00:30.500 --> 00:00:37.527
SNMP, the Simple Network Management Protocol, lets a monitoring system watch the store's switches

6
00:00:37.527 --> 00:00:44.772
and routers. The manager polls each device's agent on UDP port 161, asking for values like interface

7
00:00:44.772 --> 00:00:49.916
traffic. When something goes wrong, the agent doesn't wait to be asked:

8
00:00:49.916 --> 00:00:56.943
it sends a trap to the manager on UDP port 162. Versions 1 and 2c rely on a community string sent

9
00:00:56.943 --> 00:01:01.000
in cleartext. SNMPv3 adds authentication and encryption.

10
00:01:01.400 --> 00:01:06.958
Syslog collects log messages in one place. Instead of checking each device,

11
00:01:06.958 --> 00:01:14.145
the store's firewall, switches and web servers all send their logs to a syslog server on UDP port

12
00:01:14.145 --> 00:01:19.703
514. Every message carries a severity, from zero, emergency, down to seven,

13
00:01:19.703 --> 00:01:25.038
debug. Plain syslog isn't encrypted, and UDP doesn't guarantee delivery,

14
00:01:25.038 --> 00:01:30.373
so syslog over TLS uses TCP port 6514. Pair it with NTP from lesson six,

15
00:01:30.373 --> 00:01:32.300
so the timestamps line up.

16
00:01:32.700 --> 00:01:39.918
HTTPS is HTTP inside a TLS session, on TCP port 443. The server presents a certificate that proves

17
00:01:39.918 --> 00:01:46.990
it really is shop.example.com, and then everything, including pages, passwords and card details,

18
00:01:46.990 --> 00:01:54.134
is encrypted. That's why the store's checkout only runs on 443, and port 80 just redirects there.

19
00:01:54.134 --> 00:01:59.953
One modern detail: HTTP/3 runs over QUIC, which uses UDP port 443. On the exam,

20
00:01:59.953 --> 00:02:01.500
HTTPS means port 443.

21
00:02:01.900 --> 00:02:08.142
In lesson six, mail servers relayed messages to each other with SMTP on port 25.

22
00:02:08.142 --> 00:02:14.151
When a staff member's mail app sends a message, it uses TCP port 587 instead,

23
00:02:14.151 --> 00:02:20.861
the submission port. The app logs in and upgrades the connection to TLS with STARTTLS,

24
00:02:20.861 --> 00:02:27.416
which is why CompTIA lists 587 as SMTPS. Port 465 is another secure submission port,

25
00:02:27.416 --> 00:02:32.800
encrypted from the start. On the exam, secure mail sending means 587.

26
00:02:33.200 --> 00:02:40.135
LDAP, the Lightweight Directory Access Protocol, uses TCP port 389 to query a directory,

27
00:02:40.135 --> 00:02:47.465
such as Active Directory, for users and groups, or to check a login. Plain LDAP is cleartext,

28
00:02:47.465 --> 00:02:54.794
so a capture can reveal the password of the account doing the lookup. It can be upgraded with

29
00:02:54.794 --> 00:03:02.124
StartTLS on the same port. LDAPS, LDAP over SSL, uses port 636 and is encrypted with TLS from

30
00:03:02.124 --> 00:03:03.700
the very first byte.

31
00:03:04.100 --> 00:03:11.645
SMB, Server Message Block, is how Windows shares files and printers. When an office PC opens the

32
00:03:11.645 --> 00:03:18.954
orders folder on the store's file server, it connects to TCP port 445. SMB 3 can encrypt that

33
00:03:18.954 --> 00:03:25.477
traffic, but it's optional. Worms and ransomware have used SMB to spread for years,

34
00:03:25.477 --> 00:03:32.707
so the rule is simple: allow port 445 inside the network, and block it at the internet edge,

35
00:03:32.707 --> 00:03:34.200
in both directions.

36
00:03:34.600 --> 00:03:41.922
Two more ports belong inside the network. Microsoft SQL Server listens on TCP port 1433 by default.

37
00:03:41.922 --> 00:03:48.726
The store's web application reads orders from it, so only the app servers should reach 1433.

38
00:03:48.726 --> 00:03:55.825
RDP, the Remote Desktop Protocol, on port 3389, gives an admin a full graphical Windows desktop,

39
00:03:55.825 --> 00:04:02.777
unlike SSH's command line. RDP is encrypted, but it's a favorite target for password guessing,

40
00:04:02.777 --> 00:04:04.700
so reach it through a VPN.

41
00:04:05.100 --> 00:04:10.832
Last, SIP, the Session Initiation Protocol, runs the store's phone system.

42
00:04:10.832 --> 00:04:16.331
SIP sets up, changes and ends voice and video calls. It uses port 5060,

43
00:04:16.331 --> 00:04:23.999
over UDP or TCP, without encryption, and port 5061 for SIP over TLS. Notice what SIP doesn't carry:

44
00:04:23.999 --> 00:04:31.435
the voice itself. Once the call is set up, the audio flows separately, usually with RTP on other

45
00:04:31.435 --> 00:04:32.235
ports.

46
00:04:32.300 --> 00:04:39.078
Here are all ten together, with three patterns to remember. First, the secure twins:

47
00:04:39.078 --> 00:04:45.291
LDAP 389 becomes LDAPS 636, HTTP 80 becomes HTTPS 443, SIP 5060 becomes 5061,

48
00:04:45.291 --> 00:04:51.263
and mail apps send on 587 rather than 25. Second, SNMP and syslog use UDP,

49
00:04:51.263 --> 00:04:57.960
SIP can use either, and the rest use TCP. Third, SNMP splits its pair by direction:

50
00:04:57.960 --> 00:05:00.300
161 for polls, 162 for traps.

51
00:05:00.700 --> 00:05:06.105
Exam questions usually describe a need. Encrypting the checkout is HTTPS,

52
00:05:06.105 --> 00:05:13.138
443. A mail client sending with a login and TLS is SMTPS, 587. Encrypted directory queries mean

53
00:05:13.138 --> 00:05:18.913
LDAPS, 636. A switch alerting the monitoring system sends an SNMP trap to 162.

54
00:05:18.913 --> 00:05:24.243
Central log collection is syslog, 514. Windows file shares are SMB, 445.

55
00:05:24.243 --> 00:05:29.500
Graphical remote access is RDP, 3389. And setting up VoIP calls is SIP.

56
00:05:29.900 --> 00:05:36.417
To recap: SNMP polls on 161 and traps on 162, and only version 3 is secure.

57
00:05:36.417 --> 00:05:42.761
Syslog collects logs on 514. HTTPS, SMTPS and LDAPS are the TLS versions,

58
00:05:42.761 --> 00:05:50.756
on 443, 587 and 636. LDAP on 389, SMB on 445 and SQL Server on 1433 stay inside the network,

59
00:05:50.756 --> 00:05:57.360
RDP on 3389 goes behind a VPN, and SIP sets up calls on 5060 and 5061. Next:

60
00:05:57.360 --> 00:06:02.400
IP protocol types and traffic types, from ICMP to anycast.
