Jump to content

Fast Way To Add Multiple Subnets To Server 2008 Firewall Rules?

Featured Replies

Posted
I am configuring a firewall in windows server 2008. I need to add multiple subnets to an inbound rule but it is making me add the subnets one at a time. Is there any way to add multiple subnets at the same time? I tried separating them with commas and adding them via the GUI but it would not take it (it said specify a valid address). Also if you have already input a long list on subnets in one firewall rule is it possible to copy it over to another firewall rule?

Never tried before, but perhaps you can try with scripting by passing subnets as variables.

 

Regarding the copy & paste, it's quite easy:

 

http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2007/11/13/firewall-management-in-server-core-part-2.aspx

 

Look at section "Import and Export"

--------------------------------------------------------

Tu peux aussi crire en franais.

Du kannst auch auf Deutsch schreiben.

Puoi scrivere anche in italiano.

--------------------------------------------------------

  • Author

Thanks for the reply. I looked at that webpage you directed me to. It says to run the following command to export the firewall rules:

 

netsh advfirewall export C:\firewallconfiguration.wfw

 

I tried to open this .wfw file in notepad but it looks messy. If I export to a .txt it look equally as messy. Do you know what application I should use to open this .wfw file?

You can't open it as normal file... you can just import in another machine.

--------------------------------------------------------

Tu peux aussi crire en franais.

Du kannst auch auf Deutsch schreiben.

Puoi scrivere anche in italiano.

--------------------------------------------------------

  • Author

OK thanks.

 

For some reason I was thinking I could open it and then paste in all the subnets I had and then reimport it back into the original server.

Mhh you could try to open the file with Notepad++ but actually I don't think you can edit it as you like...

--------------------------------------------------------

Tu peux aussi crire en franais.

Du kannst auch auf Deutsch schreiben.

Puoi scrivere anche in italiano.

--------------------------------------------------------

Guest
Reply to this topic...