-
Notifications
You must be signed in to change notification settings - Fork 7
/
mitigate.sh
68 lines (67 loc) · 5.97 KB
/
mitigate.sh
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
#!/bin/bash
# sudo ovs-ofctl add-flow s6 ip,nw_src=10.0.0.2,priority=60000,actions=output:2
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.8,nw_dst=10.0.0.1,actions=output:1
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.1,nw_dst=10.0.0.8,actions=output:5
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.8,nw_dst=10.0.0.2,actions=output:2
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.2,nw_dst=10.0.0.8,actions=output:5
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.8,nw_dst=10.0.0.6,actions=output:4
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.6,nw_dst=10.0.0.8,actions=output:5
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.8,nw_dst=10.0.0.4,actions=output:3
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.4,nw_dst=10.0.0.8,actions=output:5
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.8,nw_dst=10.0.0.3,actions=output:2
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.3,nw_dst=10.0.0.8,actions=output:5
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.8,nw_dst=10.0.0.5,actions=output:3
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.5,nw_dst=10.0.0.8,actions=output:5
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.8,nw_dst=10.0.0.7,actions=output:4
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.7,nw_dst=10.0.0.8,actions=output:5
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.1,nw_dst=10.0.0.2,actions=output:2
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.2,nw_dst=10.0.0.1,actions=output:1
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.1,nw_dst=10.0.0.6,actions=output:4
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.6,nw_dst=10.0.0.1,actions=output:1
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.1,nw_dst=10.0.0.4,actions=output:3
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.4,nw_dst=10.0.0.1,actions=output:1
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.1,nw_dst=10.0.0.3,actions=output:2
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.3,nw_dst=10.0.0.1,actions=output:1
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.1,nw_dst=10.0.0.9,actions=output:5
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.9,nw_dst=10.0.0.1,actions=output:1
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.1,nw_dst=10.0.0.5,actions=output:3
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.5,nw_dst=10.0.0.1,actions=output:1
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.1,nw_dst=10.0.0.7,actions=output:4
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.7,nw_dst=10.0.0.1,actions=output:1
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.2,nw_dst=10.0.0.6,actions=output:4
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.6,nw_dst=10.0.0.2,actions=output:2
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.2,nw_dst=10.0.0.4,actions=output:3
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.4,nw_dst=10.0.0.2,actions=output:2
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.2,nw_dst=10.0.0.9,actions=output:5
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.9,nw_dst=10.0.0.2,actions=output:2
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.2,nw_dst=10.0.0.5,actions=output:3
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.5,nw_dst=10.0.0.2,actions=output:2
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.2,nw_dst=10.0.0.7,actions=output:4
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.7,nw_dst=10.0.0.2,actions=output:2
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.6,nw_dst=10.0.0.4,actions=output:3
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.4,nw_dst=10.0.0.6,actions=output:4
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.6,nw_dst=10.0.0.3,actions=output:2
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.3,nw_dst=10.0.0.6,actions=output:4
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.6,nw_dst=10.0.0.9,actions=output:5
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.9,nw_dst=10.0.0.6,actions=output:4
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.6,nw_dst=10.0.0.5,actions=output:3
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.5,nw_dst=10.0.0.6,actions=output:4
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.4,nw_dst=10.0.0.3,actions=output:2
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.3,nw_dst=10.0.0.4,actions=output:3
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.4,nw_dst=10.0.0.9,actions=output:5
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.9,nw_dst=10.0.0.4,actions=output:3
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.4,nw_dst=10.0.0.7,actions=output:4
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.7,nw_dst=10.0.0.4,actions=output:3
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.3,nw_dst=10.0.0.9,actions=output:5
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.9,nw_dst=10.0.0.3,actions=output:2
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.3,nw_dst=10.0.0.5,actions=output:3
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.5,nw_dst=10.0.0.3,actions=output:2
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.3,nw_dst=10.0.0.7,actions=output:4
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.7,nw_dst=10.0.0.3,actions=output:2
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.9,nw_dst=10.0.0.5,actions=output:3
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.5,nw_dst=10.0.0.9,actions=output:5
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.9,nw_dst=10.0.0.7,actions=output:4
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.7,nw_dst=10.0.0.9,actions=output:5
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.5,nw_dst=10.0.0.7,actions=output:4
# sudo ovs-ofctl add-flow s1 priority=60000,nw_src=10.0.0.7,nw_dst=10.0.0.5,actions=output:3
sudo ovs-ofctl add-flows s1 cookie=0x0,table=0,actions=CONTROLLER:65535