New Question
0

Can UserDataPlugin be used to add firewall rule on windows instance?

asked 2015-05-20 23:28:33 +0200

rmulay gravatar image

Hi - I am trying to use chef to bootstrap a windows VM on openstack. The issue I am running into is that chef needs winRM to work. I need to run the following command -

netsh advfirewall firewall add rule name="WinRM 5985" protocol=TCP dir=in localport=5985 action=allow

I have been reading about couldbase-init and how a PS script can be run on first boot using the UserDataPlugin. But I cannot seem to find where exactly I should specify the above command? http://www.cloudbase.it/cloud-init-fo... says to pass it in as user_data but I cannot find any documentation that explains how this plugin works. Can someone explain? Will this approach work to create a firewall rule? Or if there is a better way to do this? Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2015-05-21 23:31:25 +0200

rmulay gravatar image

I figured out how to do this from this article - http://www.cloudbase.it/windows-witho....

Now I wonder how I can add RDP access to public networks too...the current image I am using on openstack only allows RDP for private n/w. I may just post another question for this.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-05-20 23:28:33 +0200

Seen: 3,811 times

Last updated: May 21 '15