2017-06-29 16:01:03 +02:00
|
|
|
# Connecting several managers via Hub
|
2017-06-14 13:31:32 +02:00
|
|
|
|
2017-06-29 16:01:03 +02:00
|
|
|
`syz-hub` program can be used to connect several `syz-manager`'s together and
|
|
|
|
allow them to exchange programs.
|
2017-06-14 13:31:32 +02:00
|
|
|
|
2017-06-29 16:01:03 +02:00
|
|
|
Build `syz-hub` with `make hub`. Then create a config file along the lines of:
|
2017-06-14 13:31:32 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"http": ":80",
|
|
|
|
"rpc": ":55555",
|
|
|
|
"workdir": "/syzkaller/workdir",
|
2017-06-29 16:01:03 +02:00
|
|
|
"clients": [
|
2017-06-14 13:31:32 +02:00
|
|
|
{"name": "manager1", "key": "6sCFsJVfyFQVhWVKJpKhHcHxpCH0gAxL"},
|
|
|
|
{"name": "manager2", "key": "FZFSjthHHf8nKm2cqqAcAYKM5a3XM4Ao"},
|
|
|
|
{"name": "manager3", "key": "fTrIBQCmkEq8NsvQXZiOUyop6uWLBuzf"}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2017-06-29 16:01:03 +02:00
|
|
|
And start it with `bin/syz-hub -config hub.cfg`. Then add the following
|
|
|
|
additional parameters to `syz-manager` config files of each manager:
|
2017-06-14 13:31:32 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
"name": "manager1",
|
2017-06-29 16:01:03 +02:00
|
|
|
"hub_client": "manager1",
|
2017-06-14 13:31:32 +02:00
|
|
|
"hub_addr": "1.2.3.4:55555",
|
|
|
|
"hub_key": "6sCFsJVfyFQVhWVKJpKhHcHxpCH0gAxL",
|
|
|
|
```
|
|
|
|
|
2017-06-29 16:01:03 +02:00
|
|
|
And start managers. Once they triage local corpus, they will connect to the hub
|
|
|
|
and start exchanging inputs. Both hub and manager web pages will show how many
|
|
|
|
inputs they send/receive from the hub.
|