-
Notifications
You must be signed in to change notification settings - Fork 2
/
service_registry.hcl
102 lines (87 loc) 路 1.95 KB
/
service_registry.hcl
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
// The IP address and port to serve the engine API
// and web UI on. While this is a customizable value,
// you probably don't want to change these.
server {
ip = "0.0.0.0"
port = "6767"
}
// The ammount of time to wait until scoring the next round
// in the scoring engine.
scoring_interval = "1m"
// The state save information. This allows for white-team to be
// able to use a copy of the game's state. This will contain the
// game's service setup and point information in the even the
// engine crashes and the in-memory values are lost.
state {
save_interval = "5m"
save_path = "/tmp/service-registry.json"
}
// Each team is defined in a team block.
// The team block for team-1 containing the scored services
// the engine will score.
team "team-1" {
service "http" {
protocol = "tcp"
ip = "192.168.1.2"
port = 80
}
service "mysql" {
protocol = "tcp"
ip = "192.168.1.2"
port = 3306
}
service "ssh" {
protocol = "tcp"
ip = "192.168.1.3"
port = 22
}
service "rdp" {
protocol = "tcp"
ip = "192.168.1.4"
port = 3389
}
service "ldap" {
protocol = "tcp"
ip = "192.168.1.4"
port = 389
}
service "mssql" {
protocol = "tcp"
ip = "192.168.1.4"
port = 1433
}
}
// The team block for team-2 containing the scored services
// the engine will score.
team "team-2" {
service "http" {
protocol = "tcp"
ip = "192.168.2.2"
port = 80
}
service "mysql" {
protocol = "tcp"
ip = "192.168.2.2"
port = 3306
}
service "ssh" {
protocol = "tcp"
ip = "192.168.2.3"
port = 22
}
service "rdp" {
protocol = "tcp"
ip = "192.168.2.4"
port = 3389
}
service "ldap" {
protocol = "tcp"
ip = "192.168.2.4"
port = 389
}
service "mssql" {
protocol = "tcp"
ip = "192.168.2.4"
port = 1433
}
}