Skip to content
Snippets Groups Projects
Verified Commit 3ea6d00a authored by iliya.saroukha's avatar iliya.saroukha :first_quarter_moon:
Browse files

fix: typos in headers

parent 9e447e4e
Branches
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment