Configuring Windows XP firewall
From WPKG | Open Source Software Deployment and Distribution
Revision as of 02:12, 11 February 2008 by Laudrin (Talk | contribs) (Added how to add ports and programs to the firewall exception list)
To disable Windows XP firewall, you have to execute the following:
netsh firewall set opmode disable
It is enough to execute it only once, as it will survive the reboot, so you may use execute="once".
To add ports to the exception list:
netsh firewall add portopening [protocol] [port number] [rule name]
[protocol] can be TCP or UDP (remove the brackets when you insert your values).
To add a program to the exception list:
add allowedprogram program = [path] name = [name] mode = [ENABLE|DISABLE] scope = [ALL|SUBNET|CUSTOM] addresses = [addresses] profile = [CURRENT|DOMAIN|STANDARD|ALL]
You might want to check the article in the MS Windows XP TechCenter for detailed explanation.