-
Notifications
You must be signed in to change notification settings - Fork 69
/
hooks.json
60 lines (49 loc) · 1.74 KB
/
hooks.json
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
{
// Note: comments in two styles are supported
/* Note: comments in two styles are supported */
// Name of the guest VM
"example-guest-vm-name-please-change": {
// Name of the network interface the guest is using
"interface": "virbr0",
// IP address of the guest
"private_ip": "192.168.124.10",
// Remote IP which gets permission to access the ports
// This line can be omitted, allowing any remote IP access
"source_ip": "8.8.8.8",
/*
When opening ports, you have two choices:
1. Opening single ports one by one using "port_map"
This allows you to map an external port x to an internal port y if you wish
2. Opening a range of ports altogether using "port_range"
You can use one or both of these, as the examples below illustrate.
*/
"port_map": {
// Protocol can be one of tcp, udp or icmp
"tcp": [
[1100, 3000], // External port 1100 will map to guest port 3000
443, // External port 443 will map to guest port 443
3389
],
"udp": [
27016
]
},
"port_range": [
// The example below opens ports 8888-8890 inclusive over TCP
{
// First port in range
"init_port": 8888,
// Number of ports to open
"ports_num": 2,
// Protocol to open ports over
"protocol": "tcp"
},
// UDP 30000-30100
{
"init_port": 30000,
"ports_num": 100,
"protocol": "udp"
}
]
},
}