Difference between revisions of "Configuring Windows XP firewall"
From WPKG | Open Source Software Deployment and Distribution
m |
(Added how to add ports and programs to the firewall exception list) |
||
Line 4: | Line 4: | ||
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". | ||
+ | |||
+ | |||
+ | 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 [http://technet.microsoft.com/en-us/library/bb490617.aspx MS Windows XP TechCenter] for detailed explanation. | ||
[[Category: Silent Installers]] | [[Category: Silent Installers]] | ||
[[Category: Changing Windows settings]] | [[Category: Changing Windows settings]] |
Revision as of 02:12, 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.