Moved to local machine
This commit is contained in:
parent
2f6a6bb7bc
commit
ab69676766
26
Arc-CLI.conf
26
Arc-CLI.conf
@ -1,13 +1,13 @@
|
||||
pushd routing ip relay
|
||||
|
||||
Install
|
||||
|
||||
set global loglevel = ERROR
|
||||
|
||||
add dhcpserver 192.168.8.1
|
||||
|
||||
add interface name = "Arc-CLI"
|
||||
|
||||
set interface name = "Arc-CLI" relaymode = enable maxhop = 6 minsecs = 6
|
||||
|
||||
popd
|
||||
pushd routing ip relay
|
||||
|
||||
Install
|
||||
|
||||
set global loglevel = ERROR
|
||||
|
||||
add dhcpserver 192.168.8.1
|
||||
|
||||
add interface name = "Arc-CLI"
|
||||
|
||||
set interface name = "Arc-CLI" relaymode = enable maxhop = 6 minsecs = 6
|
||||
|
||||
popd
|
||||
|
26
Arc-SRV.conf
26
Arc-SRV.conf
@ -1,13 +1,13 @@
|
||||
pushd routing ip relay
|
||||
|
||||
Install
|
||||
|
||||
set global loglevel = ERROR
|
||||
|
||||
add dhcpserver 192.168.8.1
|
||||
|
||||
add interface name = "Arc-SRV"
|
||||
|
||||
set interface name = "Arc-SRV" relaymode = enable maxhop = 6 minsecs = 6
|
||||
|
||||
popd
|
||||
pushd routing ip relay
|
||||
|
||||
Install
|
||||
|
||||
set global loglevel = ERROR
|
||||
|
||||
add dhcpserver 192.168.8.1
|
||||
|
||||
add interface name = "Arc-SRV"
|
||||
|
||||
set interface name = "Arc-SRV" relaymode = enable maxhop = 6 minsecs = 6
|
||||
|
||||
popd
|
||||
|
26
Bou-LAN.conf
26
Bou-LAN.conf
@ -1,13 +1,13 @@
|
||||
pushd routing ip relay
|
||||
|
||||
Install
|
||||
|
||||
set global loglevel = ERROR
|
||||
|
||||
add dhcpserver 192.168.8.1
|
||||
|
||||
add interface name = "Bou-LAN"
|
||||
|
||||
set interface name = "Bou-LAN" relaymode = enable maxhop = 6 minsecs = 6
|
||||
|
||||
popd
|
||||
pushd routing ip relay
|
||||
|
||||
Install
|
||||
|
||||
set global loglevel = ERROR
|
||||
|
||||
add dhcpserver 192.168.8.1
|
||||
|
||||
add interface name = "Bou-LAN"
|
||||
|
||||
set interface name = "Bou-LAN" relaymode = enable maxhop = 6 minsecs = 6
|
||||
|
||||
popd
|
||||
|
108
RTR-01.ps1
108
RTR-01.ps1
@ -1,55 +1,55 @@
|
||||
# Alexandre SIMAO
|
||||
# GPLv3
|
||||
|
||||
# Script to install and configure a Fuckdows Server 2016 as a router
|
||||
# RTR-01 Only
|
||||
|
||||
# Change the poor machine name
|
||||
$name = Read-host "Nouveau nom d'hôte?"
|
||||
Rename-computer $name
|
||||
|
||||
# Install Routing and necessary linked roles
|
||||
Install-WindowsFeature RemoteAccess, RSAT-RemoteAccess-PowerShell, Routing -IncludeManagementTools
|
||||
#Install-remoteAccess -VpnType Vpn
|
||||
|
||||
# Display interfaces and active forwarding for all of thm via Regedit
|
||||
netsh inter show inter
|
||||
Set-ItemProperty -path 'HKLM:\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet`
|
||||
\Services\Tcpip\Parameters' -Name 'IPEnableRouter' -Value '0x00000001'
|
||||
Set-NetConnectionProfile -NetworkCategory Private
|
||||
|
||||
# Activate NAT and DHCP Relay
|
||||
netsh routing ip relay install
|
||||
|
||||
netsh routing ip add interface name="WAN" state=enable
|
||||
|
||||
netsh routing ip relay add interface "WAN"
|
||||
netsh rout ip rel set int ARC-CLI min=0
|
||||
netsh routing ip relay add interface "Arc-CLI"
|
||||
netsh rout ip rel set int ARC-SRV min=0
|
||||
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
|
||||
|
||||
set-service RemoteAccess -StartupType Automatic
|
||||
Start-Service RemoteAccess
|
||||
|
||||
netsh -f ./Arc-CLI.conf
|
||||
netsh -f ./Arc-SRV.conf
|
||||
netsh -f ./WAN.conf
|
||||
|
||||
# Change ZoneAlarm rule to accept incoming ICMP ipv4 probes
|
||||
$Params = @{
|
||||
"Name" = 'vm-monitoring-icmpv4'
|
||||
"Action" = 'Allow'
|
||||
}
|
||||
|
||||
Set-NetFirewallRule @Params
|
||||
|
||||
# Add routes
|
||||
|
||||
route add -p 192.168.8.0/24 192.168.8.254
|
||||
route add -p 192.168.12.0.24 192.168.12.254
|
||||
route add -p 192.168.255.0/24 192.168.255.8
|
||||
route add -p 192.168.128.8/24 192.168.255.128
|
||||
# Alexandre SIMAO
|
||||
# GPLv3
|
||||
|
||||
# Script to install and configure a Fuckdows Server 2016 as a router
|
||||
# RTR-01 Only
|
||||
|
||||
# Change the poor machine name
|
||||
$name = Read-host "Nouveau nom d'hôte?"
|
||||
Rename-computer $name
|
||||
|
||||
# Install Routing and necessary linked roles
|
||||
Install-WindowsFeature RemoteAccess, RSAT-RemoteAccess-PowerShell, Routing -IncludeManagementTools
|
||||
#Install-remoteAccess -VpnType Vpn
|
||||
|
||||
# Display interfaces and active forwarding for all of thm via Regedit
|
||||
netsh inter show inter
|
||||
Set-ItemProperty -path 'HKLM:\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet`
|
||||
\Services\Tcpip\Parameters' -Name 'IPEnableRouter' -Value '0x00000001'
|
||||
Set-NetConnectionProfile -NetworkCategory Private
|
||||
|
||||
# Activate NAT and DHCP Relay
|
||||
netsh routing ip relay install
|
||||
|
||||
netsh routing ip add interface name="WAN" state=enable
|
||||
|
||||
netsh routing ip relay add interface "WAN"
|
||||
netsh rout ip rel set int ARC-CLI min=0
|
||||
netsh routing ip relay add interface "Arc-CLI"
|
||||
netsh rout ip rel set int ARC-SRV min=0
|
||||
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
|
||||
|
||||
set-service RemoteAccess -StartupType Automatic
|
||||
Start-Service RemoteAccess
|
||||
|
||||
netsh -f ./Arc-CLI.conf
|
||||
netsh -f ./Arc-SRV.conf
|
||||
netsh -f ./WAN.conf
|
||||
|
||||
# Change ZoneAlarm rule to accept incoming ICMP ipv4 probes
|
||||
$Params = @{
|
||||
"Name" = 'vm-monitoring-icmpv4'
|
||||
"Action" = 'Allow'
|
||||
}
|
||||
|
||||
Set-NetFirewallRule @Params
|
||||
|
||||
# Add routes
|
||||
|
||||
route add -p 192.168.8.0/24 192.168.8.254
|
||||
route add -p 192.168.12.0.24 192.168.12.254
|
||||
route add -p 192.168.255.0/24 192.168.255.8
|
||||
route add -p 192.168.128.8/24 192.168.255.128
|
||||
route add -p 0.0.0.0/0 192.168.255.0
|
98
RTR-02.ps1
98
RTR-02.ps1
@ -1,50 +1,50 @@
|
||||
# Alexandre SIMAO
|
||||
# GPLv3
|
||||
|
||||
# Script to install and configure a Fuckdows Server 2016 as a router
|
||||
# RTR-03 Only
|
||||
|
||||
# Change the poor machine name
|
||||
$name = Read-host "Nouveau nom d'hôte?"
|
||||
Rename-computer $name
|
||||
|
||||
# Install Routing and necessary linked roles
|
||||
Install-WindowsFeature RemoteAccess, RSAT-RemoteAccess-PowerShell, Routing -IncludeManagementTools
|
||||
set-service RemoteAccess -StartupType Automatic
|
||||
Start-Service RemoteAccess
|
||||
|
||||
# Display interfaces and active forwarding for all of thm via Regedit
|
||||
netsh inter show inter
|
||||
|
||||
Set-ItemProperty -path 'HKLM:\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet`
|
||||
\Services\Tcpip\Parameters' -Name 'IPEnableRouter' -Value '0x00000001'
|
||||
Set-NetConnectionProfile -NetworkCategory Private
|
||||
|
||||
# Activate NAT and DHCP Relay
|
||||
netsh routing ip relay install
|
||||
|
||||
netsh routing ip add interface name="WAN" state=enable
|
||||
|
||||
netsh routing ip relay add interface "WAN"
|
||||
netsh rout ip rel set int ARC-CLI min=0
|
||||
netsh routing ip relay add interface "Bou-LAN"
|
||||
netsh rout ip rel set int ARC-SRV min=0
|
||||
|
||||
|
||||
netsh -f ./Bou-LAN.conf
|
||||
|
||||
# Change ZoneAlarm rule to accept incoming ICMP ipv4 probes
|
||||
$Params = @{
|
||||
"Name" = 'vm-monitoring-icmpv4'
|
||||
"Action" = 'Allow'
|
||||
}
|
||||
|
||||
Set-NetFirewallRule @Params
|
||||
|
||||
# Add routes
|
||||
|
||||
route add -p 192.168.8.0/24 192.168.255.8
|
||||
route add -p 192.168.12.0.24 192.168.255.8
|
||||
route add -p 192.168.255.0/24 192.168.255.128
|
||||
route add -p 192.168.128.0/24 192.168.128.254
|
||||
# Alexandre SIMAO
|
||||
# GPLv3
|
||||
|
||||
# Script to install and configure a Fuckdows Server 2016 as a router
|
||||
# RTR-03 Only
|
||||
|
||||
# Change the poor machine name
|
||||
$name = Read-host "Nouveau nom d'hôte?"
|
||||
Rename-computer $name
|
||||
|
||||
# Install Routing and necessary linked roles
|
||||
Install-WindowsFeature RemoteAccess, RSAT-RemoteAccess-PowerShell, Routing -IncludeManagementTools
|
||||
set-service RemoteAccess -StartupType Automatic
|
||||
Start-Service RemoteAccess
|
||||
|
||||
# Display interfaces and active forwarding for all of thm via Regedit
|
||||
netsh inter show inter
|
||||
|
||||
Set-ItemProperty -path 'HKLM:\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet`
|
||||
\Services\Tcpip\Parameters' -Name 'IPEnableRouter' -Value '0x00000001'
|
||||
Set-NetConnectionProfile -NetworkCategory Private
|
||||
|
||||
# Activate NAT and DHCP Relay
|
||||
netsh routing ip relay install
|
||||
|
||||
netsh routing ip add interface name="WAN" state=enable
|
||||
|
||||
netsh routing ip relay add interface "WAN"
|
||||
netsh rout ip rel set int ARC-CLI min=0
|
||||
netsh routing ip relay add interface "Bou-LAN"
|
||||
netsh rout ip rel set int ARC-SRV min=0
|
||||
|
||||
|
||||
netsh -f ./Bou-LAN.conf
|
||||
|
||||
# Change ZoneAlarm rule to accept incoming ICMP ipv4 probes
|
||||
$Params = @{
|
||||
"Name" = 'vm-monitoring-icmpv4'
|
||||
"Action" = 'Allow'
|
||||
}
|
||||
|
||||
Set-NetFirewallRule @Params
|
||||
|
||||
# Add routes
|
||||
|
||||
route add -p 192.168.8.0/24 192.168.255.8
|
||||
route add -p 192.168.12.0.24 192.168.255.8
|
||||
route add -p 192.168.255.0/24 192.168.255.128
|
||||
route add -p 192.168.128.0/24 192.168.128.254
|
||||
route add -p 0.0.0.0/0 192.168.255.0
|
70
RTR-03.ps1
70
RTR-03.ps1
@ -1,36 +1,36 @@
|
||||
# Alexandre SIMAO
|
||||
# GPLv3
|
||||
|
||||
# Script to install and configure a Fuckdows Server 2016 as a router
|
||||
# RTR-03 Only
|
||||
|
||||
# Change the poor machine name
|
||||
$name = Read-host "Nouveau nom d'hôte?"
|
||||
Rename-computer $name
|
||||
|
||||
# Install Routing and necessary linked roles
|
||||
Install-WindowsFeature RemoteAccess -IncludeManagementTools
|
||||
set-service RemoteAccess -StartupType Automatic
|
||||
Start-Service RemoteAccess
|
||||
|
||||
# Activate NAT
|
||||
|
||||
netsh routing ip nat install
|
||||
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
|
||||
$Params = @{
|
||||
"Name" = 'vm-monitoring-icmpv4'
|
||||
"Action" = 'Allow'
|
||||
}
|
||||
|
||||
Set-NetFirewallRule @Params
|
||||
|
||||
# Add routes
|
||||
|
||||
route add -p 0.0.0.0/0 10.94.2.137
|
||||
route add -p 192.168.8.0/24 192.168.255.8
|
||||
route add -p 192.168.12.0/24 192.168.255.8
|
||||
route add -p 192.168.128.0/24 192.168.255.128
|
||||
# Alexandre SIMAO
|
||||
# GPLv3
|
||||
|
||||
# Script to install and configure a Fuckdows Server 2016 as a router
|
||||
# RTR-03 Only
|
||||
|
||||
# Change the poor machine name
|
||||
$name = Read-host "Nouveau nom d'hôte?"
|
||||
Rename-computer $name
|
||||
|
||||
# Install Routing and necessary linked roles
|
||||
Install-WindowsFeature RemoteAccess -IncludeManagementTools
|
||||
set-service RemoteAccess -StartupType Automatic
|
||||
Start-Service RemoteAccess
|
||||
|
||||
# Activate NAT
|
||||
|
||||
netsh routing ip nat install
|
||||
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
|
||||
$Params = @{
|
||||
"Name" = 'vm-monitoring-icmpv4'
|
||||
"Action" = 'Allow'
|
||||
}
|
||||
|
||||
Set-NetFirewallRule @Params
|
||||
|
||||
# Add routes
|
||||
|
||||
route add -p 0.0.0.0/0 10.94.2.137
|
||||
route add -p 192.168.8.0/24 192.168.255.8
|
||||
route add -p 192.168.12.0/24 192.168.255.8
|
||||
route add -p 192.168.128.0/24 192.168.255.128
|
||||
route add -p 192.168.255.0/24 192.168.255.254
|
26
WAN.conf
26
WAN.conf
@ -1,13 +1,13 @@
|
||||
pushd routing ip relay
|
||||
|
||||
Install
|
||||
|
||||
set global loglevel = ERROR
|
||||
|
||||
add dhcpserver 192.168.8.1
|
||||
|
||||
add interface name = "WAN"
|
||||
|
||||
set interface name = "WAN" relaymode = enable maxhop = 6 minsecs = 6
|
||||
|
||||
popd
|
||||
pushd routing ip relay
|
||||
|
||||
Install
|
||||
|
||||
set global loglevel = ERROR
|
||||
|
||||
add dhcpserver 192.168.8.1
|
||||
|
||||
add interface name = "WAN"
|
||||
|
||||
set interface name = "WAN" relaymode = enable maxhop = 6 minsecs = 6
|
||||
|
||||
popd
|
||||
|
Loading…
Reference in New Issue
Block a user