close a TCP/UDP port on manual detection

S

SC

Is there any shell command or GUI utility to close a TCP/UDP port on
detection?

Once I detect that an unwanted TCP/UDP port is open (e.g. by using NETSTAT)
I would like to force it to close instantly... is there any way to
accomplish this?

thankx
 
P

Phillip Windell

Ports do not "self-exist". They exist because a program that is running has
created the ports and is listening on it. If you want the port closed
down,...then shutdown the program responsible and the port will "go away".

"TCPView.exe" (from SysInternals?) is a utility that can help you find the
progrma responsible.

--
Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
-----------------------------------------------------
Understanding the ISA 2004 Access Rule Processing
http://www.isaserver.org/articles/ISA2004_AccessRules.html

Microsoft Internet Security & Acceleration Server: Guidance
http://www.microsoft.com/isaserver/techinfo/Guidance/2004.asp
http://www.microsoft.com/isaserver/techinfo/Guidance/2000.asp

Microsoft Internet Security & Acceleration Server: Partners
http://www.microsoft.com/isaserver/partners/default.asp
 
S

SC

Thanks for your reply!

Hmmmm...... I thought that a program (the program that "opens" the port)
could access the network through some interface provided by the OS and so it
could be possible to interact with the TCP/IP interface provided by the OS
thus closing a wanted port?

Thanks!!!

SC

Phillip Windell said:
Ports do not "self-exist". They exist because a program that is running
has
created the ports and is listening on it. If you want the port closed
down,...then shutdown the program responsible and the port will "go away".

"TCPView.exe" (from SysInternals?) is a utility that can help you find the
progrma responsible.

--
Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
-----------------------------------------------------
Understanding the ISA 2004 Access Rule Processing
http://www.isaserver.org/articles/ISA2004_AccessRules.html

Microsoft Internet Security & Acceleration Server: Guidance
http://www.microsoft.com/isaserver/techinfo/Guidance/2004.asp
http://www.microsoft.com/isaserver/techinfo/Guidance/2000.asp

Microsoft Internet Security & Acceleration Server: Partners
http://www.microsoft.com/isaserver/partners/default.asp
-----------------------------------------------------



SC said:
Is there any shell command or GUI utility to close a TCP/UDP port on
detection?

Once I detect that an unwanted TCP/UDP port is open (e.g. by using NETSTAT)
I would like to force it to close instantly... is there any way to
accomplish this?

thankx
 

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