Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Bob Tanner
packer-windows
Commits
2187ccb3
Unverified
Commit
2187ccb3
authored
Aug 31, 2017
by
Stefan Scherer
Browse files
Add firewall rule for Packer
parent
43526210
Changes
1
Show whitespace changes
Inline
Side-by-side
hyperv/terraform/provision.ps1
View file @
2187ccb3
...
...
@@ -44,6 +44,9 @@ Function SetupPhase2 {
Add-DhcpServerv4Scope
-Name
"Internal"
-StartRange
192.168.0.10
-EndRange
192.168.0.250
-SubnetMask
255.255.255.0
-Description
"Internal Network"
Set-DhcpServerv4OptionValue
-ScopeID
192.168.0
-DNSServer
8.8.8.8
-Router
192.168.0.1
Write-Host
"Allow Packer http server"
New-NetFirewallRule
-DisplayName
"Allow Packer"
-Direction
Inbound
-Program
"C:\ProgramData\chocolatey\lib\packer\tools\packer.exe"
-RemoteAddress
LocalSubnet
-Action
Allow
Write-Host
"Disabling autologon"
New-ItemProperty
-Path
"HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon"
-Name
AutoAdminLogon
-PropertyType
DWORD
-Value
"0"
-Force
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment