From 3f26aee7daa8857cb594b28da85ac0d4986b7e4b Mon Sep 17 00:00:00 2001 From: Alexandre S Date: Mon, 10 May 2021 17:22:40 +0200 Subject: [PATCH] Chore: change Firewall rule SRV-01 --- Guests/RTR-01.ps1 | 10 ---------- Guests/SRV-01.ps1 | 11 +++-------- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/Guests/RTR-01.ps1 b/Guests/RTR-01.ps1 index 445a708..4c9daa3 100644 --- a/Guests/RTR-01.ps1 +++ b/Guests/RTR-01.ps1 @@ -67,16 +67,6 @@ Start-Service RemoteAccess # End of scritlet - -### Activating remote-access role -echo "installing VPN routing role" -Install-windowsFeature -Name Routing -IncludemanagementTools -Install-remoteAccess -VpnType Routingonly -set-service RemoteAccess -StartupType Automatic -Start-Service RemoteAccess - -#END - ### Activate NAT and DHCP Relay ### echo "Activating NAT and DHCP Relay" diff --git a/Guests/SRV-01.ps1 b/Guests/SRV-01.ps1 index 590f06d..1f7da53 100644 --- a/Guests/SRV-01.ps1 +++ b/Guests/SRV-01.ps1 @@ -92,16 +92,11 @@ Add-DhcpServerv4ExclusionRange -ScopeID 192.168.128.0 -StartRange 192.168.128.1 Add-DhcpServerv4ExclusionRange -ScopeID 192.168.128.0 -StartRange 192.168.128.240 -EndRange 192.168.128.254 #END -### Change ZoneAlarm rule to accept incoming ICMP ipv4 probes +### Change ZoneAlarm rule to accept incoming ICMP ipv4 probes ### -echo "Allowing ICMPv4 probes" -$Params = @{ - "Name" = 'vm-monitoring-icmpv4' - "Action" = 'Allow' -} +Get-NetFirewallRule -name "*ICMP4-ERQ-In*" | Enable-NetFirewallRule -Set-NetFirewallRule @Params -# END +#END ### Add routes for RTR-01