Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
namespaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ISC3
vres
namespaces
Commits
3ea6d00a
Verified
Commit
3ea6d00a
authored
3 weeks ago
by
iliya.saroukha
Browse files
Options
Downloads
Patches
Plain Diff
fix: typos in headers
parent
9e447e4e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/prep.sh
+3
-17
3 additions, 17 deletions
scripts/prep.sh
with
3 additions
and
17 deletions
scripts/prep.sh
+
3
−
17
View file @
3ea6d00a
...
...
@@ -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
"=======
R
1: Setting up static 10.0.0.
2
/24 IP for eth
1
======="
echo
"=======
H
1: Setting up static 10.0.0.
1
/24 IP for eth
0
======="
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment