fix: routing role corrected

This commit is contained in:
Alexandre S 2021-05-10 12:48:32 +02:00
parent b26d2a4aaf
commit 4c1ba458a7
3 changed files with 6 additions and 1 deletions

View File

@ -85,9 +85,12 @@ netsh rout ip rel set int WAN min=0
netsh routing ip relay add dhcpserver 192.168.8.1 netsh routing ip relay add dhcpserver 192.168.8.1
### Activating remote-access role ### Activating remote-access role
echo "installing VPN routing role"
Install-windowsFeature -Name Routing -IncludemanagementTools
Install-remoteAccess -VpnType Routingonly
set-service RemoteAccess -StartupType Automatic set-service RemoteAccess -StartupType Automatic
Start-Service RemoteAccess Start-Service RemoteAccess
#END #END
### Activating DHCP Relay (Useless?) ### Activating DHCP Relay (Useless?)

View File

@ -50,6 +50,7 @@ foreach ($c in Get-NetAdapter) { write-host 'Setting DNS for' $c.interfaceName ;
### Install VPN (?) ### Install VPN (?)
echo "installing VPN routing role" echo "installing VPN routing role"
Install-windowsFeature -Name Routing -IncludemanagementTools
Install-remoteAccess -VpnType Routingonly Install-remoteAccess -VpnType Routingonly
set-service RemoteAccess -StartupType Automatic set-service RemoteAccess -StartupType Automatic
Start-Service RemoteAccess Start-Service RemoteAccess

View File

@ -51,6 +51,7 @@ 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 VPN routing role" echo "installing VPN routing role"
Install-windowsFeature -Name Routing -IncludemanagementTools
Install-remoteAccess -VpnType Routingonly Install-remoteAccess -VpnType Routingonly
set-service RemoteAccess -StartupType Automatic set-service RemoteAccess -StartupType Automatic
Start-Service RemoteAccess Start-Service RemoteAccess