From 6930626684fc9f724c581db7d157c455053d5d11 Mon Sep 17 00:00:00 2001 From: jmd Date: Sun, 19 Jan 2025 09:30:55 +0100 Subject: [PATCH] =?UTF-8?q?premi=C3=A8re=20version=20du=20d=C3=A9p=C3=B4t?= =?UTF-8?q?=20d=C3=A9mo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sisr1/README.md | 12 ++++++++++++ sisr1/tp01-nat-dhcp/README.md | 7 +++++++ sisr1/tp01-nat-dhcp/cartes_reseau/README.md | 2 ++ sisr1/tp01-nat-dhcp/nat/README.md | 3 +++ sisr1/tp01-nat-dhcp/nat/nat.sh | 0 sisr1/tp01-nat-dhcp/srv-dhcp/README.md | 6 ++++++ sisr1/tp02-dns/nat/README.md | 6 ++++++ sisr1/tp02-dns/nat/nat.service | 13 +++++++++++++ sisr1/tp02-dns/nat/nat.sh | 0 9 files changed, 49 insertions(+) create mode 100644 sisr1/README.md create mode 100644 sisr1/tp01-nat-dhcp/README.md create mode 100644 sisr1/tp01-nat-dhcp/cartes_reseau/README.md create mode 100644 sisr1/tp01-nat-dhcp/nat/README.md create mode 100644 sisr1/tp01-nat-dhcp/nat/nat.sh create mode 100644 sisr1/tp01-nat-dhcp/srv-dhcp/README.md create mode 100644 sisr1/tp02-dns/nat/README.md create mode 100644 sisr1/tp02-dns/nat/nat.service create mode 100644 sisr1/tp02-dns/nat/nat.sh diff --git a/sisr1/README.md b/sisr1/README.md new file mode 100644 index 0000000..4b6ee4d --- /dev/null +++ b/sisr1/README.md @@ -0,0 +1,12 @@ +# sisr1 + +Travaux pratiques de première année : option SISR + +**- tp01-nat-dhcp** : + * configuration de base d'un serveur DHCP Debian + * configuration simple d'un routeur NAT sous Debian avec **nftables** + +**- tp02-dns** : + * configuration de serveurs DNS primaires et secondaires + * configuration du service DHCP pour utiliser ces DNS + * automatisation du lancement du script NAT \ No newline at end of file diff --git a/sisr1/tp01-nat-dhcp/README.md b/sisr1/tp01-nat-dhcp/README.md new file mode 100644 index 0000000..019576a --- /dev/null +++ b/sisr1/tp01-nat-dhcp/README.md @@ -0,0 +1,7 @@ +# tp01-nat-dhcp + + + * configuration de base d'un serveur DHCP Debian + * configuration simple d'un routeur NAT sous Debian avec **nftables** + * fichiers de configuration des cartes réseau du routeur + diff --git a/sisr1/tp01-nat-dhcp/cartes_reseau/README.md b/sisr1/tp01-nat-dhcp/cartes_reseau/README.md new file mode 100644 index 0000000..2c8592c --- /dev/null +++ b/sisr1/tp01-nat-dhcp/cartes_reseau/README.md @@ -0,0 +1,2 @@ + * **interfaces** : + * fichier de configuration des interfaces réseau : /etc/network/interfaces \ No newline at end of file diff --git a/sisr1/tp01-nat-dhcp/nat/README.md b/sisr1/tp01-nat-dhcp/nat/README.md new file mode 100644 index 0000000..cf42b15 --- /dev/null +++ b/sisr1/tp01-nat-dhcp/nat/README.md @@ -0,0 +1,3 @@ + * **nat.sh** : script activant la NAT dynamique sans filtrage + * A placer à /root/nat.sh + * Rendre exécutable : ''chmod +x /root/nat.sh'' diff --git a/sisr1/tp01-nat-dhcp/nat/nat.sh b/sisr1/tp01-nat-dhcp/nat/nat.sh new file mode 100644 index 0000000..e69de29 diff --git a/sisr1/tp01-nat-dhcp/srv-dhcp/README.md b/sisr1/tp01-nat-dhcp/srv-dhcp/README.md new file mode 100644 index 0000000..5371fd6 --- /dev/null +++ b/sisr1/tp01-nat-dhcp/srv-dhcp/README.md @@ -0,0 +1,6 @@ + * **dhcpd.conf** : + * configuration du service DHCP (isc-dhcp-server) + * se trouve sur le serveur : /etc/dhcp/dhcpd.conf + * **isc-dhcp-server** : + * paramètre les interfaces réseau du serveur configurées pour servir le service DHCP + * se trouve sur le serveur : /etc/default/isc-dhcp-server \ No newline at end of file diff --git a/sisr1/tp02-dns/nat/README.md b/sisr1/tp02-dns/nat/README.md new file mode 100644 index 0000000..d5c952d --- /dev/null +++ b/sisr1/tp02-dns/nat/README.md @@ -0,0 +1,6 @@ + * **nat.sh** : script activant la NAT dynamique sans filtrage + * A placer à /root/nat.sh + * Rendre exécutable : ''chmod +x /root/nat.sh'' + * **nat.service** : service lançant le script au démarrage + * A placer à /etc/systemd/system/nat.service + * Activer le service : ''systemctl enable nat.service'' \ No newline at end of file diff --git a/sisr1/tp02-dns/nat/nat.service b/sisr1/tp02-dns/nat/nat.service new file mode 100644 index 0000000..8c18dcd --- /dev/null +++ b/sisr1/tp02-dns/nat/nat.service @@ -0,0 +1,13 @@ +[Unit] + +Description=execute /root/nat.sh + +After=default.target + +[Service] + +ExecStart=bash /root/nat.sh + +[Install] + +WantedBy=default.target \ No newline at end of file diff --git a/sisr1/tp02-dns/nat/nat.sh b/sisr1/tp02-dns/nat/nat.sh new file mode 100644 index 0000000..e69de29