{"id":30311,"date":"2022-08-04T15:44:33","date_gmt":"2022-08-04T15:44:33","guid":{"rendered":"http:\/\/activedirectorypro.com\/?p=30311"},"modified":"2023-09-10T15:05:44","modified_gmt":"2023-09-10T15:05:44","slug":"active-directory-ports-used-client-to-server","status":"publish","type":"post","link":"https:\/\/activedirectorypro.com\/active-directory-ports-used-client-to-server\/","title":{"rendered":"Active Directory Ports Used Client to Server"},"content":{"rendered":"\n
In this post, I will explore the TCP and UDP ports used by Active Directory from client to server.<\/p>\n\n\n\n
I will use WireShark and a series of tests to determine what ports are used. <\/p>\n\n\n\n
Tests I’ll be running: <\/strong><\/p>\n\n\n\n Test Environment: <\/strong><\/p>\n\n\n\n Here is a list of ports used by Active Directory by a default install. This is between the domain controller and a domain-joined computer. <\/p>\n\n\n\n we recommend that you reconfigure the firewalls to allow traffic between servers in the dynamic port range of 49152 through 65535. This range is in addition to well-known ports that are used by services and applications.<\/p>\nhttps:\/\/docs.microsoft.com\/en-US\/troubleshoot\/windows-server\/networking\/default-dynamic-port-range-tcpip-chang<\/cite><\/blockquote>\n\n\n\n In this example, I will log into computer PC1 (192.168.100.20) and capture the network packets from the domain controller. <\/p>\n\n\n\n Here is a conversation view of the TCP\/UDP ports used. This is traffic sent from the client to the domain controller and destination ports. <\/p>\n\n\n\n Here is a summary of the destination ports used by the client. <\/p>\n\n\n\n While logged into the client PC I will run the gpupdate<\/a> command to see what ports are used. <\/p>\n\n\n\n Results below. It Looks like TCP port 445 is used the most when running a gpupdate. <\/p>\n\n\n\n This looked similar to the other packet captures. <\/p>\n\n\n\n TCP 88 (Kerberos) Nothing new, I see the same ports used when compared to the other packet captures. <\/p>\n\n\n\n Hopefully, this guide helps you to understand the ports used between a client and an Active Directory server. Keep in mind this test was a default domain controller install with no additional services running, the more services you install the more ports that may be used. <\/p>\n\n\n\n In this post, I will explore the TCP and UDP ports used by Active Directory from client to server. I will use WireShark and a series of tests to determine what ports are used. Tests I’ll be running: Test Environment: Active Directory Ports Summary Here is a list of ports used by Active Directory by … Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":30369,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1835],"tags":[],"_links":{"self":[{"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/posts\/30311"}],"collection":[{"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/comments?post=30311"}],"version-history":[{"count":3,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/posts\/30311\/revisions"}],"predecessor-version":[{"id":37501,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/posts\/30311\/revisions\/37501"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/media\/30369"}],"wp:attachment":[{"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/media?parent=30311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/categories?post=30311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/activedirectorypro.com\/wp-json\/wp\/v2\/tags?post=30311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\n
\n
Active Directory Ports Summary<\/h2>\n\n\n\n
\n
TCP 135 Microsoft RPC Mapper<\/h3>\n\n\n\n
<\/figure>\n\n\n\n
\n
TCP\/UDP 49152 – 65535 RPC Dynamic Ports<\/h3>\n\n\n\n
<\/figure>\n\n\n\n
\n
\n
TCP 88 Kerberos<\/h3>\n\n\n\n
<\/figure>\n\n\n\n
\n
TCP 389 LDAP<\/h3>\n\n\n\n
<\/figure>\n\n\n\n
\n
UDP 53 DNS<\/h3>\n\n\n\n
<\/figure>\n\n\n\n
\n
TCP 445 SMB<\/h3>\n\n\n\n
<\/figure>\n\n\n\n
\n
Ports Used When a User Logs into a Domain-Joined Computer<\/h2>\n\n\n\n
<\/figure>\n\n\n\n
\n
Ports Used When Running Gpupdate<\/h2>\n\n\n\n
<\/figure>\n\n\n\n
Ports Used When Joining a Computer to The Domain<\/h2>\n\n\n\n
TCP 135 (Microsoft RPC)
TCP 389 (LDAP)
TCP 445 (Microsoft DS)
TCP 49668 (RPC for LSA, SAM, NetLogon) – This starts with a request to port 135
UDP 53 (DNS)<\/p>\n\n\n\nPorts Used When Rebooting<\/h2>\n\n\n\n
Resources: <\/h2>\n\n\n\n
\n