Difference between revisions of "Opening Port Windows XP firewall"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
m
Line 1: Line 1:
 
To open port e.g.:22 Windows XP firewall, you have to execute the following:
 
To open port e.g.:22 Windows XP firewall, you have to execute the following:
  
  netsh firewall add portopening TCP 20 SSH enable subnet
+
  netsh firewall add portopening TCP 22 SSH enable subnet
  
 
It is enough to execute it only once, as it will survive the reboot, so you may use execute="once".
 
It is enough to execute it only once, as it will survive the reboot, so you may use execute="once".
Line 15: Line 15:
 
         priority="2">       
 
         priority="2">       
 
          
 
          
         <install cmd='netsh firewall add portopening TCP 20 SSH enable subnet' />
+
         <install cmd='netsh firewall add portopening TCP 22 SSH enable subnet' />
 
          
 
          
 
</package>
 
</package>
 
</source>
 
</source>
 +
 +
This is useful if you want to run a SSH server (i.e. [[freeSSHd]]), but still want to have a firewall enabled.
 +
 
[[Category: Silent Installers]]
 
[[Category: Silent Installers]]
 
[[Category: Changing Windows settings]]
 
[[Category: Changing Windows settings]]

Revision as of 18:30, 9 February 2008

To open port e.g.:22 Windows XP firewall, you have to execute the following:

netsh firewall add portopening TCP 22 SSH enable subnet

It is enough to execute it only once, as it will survive the reboot, so you may use execute="once".

On packages.xml you should add line like below:

<package
        id="open-port-22"
        name="Open port 22 on windows firewall"
        revision="1"
        reboot="false"
        notify="false"
        priority="2">      
        
        <install cmd='netsh firewall add portopening TCP 22 SSH enable subnet' />
        
</package>

This is useful if you want to run a SSH server (i.e. freeSSHd), but still want to have a firewall enabled.