wfp

Windows Filtering Platform - How can I block incoming connections based on local port?

时光毁灭记忆、已成空白 提交于 2019-12-04 15:24:53
I'm attempting to set up some filters using WFP to block inbound connections to a local server (for example, a webserver listening on port 8080). I've got a filter working which can block based on Remote Port, so I can stop processes on my machine from establishing any connections to port 8080, but I can't figure out how to block incoming connections from another machine based on the local port 8080? Here's my code which works to block based on remote port: (It's C# using P/invoke but it's pretty much the same as if it were written in C++) var RemotePort = 8080 # port to block // connect to

Windows Driver Development: Deploy option missing in Visual Studio 2012

随声附和 提交于 2019-12-04 04:45:57
I was trying to compile and deploy the WFP sample obtained from MSDN called msnmntr but the same problem applies to all samples. This and all samples fail to deploy because there's one step in the documentation that are missing in Visual Studio 2012 Ultimate. It says: 1) Open the property pages for your driver package. Right-click the driver package project in Solution Explorer and select Properties. 2) In the property pages for the driver package, click Configuration Properties, click Driver Install, and then click Deployment. However there's no such option in the Visual Studio 2012 as you

Java 7 prevents FTP transfers on Windows Vista and 7 if firewall is on. Any ideas?

戏子无情 提交于 2019-11-27 10:16:00
Java 7 prevents FTP transfers on Windows Vista and 7. In FTP, before a file is transferred a PORT or a PASV command must be sent. As soon as one of the commands is sent the Windows Firewall closes the socket that sent it. This only happens if the firewall is on and an exception for java.exe is absent. I suspect this problem is related to Java 7 using the new Vista IP stack. Does anyone have any ideas how to fix or work around this problem? We're distributing a Java FTP library so we obviously can't add exceptions ourselves. Exception: java.net.SocketException: Permission denied: recv failed

Java 7 prevents FTP transfers on Windows Vista and 7 if firewall is on. Any ideas?

橙三吉。 提交于 2019-11-26 17:55:32
问题 Java 7 prevents FTP transfers on Windows Vista and 7. In FTP, before a file is transferred a PORT or a PASV command must be sent. As soon as one of the commands is sent the Windows Firewall closes the socket that sent it. This only happens if the firewall is on and an exception for java.exe is absent. I suspect this problem is related to Java 7 using the new Vista IP stack. Does anyone have any ideas how to fix or work around this problem? We're distributing a Java FTP library so we obviously