Chore: change Firewall rule SRV-01

This commit is contained in:
Winston Smith 2021-05-10 17:22:40 +02:00
parent ea2d512876
commit 78d8104c1d
2 changed files with 3 additions and 18 deletions

View File

@ -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"

View File

@ -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