fix: routing role add RTR-03, routing fix RTR-01

This commit is contained in:
Alexandre S 2021-05-10 16:35:35 +02:00
parent bde15a15bf
commit 34c9e66810
2 changed files with 20 additions and 19 deletions

View File

@ -67,6 +67,16 @@ Start-Service RemoteAccess
# End of scritlet # 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 ### ### Activate NAT and DHCP Relay ###
echo "Activating NAT and DHCP Relay" echo "Activating NAT and DHCP Relay"
@ -84,22 +94,6 @@ netsh routing ip relay add interface "Arc-SRV"
netsh rout ip rel set int WAN min=0 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
echo "installing VPN routing role"
Install-windowsFeature -Name Routing -IncludemanagementTools
Install-remoteAccess -VpnType Routingonly
set-service RemoteAccess -StartupType Automatic
Start-Service RemoteAccess
#END
### Activating DHCP Relay (Useless?)
#netsh -f ./Arc-CLI.conf
#netsh -f ./Arc-SRV.conf
#netsh -f ./WAN.conf
# End of scriptlet
### Set connection as private ### ### Set connection as private ###
echo "Set connection as private" echo "Set connection as private"

View File

@ -50,12 +50,19 @@ 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-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
# Configure NAT
netsh routing ip nat installing
netsh routing ip nat add interface name="WAN" mode=Private
netsh routing ip nat add interface name="Aston" mode=FULL
### Change ZoneAlarm rule to accept incoming ICMP ipv4 probes ### ### Change ZoneAlarm rule to accept incoming ICMP ipv4 probes ###
Get-NetFirewallRule -name "*ICMP4-ERQ-In*" |Enable-NetFirewallRule Get-NetFirewallRule -name "*ICMP4-ERQ-In*" |Enable-NetFirewallRule