Locking a port on the Windows firewall

  • Thread starter Thread starter Thomas Wiedmann
  • Start date Start date
T

Thomas Wiedmann

Hello,

how can the firewall of Windows XP prof. be configured to lock a certain
port (and to ensure, that all other ports are still open)?
Reason: The port should be locked for a certain application.

Thomas Wiedmann
 
Thomas said:
how can the firewall of Windows XP prof. be configured to lock a
certain port (and to ensure, that all other ports are still open)?
Reason: The port should be locked for a certain application.

Lock? You mean close? Or open?

It's easy enough to add exceptions to the Windows Firewall (incoming only -
the windows firewall lets you communicate out without limits.) Just add an
exception if you want a given port opened. You can do it by application or
by specified port #.

If that is not what you want - please research a bit (given what you now
know) and come back and ask more (with more details) if needed.
 
Lock? You mean close? Or open?
Yes, close.
It's easy enough to add exceptions to the Windows Firewall (incoming
only - the windows firewall lets you communicate out without limits.)
Just add an exception if you want a given port opened. You can do it by
application or by specified port #.
Just vice versa - I'd like to permit, i. e. open, all ports except one,
which has to be closed. How to configure this effectively?

Thomas Wiedmann
 
Thomas said:
Yes, close.

Just vice versa - I'd like to permit, i. e. open, all ports except one,
which has to be closed. How to configure this effectively?

What's the sense of this? You may as well just disable the firewall,
for all intents and purposes what you want to do will practically have
the same effect! If this requirement is for one application then you
should just have the firewall allow the application to open ports as needed.

John
 
Yes, close.

Just vice versa - I'd like to permit, i. e. open, all ports except one,
which has to be closed. How to configure this effectively?

Thomas Wiedmann

In the network settings Advanced properties Windows firewall settings,
exceptions tab. You can locate your application and turn off the
checkbox for it. This should disable the application's ability to open
a port unless that application is a client or uses ephemeral ports for
outbound connections.
 
Back
Top