rpc port 49158

Posted on 2010-09-07
Medium Priority
Last Modified: 2013-12-04
I am trying to do a small test for restricting rpc to use static port. Using the Registry I did static port assignment for NTDS to be 49155 in the domain controller. I have two virtual machines, the dc is running windows 2008 r2 with ip, and a member server running windows 2003 ip using the dc windows firewall i created new rpc rule to use port 49155. from the firewall log bellow I have two questions:
1- why win2003 is trying to connect to with port 49158? And what is the affect of that?
2- for NTDS static port assignment , do I have to do it for all the company dc’s?
firewall log
ALLOW UDP 1026 53 0 -- RECEIVE
ALLOW TCP 1058 135 0 - 0 0 0 - - - RECEIVE
DROP TCP 1059 49158 48 S 1388427278 0 64240 - - - RECEIVE
DROP TCP 1059 49158 48 S 1388427278 0 64240 - - - RECEIVE
ALLOW UDP 138 138 0 -- RECEIVE
ALLOW UDP 1060 88 0 -- RECEIVE
ALLOW TCP 1061 88 0 - 0 0 0 - - - RECEIVE
ALLOW UDP 1062 88 0 -- RECEIVE
DROP TCP 1059 49158 48 S 1388427278  - - RECEIVE
DROP UDP 137 137 78 -- RECEIVE
DROP UDP 137 137 78 -- RECEIVE
DROP UDP 137 137 78 -- RECEIVE
ALLOW ICMP - - 0 - - - - 8 0 - RECEIVE
DROP UDP 137 137 78 -- RECEIVE
DROP UDP 137 137 78 -- RECEIVE
DROP UDP 137 137 78 -- RECEIVE
DROP UDP 137 137 78 -- RECEIVE
DROP UDP 137 137 78 -- RECEIVE
DROP UDP 137 137 78 -- RECEIVE
ALLOW TCP 1064 49155 0 - 0 0 0 - - - RECEIVE
Question by:alex-2010
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
LVL 42

Accepted Solution

Adam Brown earned 2000 total points
ID: 33666695
The RPC ports that you're messing with are actually client ports. When a DC makes an RPC request to another DC for replication, it will initiate the request on one of the ports in the range so the RPC server is able to more easily route traffic back to the requesting client. That port is chosen randomly from a range of several thousand. Pinching down the RPC ports on the server will limit the ports that it uses to make requests. So in your situation, the Win2k3 server is opening an RPC request on port 49158 which is being blocked by your firewall. In order to limit ports used by RPC, you'll need to actually limit the ports available on all DCs.

Also, I wouldn't recommend using a single port for RPC client requests, as you may rapidly run out of available ports and in turn decrease throughput and increase latency for replication.

Featured Post

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as the high-speed power of the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a guide to the following problem (not exclusive but here) on Windows: Users need our support and we supporters often use global administrative accounts to do this. Using these accounts safely is a real challenge. Any admin who takes se…
Article by: btan
The intent is not to repeat what many has know about Ransomware but more to join its dots of what is it, who are the victims, why it exists, when and how we respond on infection. Lastly, sum up in a glance to share such information with more to help…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question