goatberg Posted October 17, 2011 Posted October 17, 2011 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? Quote
ICTCity Posted October 17, 2011 Posted October 17, 2011 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" Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
goatberg Posted October 17, 2011 Author Posted October 17, 2011 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? Quote
ICTCity Posted October 17, 2011 Posted October 17, 2011 You can't open it as normal file... you can just import in another machine. Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
goatberg Posted October 17, 2011 Author Posted October 17, 2011 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. Quote
ICTCity Posted October 18, 2011 Posted October 18, 2011 Mhh you could try to open the file with Notepad++ but actually I don't think you can edit it as you like... Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.