From 3ea6d00a3e3a5837ef253288b9b8800f913537a3 Mon Sep 17 00:00:00 2001 From: "iliya.saroukha" <iliya.saroukhanian@etu.hesge.ch> Date: Tue, 8 Apr 2025 14:12:26 +0200 Subject: [PATCH] fix: typos in headers --- scripts/prep.sh | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/scripts/prep.sh b/scripts/prep.sh index e769387..4555e39 100755 --- a/scripts/prep.sh +++ b/scripts/prep.sh @@ -2,42 +2,28 @@ echo "======= R1: Activating IP forwarding =======" ssh R1 "echo 1 > /proc/sys/net/ipv4/ip_forward" -sleep 1 echo "======= R1: Obtaining IP for eth0 =======" ssh R1 dhclient -v eth0 -echo "======= R1: Setting up static 10.0.0.2/24 IP for eth1 =======" +echo "======= H1: Setting up static 10.0.0.1/24 IP for eth0 =======" ssh H1 ip addr add 10.0.0.1/24 dev eth0 -sleep 1 ssh H1 ip link set up dev eth0 -sleep 1 echo "======= R1: Setting up static 10.0.0.2/24 IP for eth1 =======" ssh R1 ip addr add 10.0.0.2/24 dev eth1 -sleep 1 ssh R1 ip link set up dev eth1 -sleep 1 -echo "======= H1: Setting default route via R1 (i.e. 10.0.0.2) =======" +echo "======= H1: Setting default route via R1 (i.e. 10.0.0.1) =======" ssh H1 ip route add default via 10.0.0.2 -sleep 1 echo "======= R1: Implementing NAT gateway =======" scp ./r1_nat.ruleset root@R1:/root -sleep 1 -ssh R1 chmod +x ./r1_nat.ruleset -sleep 1 -ssh R1 ./r1_nat.ruleset -sleep 1 +ssh R1 nft -f ./r1_nat.ruleset 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