How to shutdown open network ports?

  • Thread starter Thread starter ESmith
  • Start date Start date
E

ESmith

My application when run, needs to close all outgoing ports (excluding
80,443,25). With packet filtering I've figured out how to block "new"
traffic, but how do close an existing, established connection - that is,
some server program that is waiting on connections at a certain port?

TIA
 
ESmith ã®ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸:
My application when run, needs to close all outgoing ports (excluding
80,443,25). With packet filtering I've figured out how to block "new"
traffic, but how do close an existing, established connection - that is,
some server program that is waiting on connections at a certain port?

TIA

Can C# alone accomplish these enable-disable functionalities ? I guess
some kind of dll import might be in need, I used to use network
interface provided in my C# Exp but failed to static cast the enum type
into the provided interface type.
 
Look for Win32 map to WMI (System.Management) then you might get what you
want.

chanmm

message
ESmith ??????:
My application when run, needs to close all outgoing ports (excluding
80,443,25). With packet filtering I've figured out how to block "new"
traffic, but how do close an existing, established connection - that is,
some server program that is waiting on connections at a certain port?

TIA

Can C# alone accomplish these enable-disable functionalities ? I guess
some kind of dll import might be in need, I used to use network
interface provided in my C# Exp but failed to static cast the enum type
into the provided interface type.
 
| My application when run, needs to close all outgoing ports (excluding
| 80,443,25). With packet filtering I've figured out how to block "new"
| traffic, but how do close an existing, established connection - that is,
| some server program that is waiting on connections at a certain port?
|
| TIA
|
|

You can't, unless you are willing to kill the applications having these
ports open.

Willy.
 

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

Back
Top