Commit deb4b5b6 authored by Amit Karamchandani Batra's avatar Amit Karamchandani Batra
Browse files

Updated deploy scripts, added README and added latest Grafana dashboard to scenario_3/l3 folder

parent 1fbd9ab4
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
# Scripts to automatically run the "Attack Detection & Mitigation at the L3 Layer" workflow (Scenario 3).
"launch_l3_attack_detection_and_mitigation.sh" launches the TeraFlow OS components, which includes the CentralizedAttackDetector and AttackMitigator componentes necessary to perform this workflow.
"launch_l3_attack_detection_and_mitigation_complete.sh" also launches the DistributedAttackDetector, which monitors the network data plane and passively collects traffic packets and aggregates them in network flows, which are then provided to the CentralizedAttackDetector to detect attacks that may be occurring in the network.
# Demonstration of a L3 Cybersecurity Components for Attack Detection and Mitigation

__Authors__: Partners of Universidad Politécnica de Madrid and Telefónica I+D

## Executing

```bash
python src/tests/scenario3/l3/run.sh
```
 No newline at end of file
+0 −23
Original line number Diff line number Diff line
#!/bin/bash
# Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

./src/tests/ofc22/run_test_03_delete_service.sh
./src/tests/ofc22/run_test_04_cleanup.sh
source src/tests/ofc22/deploy_specs.sh
source my_deploy.sh
./deploy/all.sh
source tfs_runtime_env_vars.sh
ofc22/run_test_01_bootstrap.sh
ofc22/run_test_02_create_service.sh
+2 −6
Original line number Diff line number Diff line
@@ -13,12 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

cd /home/ubuntu/tfs-ctrl
source my_deploy.sh
./deploy.sh
./show_deploy.sh

source deploy_specs.sh
./deploy/all.sh
source tfs_runtime_env_vars.sh

ofc22/run_test_01_bootstrap.sh
ofc22/run_test_02_create_service.sh
+1211 −0

File added.

Preview size limit exceeded, changes collapsed.

+29 −0
Original line number Diff line number Diff line
@@ -13,14 +13,17 @@
# See the License for the specific language governing permissions and
# limitations under the License.

cd /home/ubuntu/tfs-ctrl
source my_deploy.sh
# Deploy TeraFlowSDN with L3 Cybersecurity Components for Attack Detection and Mitigation
echo "Deploying TFS with L3 Cybersecurity Components for Attack Detection and Mitigation..."
./deploy.sh
./show_deploy.sh
echo "TFS deployed."

source tfs_runtime_env_vars.sh
# Deploy Distributed Attack Detector
if $DAD_NODE_PASSWORD == "" || $DAD_NODE_IP == ""; then
    echo "Please set the DAD_NODE_PASSWORD and DAD_NODE_IP environment variables."
    exit 1
fi

ofc22/run_test_01_bootstrap.sh
ofc22/run_test_02_create_service.sh

sshpass -p "ubuntu" ssh -o StrictHostKeyChecking=no -n -f ubuntu@192.168.165.73 "sh -c 'nohup /home/ubuntu/TeraflowDockerDistributed/restart.sh > /dev/null 2>&1 &'"
echo "Deploying Distributed Attack Detector..."
sshpass -p $DAD_NODE_PASSWORD ssh -o StrictHostKeyChecking=no -n -f ubuntu@$DAD_NODE_IP "sh -c 'nohup /home/ubuntu/TeraflowDockerDistributed/restart.sh > /dev/null 2>&1 &'"
echo "Distributed Attack Detector deployed."
 No newline at end of file
Loading