Skip to content
Snippets Groups Projects
Commit deb4b5b6 authored by karamchandan's avatar karamchandan
Browse files

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

parent 1fbd9ab4
No related branches found
No related tags found
2 merge requests!142Release TeraFlowSDN 2.1,!128Fixes on L3 Cybersecurity components
# Scripts to automatically run the "Attack Detection & Mitigation at the L3 Layer" workflow (Scenario 3). # Demonstration of a L3 Cybersecurity Components for Attack Detection and Mitigation
"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. __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
#!/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
...@@ -13,12 +13,8 @@ ...@@ -13,12 +13,8 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cd /home/ubuntu/tfs-ctrl source deploy_specs.sh
source my_deploy.sh ./deploy/all.sh
./deploy.sh
./show_deploy.sh
source tfs_runtime_env_vars.sh source tfs_runtime_env_vars.sh
ofc22/run_test_01_bootstrap.sh ofc22/run_test_01_bootstrap.sh
ofc22/run_test_02_create_service.sh ofc22/run_test_02_create_service.sh
This diff is collapsed.
...@@ -13,14 +13,17 @@ ...@@ -13,14 +13,17 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cd /home/ubuntu/tfs-ctrl # Deploy TeraFlowSDN with L3 Cybersecurity Components for Attack Detection and Mitigation
source my_deploy.sh echo "Deploying TFS with L3 Cybersecurity Components for Attack Detection and Mitigation..."
./deploy.sh ./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 echo "Deploying Distributed Attack Detector..."
ofc22/run_test_02_create_service.sh 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."
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 &'" \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment