Difference between revisions of "Configuring Windows XP firewall"
From WPKG | Open Source Software Deployment and Distribution
(Added how to add ports and programs to the firewall exception list) |
m (Disabling Windows XP firewall moved to Configuring Windows XP firewall: For program installation it is more useful to add rules to the firewall than disabling it. I added rules for ports and programs, so the title would be misleading.) |
(No difference)
|
Revision as of 02:21, 11 February 2008
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.