Skip to content

Commit

Permalink
add windows firewall rules for the proxy case (#72)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
  • Loading branch information
atomic111 authored Aug 29, 2024
1 parent 4805807 commit 5d5ce60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aws/ec2-instance-proxy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ locals {
Set-LocalUser -Name Administrator -Password $NewPassword
New-NetFirewallRule -DisplayName “AllowRDP” -Direction Inbound -Protocol TCP -LocalPort 3389 -Action Allow
Set-NetFirewallProfile -Name Public -DefaultOutboundAction Block
Set-NetFirewallProfile -Name Domain -DefaultOutboundAction Block
Set-NetFirewallProfile -Name Private -DefaultOutboundAction Block
New-NetFirewallRule -DisplayName “AllowDNS” -Direction Outbound -Protocol ANY -RemotePort 53 -Action Allow
New-NetFirewallRule -Name Allow10.0.0.0 -DisplayName 'Allow from 10.0.0.0/8' -Enabled True -Direction Outbound -Protocol ANY -Action Allow -Profile ANY -RemoteAddress 10.0.0.0/8
</powershell>
Expand Down

0 comments on commit 5d5ce60

Please sign in to comment.