From 47ca1522d885f9dfa656510d02f2347ab4a633ae Mon Sep 17 00:00:00 2001 From: Winston Smith Date: Fri, 9 Apr 2021 11:43:46 +0200 Subject: [PATCH] Rename files --- Routeur.ps1 => RTR-01.ps1 | 11 ++++++++++- DHCP.ps1 => SRV-01_DHCP.ps1 | 0 2 files changed, 10 insertions(+), 1 deletion(-) rename Routeur.ps1 => RTR-01.ps1 (79%) rename DHCP.ps1 => SRV-01_DHCP.ps1 (100%) 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