summaryrefslogtreecommitdiff
path: root/source4/smbd
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2017-01-16 11:43:12 +0100
committerStefan Metzmacher <metze@samba.org>2017-01-27 08:09:15 +0100
commit35dfa5c6e2bf60f8f1efda5eb7026cabe8bf5ba3 (patch)
treef7f5f3ea98e94c721f9b747a7d9d652906bfa48b /source4/smbd
parent2cf141ed45b4f7b7754cb9525d987ff38495d789 (diff)
downloadsamba-35dfa5c6e2bf60f8f1efda5eb7026cabe8bf5ba3.tar.gz
rpc_server: Use the RPC TCPIP ports of Windows
Since Windows Server 2008 Microsoft uses a different port range for RPC services. Before it was 1024-65535 and they changed it to 49152-65535. We should use the same range as these are the ports the firewall in AD networks normally allow. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12521 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/smbd')
-rw-r--r--source4/smbd/service_stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/smbd/service_stream.c b/source4/smbd/service_stream.c
index 22c885bbe2b..8abaaca272c 100644
--- a/source4/smbd/service_stream.c
+++ b/source4/smbd/service_stream.c
@@ -31,8 +31,8 @@
#include "lib/util/util_net.h"
/* the range of ports to try for dcerpc over tcp endpoints */
-#define SERVER_TCP_LOW_PORT 1024
-#define SERVER_TCP_HIGH_PORT 1300
+#define SERVER_TCP_LOW_PORT 49152
+#define SERVER_TCP_HIGH_PORT 65535
/* size of listen() backlog in smbd */
#define SERVER_LISTEN_BACKLOG 10