diff --git a/Routeur.ps1 b/RTR-01.ps1 similarity index 79% rename from Routeur.ps1 rename to RTR-01.ps1 index 44f5ab1..eb6118e 100644 --- a/Routeur.ps1 +++ b/RTR-01.ps1 @@ -2,6 +2,7 @@ # 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?" @@ -31,4 +32,12 @@ $Params = @{ "Action" = 'Allow' } -Set-NetFirewallRule @Params \ No newline at end of file +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 \ No newline at end of file diff --git a/DHCP.ps1 b/SRV-01_DHCP.ps1 similarity index 100% rename from DHCP.ps1 rename to SRV-01_DHCP.ps1