Configure DCOM client to use only a small range of ports (instead of random ports)

Configure DCOM client to use only a small range of ports (instead of random ports)

Secure Home | Search | About

Networking Firewalls - Software and hardware firewalls discussions 

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Configure DCOM client to use only a small range of ports (instead of random ports) bridfarran 08-16-2006
Posted by bridfarran on August 16, 2006, 4:43 am
If you were  Registered and logged in, you could reply and use other advanced thread options

I have a question relating to a DCOM client connection to a server.

The scenario is as follows. The server is behind a firewall.
The server brokers a connection using port 135.

The firewall configuration allows all ports out to be open, but only
selected incoming ports. Incoming port 135 has been configured to be
open on the firewall.
The client connects to the server via a random port. With the above
configuration, the client is unable to connect through the firewall.

Is there a way of configuring the port that the client uses to stop it
connecting via a random port?? I would like to configure the client to
use 1 (or a small range) of ports only.

any advice would be much appreciated


Posted by Volker Birk on August 16, 2006, 6:28 am
If you were  Registered and logged in, you could reply and use other advanced thread options
> I have a question relating to a DCOM client connection to a server.
> The scenario is as follows. The server is behind a firewall.
> The server brokers a connection using port 135.

Better use an encrypted VPN. Don't use DCE-RPC directly here.

Yours,
VB.
--
Viel schlimmer als die Implementation von PHP ist jedoch das Design.

Rudolf Polzer in de.comp.security.misc

Posted by Sebastian Gottschalk on August 16, 2006, 6:29 am
If you were  Registered and logged in, you could reply and use other advanced thread options
bridfarran wrote:

> Is there a way of configuring the port that the client uses to stop
> it connecting via a random port??

Take a look at the "rpccfg" utility from Windows XP Resource Kit, and
the associated registry setting. It does exactly what you want:

> I would like to configure the client to use 1 (or a small range) of
> ports only.

Posted by on August 17, 2006, 2:47 am
If you were  Registered and logged in, you could reply and use other advanced thread options
Thanks Sebastian,
That looks like exactly what i'm looking for!
I downloaded it and extracted it.
But then when i ran it using the rpccfg.exe -pe 5001-5021 -d 0 (on a
Windows XP computer), nothing changed. i'm using Process Explorer to
monitor the ports being used and the local ports being used are still
random.
any clues??
Brid


Posted by Sebastian Gottschalk on August 17, 2006, 4:58 am
If you were  Registered and logged in, you could reply and use other advanced thread options
kbeigan@gmail.com wrote:

> But then when i ran it using the rpccfg.exe -pe 5001-5021 -d 0 (on a
> Windows XP computer), nothing changed. i'm using Process Explorer to
> monitor the ports being used and the local ports being used are still
> random. any clues??

The *d*evice #0 usually is the local loopback. You might use "-d 1" up
to "-d 9" as well.

Similar ThreadsPosted
Block internet access for apps that use random ports September 12, 2007, 10:48 am
Thompson speedtouch 510 forwarding a range of ports?? February 4, 2005, 4:02 am
CISCO vpn client 4.6.00.0045 and firewall ports : help needed November 10, 2005, 1:59 am
Small Switch With One Promiscious Port Multiple Private Ports September 18, 2006, 11:32 am
NetScreen Client VPN Configure November 25, 2005, 5:34 pm
Configure sercure client with Desktop Security October 7, 2005, 5:47 am
Ports July 19, 2005, 6:00 pm
Re: Active Ports August 28, 2004, 5:29 pm
Re: Active Ports August 28, 2004, 5:33 pm
Opening TCP & UDP ports??? December 1, 2004, 5:49 pm

The site map in XML format XML site map

Contact Us | Privacy Policy