-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCenario1.yaml
102 lines (99 loc) · 3.06 KB
/
Cenario1.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
Experiment:
name: "Cenario-1-slowloris"
nodeactors:
- name: "server-http"
persitent_volume_path: ["/app/results/", "/app/results/"]
replicas: 1
containers:
- name: "tshark"
image: "ghcr.io/khalilsantana/network-monitor:dataset-mentored-iot-2024-v2"
imagePullPolicy: "Always"
command: ["/entry.sh"]
args: ["cp /etc/hosts /app/results/hosts"]
securityContext:
privileged: true
env:
- name: "SERVER_NA_NAME"
value: "server-http"
- name: "MENTORED_PRE_CMD"
value: "iptables-80-22-tshark.sh"
- name: "server"
image: "ghcr.io/khalilsantana/generic-apache-flask-webserver:dataset-mentored-iot-2024-v1"
imagePullPolicy: "Always"
securityContext:
privileged: true
ports:
- containerPort: 80
env:
- name: "ENABLE_SLOWLORIS_DEFENSE"
value: "false"
resources:
requests:
memory: "1G"
cpu: "1"
limits:
memory: "2G"
cpu: "2"
region: "whx-mg"
cluster: "x86"
- name: "client-http"
persitent_volume_path: "/app/results/"
replicas: 10
containers:
- name: "client-static"
image: "ghcr.io/khalilsantana/generic-client:dataset-mentored-iot-2024-v2"
imagePullPolicy: "Always"
command: ["/entry.sh"]
args: ["random-requests.sh"]
env:
- name: "SERVER_NA_NAME"
value: "server-http"
- name: "TIME_WAIT_START"
value: "0"
- name: "TIMEOUT_CMD"
value: "300"
- name: "ADD_SERVER_IP_TO_COMMAND"
value: "true"
- name: "MIN_RANDOM"
value: "1.0"
- name: "MAX_RANDOM"
value: "1.0"
- name: "ADDITIONAL_FLAGS"
value: "--static_behavior"
securityContext:
privileged: true
resources:
requests:
memory: "32M"
cpu: "50m"
limits:
memory: "128M"
cpu: "200m"
region: "rpi-1-ufmg"
cluster: "iot"
- name: "attacker-http"
persitent_volume_path: "/app/results/"
replicas: 1
containers:
- name: "attacker"
image: "ghcr.io/khalilsantana/generic-botnet:dataset-mentored-iot-2024-v2"
imagePullPolicy: "Always"
command: ["/entry.sh"]
args: ["mentored-attack", "slowloris", "server-http", "net1", "180", "80"]
env:
- name: "TIME_WAIT_START"
value: "60"
- name: "SERVER_NA_NAME"
value: "server-http"
securityContext:
privileged: true
resources:
requests:
memory: "256Mi"
cpu: "1000m"
limits:
memory: "512M"
cpu: "2000m"
region: "rpi-8-ufmg"
cluster: "iot"
topology: "None"