fix: Change Routing role to remove useless ones

This commit is contained in:
Winston Smith 2021-05-10 12:18:00 +02:00
parent 2748eaf5a8
commit 197077f147
3 changed files with 9 additions and 23 deletions

View File

@ -60,16 +60,10 @@ foreach ($c in Get-NetAdapter) { write-host 'Setting DNS for' $c.interfaceName ;
### Install Routing and necessary linked roles ###
echo "Installing Remote-Access, RSAT, Routing"
Install-WindowsFeature RemoteAccess, RSAT-RemoteAccess-PowerShell, Routing -IncludeManagementTools
# End of scritlet
### Install VPN (necessary?) ###
echo "Installing VPN"
echo "Install-remoteAccess -VpnType Routingonly"
echo "installing VPN routing role"
Install-remoteAccess -VpnType Routingonly
set-service RemoteAccess -StartupType Automatic
Start-Service RemoteAccess
# End of scritlet

View File

@ -47,20 +47,16 @@ echo "Configuring Dns"
foreach ($c in Get-NetAdapter) { write-host 'Setting DNS for' $c.interfaceName ; Set-DnsClientServerAddress -InterfaceIndex $c.interfaceindex -ServerAddresses ('9.9.9.9') }
#End
### Install Routing and necessary linked roles + autostart
### Install VPN (?)
echo "Installing Remote-Access, RSAT, Routing + Auto-start"
Install-WindowsFeature RemoteAccess, RSAT-RemoteAccess-PowerShell, Routing -IncludeManagementTools
echo "installing VPN routing role"
Install-remoteAccess -VpnType Routingonly
set-service RemoteAccess -StartupType Automatic
Start-Service RemoteAccess
#END
### Install VPN (?)
echo "installing VPN routing role"
Install-remoteAccess -VpnType Routingonly
#End
### Set connection as Private

View File

@ -50,14 +50,10 @@ foreach ($c in Get-NetAdapter) { write-host 'Setting DNS for' $c.interfaceName ;
### Install Routing and necessary linked roles
echo "Installing Routing and necessary linked roles"
Install-WindowsFeature RemoteAccess, RSAT-RemoteAccess-PowerShell, Routing -IncludeManagementTools
### Install VPN (?)
echo "Install Vpn"
echo "installing VPN routing role"
Install-remoteAccess -VpnType Routingonly
#End
set-service RemoteAccess -StartupType Automatic
Start-Service RemoteAccess
### Change ZoneAlarm rule to accept incoming ICMP ipv4 probes ###