Firewall Exceptions not working
Hi Guys
I am working on an application which when launched prompts for firewall exception. I click allow and the application runs fine for all subsequent launches. I exported the firewall exception registry keys from and imported them in my package. After installing the MSI with the firewall exceptions, the application still prompts for the firewall exception and when I allow, the application runs fine. When I go to the registry, there are 4 registry entries, 2 installed by the package and 2 at launch. The registry keys I am including in my package are as follows:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SharedAccess\Parameters\FirewallPolicy\FirewallRules]
"TCP Query User{7D9967C0-F03E-450D-A550-8FF40867AAE6}C:\\program files (x86)\\vendor\\appname\\appname.exe"="v2.10|Action=Allow|Active=TRUE|Dir=In|Protocol=6|Profile=Domain|appname=C:\\program files (x86)\\vendor\\appname\\appname.exe|Name=appname Invoker|Desc=appname Invoker|Defer=User|"
"UDP Query User{4A383E61-AFB8-4D0B-ADEA-230C488B4678}C:\\program files (x86)\\vendor\\appname\\appname.exe"="v2.10|Action=Allow|Active=TRUE|Dir=In|Protocol=17|Profile=Domain|appname=C:\\program files (x86)\\vendor\\appname\\appname.exe|Name=appname Invoker|Desc=appname Invoker|Defer=User|"
One thing to note is that instead of an application name, there are GUIDs which change on every install which is why I think they are not being recognized at runtime.
Has anyone run into this issue before? Thoughts?
SOLUTION: This turned out to be the issue:
http://bish.co.uk/2011/05/23/vmware-qunidentified-networkq-problem-with-windows-7/
Answers (1)
http://msdn.microsoft.com/en-us/library/windows/desktop/aa366421%28v=vs.85%29.aspx
or if you prefer DOS:
http://community.spiceworks.com/scripts/show/1336-add-exception-in-firewall
What is this "Google" thing that everyone keeps talking about? Anyone know?
Comments:
-
The question wasn't how to add firewall exceptions, I have already done that as per my post and they are even added but Windows doesn't recognize them. - tellmehow 10 years ago
-
...because you've added them in the wrong way!! Besides anything else, the firewall runs as a service so at the very least you'd need to stop and restart it. Or you could add the exceptions in the proper, documented way. Your choice... - anonymous_9363 10 years ago