From 3df61eaae64901af582d16d33efa933259fed216 Mon Sep 17 00:00:00 2001
From: "iliya.saroukha" <iliya.saroukhanian@etu.hesge.ch>
Date: Fri, 4 Apr 2025 18:35:36 +0200
Subject: [PATCH] fix: modified setup script

---
 scripts/prep.sh | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/scripts/prep.sh b/scripts/prep.sh
index 87a6e79..e769387 100755
--- a/scripts/prep.sh
+++ b/scripts/prep.sh
@@ -23,13 +23,6 @@ echo "======= H1: Setting default route via R1 (i.e. 10.0.0.2) ======="
 ssh H1 ip route add default via 10.0.0.2
 sleep 1
 
-echo "======= H1 and R1: Installing tcpdump ======="
-ssh H1 apt install -y tcpdump
-sleep 1
-
-ssh R1 apt install -y tcpdump
-sleep 1
-
 echo "======= R1: Implementing NAT gateway ======="
 scp ./r1_nat.ruleset root@R1:/root
 sleep 1
@@ -37,3 +30,14 @@ ssh R1 chmod +x ./r1_nat.ruleset
 sleep 1
 ssh R1 ./r1_nat.ruleset
 sleep 1
+
+echo "======= H1 and R1: Installing tcpdump ======="
+ssh H1 apt update 
+sleep 1
+ssh H1 apt install -y tcpdump
+sleep 1
+
+ssh R1 apt update 
+sleep 1
+ssh R1 apt install -y tcpdump
+sleep 1
-- 
GitLab