Blocking application port
Hello,
can somebody tell me please how to close an existing application port? I wolud like to write a program that blocks the packets of an application, if the application is not digitaly signed.
I used EnumProcess and now I have a list with the .exe paths and PIDs (process id-s) too.
Thank you in anticipation for any help.
Re: Blocking application port
Quote:
Originally Posted by
csienke
Hello,
can somebody tell me please how to close an existing application port? I wolud like to write a program that blocks the packets of an application, if the application is not digitaly signed.
I used EnumProcess and now I have a list with the .exe paths and PIDs (process id-s) too.
Thank you in anticipation for any help.
Hi there, what you want to do is actually making a "firewall-like" application. I read this article in codeproject (sometimes ago) that you might be interested: http://www.codeproject.com/KB/IP/FwHookDrv.aspx
Re: Blocking application port
Hi, thank you for the link. I tried out the source code, but unfortunately it doesn't work with Vista :(
I tried it out on one pc with two applications that communicate on a specified port.
Is there any solution to block packet sending in C++ under Vista?
Re: Blocking application port
Quote:
Originally Posted by
csienke
Hi, thank you for the link. I tried out the source code, but unfortunately it doesn't work with Vista :(
I tried it out on one pc with two applications that communicate on a specified port.
Is there any solution to block packet sending in C++ under Vista?
Maybe you could try to use Windows Filtering Platform (WFP), this is the link: http://www.microsoft.com/whdc/device/network/wfp.mspx
I never tried this before though.