fix: Change Routing role to remove useless ones
This commit is contained in:
parent
2748eaf5a8
commit
197077f147
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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 ###
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user