fix: Change Routing role to remove useless ones
This commit is contained in:
parent
bd08bdbe93
commit
5633d3ac69
@ -60,16 +60,10 @@ foreach ($c in Get-NetAdapter) { write-host 'Setting DNS for' $c.interfaceName ;
|
|||||||
|
|
||||||
### Install Routing and necessary linked roles ###
|
### Install Routing and necessary linked roles ###
|
||||||
|
|
||||||
echo "Installing Remote-Access, RSAT, Routing"
|
echo "installing VPN routing role"
|
||||||
Install-WindowsFeature RemoteAccess, RSAT-RemoteAccess-PowerShell, Routing -IncludeManagementTools
|
|
||||||
|
|
||||||
# End of scritlet
|
|
||||||
|
|
||||||
### Install VPN (necessary?) ###
|
|
||||||
|
|
||||||
echo "Installing VPN"
|
|
||||||
echo "Install-remoteAccess -VpnType Routingonly"
|
|
||||||
Install-remoteAccess -VpnType Routingonly
|
Install-remoteAccess -VpnType Routingonly
|
||||||
|
set-service RemoteAccess -StartupType Automatic
|
||||||
|
Start-Service RemoteAccess
|
||||||
|
|
||||||
# End of scritlet
|
# 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') }
|
foreach ($c in Get-NetAdapter) { write-host 'Setting DNS for' $c.interfaceName ; Set-DnsClientServerAddress -InterfaceIndex $c.interfaceindex -ServerAddresses ('9.9.9.9') }
|
||||||
#End
|
#End
|
||||||
|
|
||||||
### Install Routing and necessary linked roles + autostart
|
### Install VPN (?)
|
||||||
|
|
||||||
echo "Installing Remote-Access, RSAT, Routing + Auto-start"
|
echo "installing VPN routing role"
|
||||||
Install-WindowsFeature RemoteAccess, RSAT-RemoteAccess-PowerShell, Routing -IncludeManagementTools
|
Install-remoteAccess -VpnType Routingonly
|
||||||
set-service RemoteAccess -StartupType Automatic
|
set-service RemoteAccess -StartupType Automatic
|
||||||
Start-Service RemoteAccess
|
Start-Service RemoteAccess
|
||||||
|
|
||||||
#END
|
#END
|
||||||
|
|
||||||
### Install VPN (?)
|
|
||||||
|
|
||||||
echo "installing VPN routing role"
|
|
||||||
Install-remoteAccess -VpnType Routingonly
|
|
||||||
#End
|
|
||||||
|
|
||||||
### Set connection as Private
|
### 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
|
### Install Routing and necessary linked roles
|
||||||
|
|
||||||
echo "Installing Routing and necessary linked roles"
|
echo "installing VPN routing role"
|
||||||
Install-WindowsFeature RemoteAccess, RSAT-RemoteAccess-PowerShell, Routing -IncludeManagementTools
|
|
||||||
|
|
||||||
### Install VPN (?)
|
|
||||||
|
|
||||||
echo "Install Vpn"
|
|
||||||
Install-remoteAccess -VpnType Routingonly
|
Install-remoteAccess -VpnType Routingonly
|
||||||
#End
|
set-service RemoteAccess -StartupType Automatic
|
||||||
|
Start-Service RemoteAccess
|
||||||
|
|
||||||
### Change ZoneAlarm rule to accept incoming ICMP ipv4 probes ###
|
### Change ZoneAlarm rule to accept incoming ICMP ipv4 probes ###
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user