Skip to content
Snippets Groups Projects
Commit c2544650 authored by David Schmitz's avatar David Schmitz
Browse files

testing: update inst/testing/nemo1/: update

parent 57a7397f
Branches
Tags
No related merge requests found
...@@ -590,6 +590,11 @@ elif [ "$1" = "--setup-and-run-vsmd-container" ]; then #arg # prep vsmd inner do ...@@ -590,6 +590,11 @@ elif [ "$1" = "--setup-and-run-vsmd-container" ]; then #arg # prep vsmd inner do
#"$0" --exec ./mynemo-mitigation-vsmd-install #"$0" --exec ./mynemo-mitigation-vsmd-install
"$0" --exec ./mynemo-mitigation-init-container.sh "$0" --exec ./mynemo-mitigation-init-container.sh
elif [ "$1" = "--setup-db-contents" ]; then #arg # inti some data in nemo db regrading test network
shift 1
"$0" --exec ./mynemo-mitigation-init-db-final.sh
elif [ "$1" = "--run-vsmd-in-vsmd-container" ]; then #arg # just run vsmd in vsmd container in foreground elif [ "$1" = "--run-vsmd-in-vsmd-container" ]; then #arg # just run vsmd in vsmd container in foreground
shift 1 shift 1
...@@ -835,6 +840,7 @@ elif [ "$1" = "--allx" ]; then #arg # all-in-one mode ...@@ -835,6 +840,7 @@ elif [ "$1" = "--allx" ]; then #arg # all-in-one mode
# build and init nemo-outer container and build and init and run all detection container inside # build and init nemo-outer container and build and init and run all detection container inside
"$0" --all1 "$@" "$0" --all1 "$@"
"$0" --setup-db-contents
# init frnet comprising freertr router and host1/host2 test network # init frnet comprising freertr router and host1/host2 test network
"$0" --freertr-testnet-prep-and-run "$0" --freertr-testnet-prep-and-run
......
...@@ -27,9 +27,10 @@ docker exec -ti nemo_mitigated_1 python3 /services/etc/nemo/create_vsmd1.py ...@@ -27,9 +27,10 @@ docker exec -ti nemo_mitigated_1 python3 /services/etc/nemo/create_vsmd1.py
## ##
# NOT really a fix, but data config: add 2 network #docker exec -ti nemo_mitigated_1 /services/inst/nemo-erkennung/bin/nemo-dbadmin add_net --comments "attacker network" 10.1.10.0/24
#docker exec -ti nemo_mitigated_1 /services/inst/nemo-erkennung/bin/nemo-dbadmin add_net --comments "victim network" 10.2.10.0/24
docker exec -ti nemo_mitigated_1 /services/inst/nemo-erkennung/bin/nemo-dbadmin add_net --comments "attacker network" 10.1.10.0/24 #docker exec -ti nemo_mitigated_1 /services/inst/nemo-erkennung/bin/nemo-dbadmin add_net --comments "customer2 network" 10.3.10.0/24
docker exec -ti nemo_mitigated_1 /services/inst/nemo-erkennung/bin/nemo-dbadmin add_net --comments "victim network" 10.2.10.0/24 #
#docker exec -ti nemo_nemodb_1 psql -U nemo -c "INSERT INTO router_nets (router_id, net_id) VALUES (1, 1), (1, 2), (1, 3)"
#!/bin/bash
set -x
#
docker exec -ti nemo_mitigated_1 /services/inst/nemo-erkennung/bin/nemo-dbadmin add_net --comments "attacker network" 10.1.10.0/24
docker exec -ti nemo_mitigated_1 /services/inst/nemo-erkennung/bin/nemo-dbadmin add_net --comments "victim network" 10.2.10.0/24
docker exec -ti nemo_mitigated_1 /services/inst/nemo-erkennung/bin/nemo-dbadmin add_net --comments "customer2 network" 10.3.10.0/24
docker exec -ti nemo_nemodb_1 psql -U nemo -c "INSERT INTO router_nets (router_id, net_id) VALUES (1, 1), (1, 2), (1, 3)"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment