.. Reminder for header structure: Parts (H1) : #################### with overline Chapters (H2) : ******************** with overline Sections (H3) : ==================== Subsections (H4) : -------------------- Subsubsections (H5) : ^^^^^^^^^^^^^^^^^^^^ Paragraphs (H6) : """"""""""""""""""""" .. |date| date:: .. meta:: :description: About SMB and MS-RPC :keywords: SMB MS-RPC, Samba-AD, documentation .. _about_smb_msrpc: #################### About SMB and MS-RPC #################### ****** MS-RPC ****** MS-RPC is a proprietary Windows protocol based on the :abbr:`DCE / RPC (Distributed Computing Environment / Remote Procedure Calls)` standard. It is a dynamic port protocol like rpcbind or portmap under Linux. That is to say that the first connection is made on port 135 then the client is redirected to another dynamically opened port in the allowed range (default 49152 to 65535). This mode of operation is no longer in fashion today. It requires to open wide port ranges on the firewalls of servers and inter-site routers. It is used to replicate LDAP directories across Active Directory servers. .. table:: Ports used for a correct functioning of MSRPC ================================ =================================================================== Port Usage ================================ =================================================================== 135 TCP 49152 to 65535 (>= win2008R2) `Default port range `_ for RPC services over TCP 1025 to 5000 (