Locking a port on the Windows firewall

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
 
S

Shenan Stanley

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.
 
T

Thomas Wiedmann

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
 
J

John John - MVP

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
 
G

Geoff

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top