fix: routing role add RTR-03, routing fix RTR-01
This commit is contained in:
parent
bde15a15bf
commit
34c9e66810
@ -67,6 +67,16 @@ Start-Service RemoteAccess
|
||||
|
||||
# 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 ###
|
||||
|
||||
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 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 ###
|
||||
echo "Set connection as private"
|
||||
|
@ -50,12 +50,19 @@ foreach ($c in Get-NetAdapter) { write-host 'Setting DNS for' $c.interfaceName ;
|
||||
|
||||
### 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
|
||||
set-service RemoteAccess -StartupType Automatic
|
||||
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 ###
|
||||
|
||||
Get-NetFirewallRule -name "*ICMP4-ERQ-In*" |Enable-NetFirewallRule
|
||||
|
Loading…
Reference in New Issue
Block a user