-
Notifications
You must be signed in to change notification settings - Fork 6
/
ddos.yml
92 lines (92 loc) · 2.98 KB
/
ddos.yml
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
name: ddos
mgmt:
network: fixedips
ipv4-subnet: 172.100.100.0/24
ipv6-subnet: 2001:172:100:100::/80
mtu: 1500
topology:
defaults:
kind: linux
nodes:
sp-router:
image: sflow/clab-frr
mgmt-ipv4: 172.100.100.2
mgmt-ipv6: 2001:172:100:100::2
env:
LOCAL_AS: 64496
NEIGHBORS: eth1
FLOWSPEC: yes
RTBH: 203.0.113.2
HOSTPORT: eth2
HOSTNET: "198.51.100.1/24"
exec:
- touch /tmp/initialized
ce-router:
image: sflow/clab-frr
mgmt-ipv4: 172.100.100.3
mgmt-ipv6: 2001:172:100:100::3
env:
LOCAL_AS: 64497
NEIGHBORS: eth1
FLOWSPEC: yes
HOSTPORT: eth2
HOSTNET: "192.0.2.1/24"
CTLASN: 64497
COLLECTOR: 172.100.100.6
exec:
- touch /tmp/initialized
attacker:
image: sflow/clab-iperf3
mgmt-ipv4: 172.100.100.4
mgmt-ipv6: 2001:172:100:100::4
exec:
- ip addr add 198.51.100.2/24 dev eth1
- ip route add 192.0.2.0/24 via 198.51.100.1
victim:
image: sflow/clab-iperf3
mgmt-ipv4: 172.100.100.5
mgmt-ipv6: 2001:172:100:100::5
exec:
- ip addr add 192.0.2.129/24 dev eth1
- ip route add 198.51.100.0/24 via 192.0.2.1
controller:
image: sflow/ddos-protect
mgmt-ipv4: 172.100.100.6
mgmt-ipv6: 2001:172:100:100::6
env:
RTPROP: >
-Dddos_protect.as=64497
-Dddos_protect.nexthop=203.0.113.2
-Dddos_protect.enable.flowspec=yes
-Dddos_protect.router=172.100.100.3
-Dddos_protect.group.local=192.0.2.0/24
-Dddos_protect.mode=automatic
-Dddos_protect.icmp_flood.action=filter
-Dddos_protect.icmp_flood.threshold=10000
-Dddos_protect.icmp_flood.timeout=2
-Dddos_protect.ip_flood.action=filter
-Dddos_protect.ip_flood.threshold=10000
-Dddos_protect.ip_flood.timeout=2
-Dddos_protect.ip_fragmentation.action=filter
-Dddos_protect.ip_fragmentation.threshold=10000
-Dddos_protect.ip_fragmentation.timeout=2
-Dddos_protect.tcp_amplification.action=filter
-Dddos_protect.tcp_amplification.threshold=10000
-Dddos_protect.tcp_amplification.timeout=2
-Dddos_protect.tcp_flood.action=filter
-Dddos_protect.tcp_flood.threshold=10000
-Dddos_protect.tcp_flood.timeout=2
-Dddos_protect.udp_amplification.action=filter
-Dddos_protect.udp_amplification.threshold=10000
-Dddos_protect.udp_amplification.timeout=2
-Dddos_protect.udp_flood.action=filter
-Dddos_protect.udp_flood.threshold=10000
-Dddos_protect.udp_flood.timeout=2
ports:
- 8008:8008
links:
- endpoints: ["sp-router:eth1","ce-router:eth1"]
- endpoints: ["sp-router:eth2","attacker:eth1"]
mtu: 1500
- endpoints: ["ce-router:eth2","victim:eth1"]
mtu: 1500