Discussion:
[WiX-users] How do I create a FirewallException for a port range?
John Mellor
2014-07-10 13:48:50 UTC
Permalink
The FirewallException implementation seems to only allow a single port number in the port property.
I need to open a block of ports for a custom service exe. I don't want to code up 100 invocations of FirewallException, one port at a time.
How do I specify a port range?
Phill Hogland
2014-07-10 16:47:16 UTC
Permalink
I believe, and someone can correct me if wrong, that generally the
WixFirewallExtension supports the parameters which were available to the
Windows Firewall (XP era) which also works with the Windows Advanced
Firewall. But the extension does not provide a way to specify some of the
parameters of the Windows Advanced Firewall, like Group Name and port
ranges.



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-do-I-create-a-FirewallException-for-a-port-range-tp7595749p7595754.html
Sent from the wix-users mailing list archive at Nabble.com.
Rob Mensching
2014-07-10 19:14:24 UTC
Permalink
Probably not but it would be awesome if someone helped add that support.

_______________________________________________________________
FireGiant | Dedicated support for the WiX toolset | http://www.firegiant.com/



-----Original Message-----
From: Phill Hogland [mailto:***@rimage.com]
Sent: Thursday, July 10, 2014 9:47 AM
To: wix-***@lists.sourceforge.net
Subject: Re: [WiX-users] How do I create a FirewallException for a port range?

I believe, and someone can correct me if wrong, that generally the WixFirewallExtension supports the parameters which were available to the Windows Firewall (XP era) which also works with the Windows Advanced Firewall. But the extension does not provide a way to specify some of the parameters of the Windows Advanced Firewall, like Group Name and port ranges.



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-do-I-create-a-FirewallException-for-a-port-range-tp7595749p7595754.html
Sent from the wix-users mailing list archive at Nabble.com.
Tunney, Stephen
2014-07-10 20:09:38 UTC
Permalink
Pre-processor loop
<?portRangeList="1,2,3,4,5,6,7,8,9........"?>

<?foreach dynaPortAwesomeness in $(var.portRangeList)?>
<fire:FirewallException Id="MyFirewallException" Name="!(loc.CASFirewallExceptionDescription)" Port="$(var.dynaPortAwesomeness)" Protocol="tcp" Scope="any" IgnoreFailure="yes" Profile="all" />
<?endforeach?>


Still kind of ugly but saves a LOT of XML

-----Original Message-----
From: Rob Mensching [mailto:***@firegiant.com]
Sent: July-10-14 3:14 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] How do I create a FirewallException for a port range?

Probably not but it would be awesome if someone helped add that support.

_______________________________________________________________
FireGiant | Dedicated support for the WiX toolset | http://www.firegiant.com/



-----Original Message-----
From: Phill Hogland [mailto:***@rimage.com]
Sent: Thursday, July 10, 2014 9:47 AM
To: wix-***@lists.sourceforge.net
Subject: Re: [WiX-users] How do I create a FirewallException for a port range?

I believe, and someone can correct me if wrong, that generally the WixFirewallExtension supports the parameters which were available to the Windows Firewall (XP era) which also works with the Windows Advanced Firewall. But the extension does not provide a way to specify some of the parameters of the Windows Advanced Firewall, like Group Name and port ranges.



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-do-I-create-a-FirewallException-for-a-port-range-tp7595749p7595754.html
Sent from the wix-users mailing list archive at Nabble.com.
Rob Mensching
2014-07-17 19:22:14 UTC
Permalink
Extend the firewall custom action to support it?

_______________________________________________________________
FireGiant | Dedicated support for the WiX toolset | http://www.firegiant.com/

-----Original Message-----
From: John Mellor [mailto:***@blackberry.com]
Sent: Thursday, July 10, 2014 6:49 AM
To: wix-***@lists.sourceforge.net
Subject: [WiX-users] How do I create a FirewallException for a port range?

The FirewallException implementation seems to only allow a single port number in the port property.
I need to open a block of ports for a custom service exe. I don't want to code up 100 invocations of FirewallException, one port at a time.
How do I specify a port range?

Loading...