-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.conf.toml
61 lines (48 loc) · 1.64 KB
/
example.conf.toml
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
# this is the availability settings for proxus
#[reconnect]
# number of seconds between retrying connection - defaults to 5
# 0 is valid but extremely laggy
retry_time = 1
# number of times reconnection can be attempted before the thread is closed
watchdog_timer = 5000
# if the connection has been re-established, should the counter be reset
reset_after_success = true
# if you want proxus to simply retry connectioning, just add
[reconnect]
# ^ this will retry every 5 seconds, with no watchdog
# standard config for proxus - connects a domain name or IP address & port
# example result
# localhost:9090 <-> 192.168.1.1:9091
[[data]]
a1 = "localhost:9090"
a2 = "192.168.1.1:9091"
# port bind - bridge many ports together on different IP addreses
# example result
# localhost:9090 <-> 192.168.1.1:9090
# localhost:9091 <-> 192.168.1.1:9091
[[data]]
ip = ["localhost", "192.168.1.1"]
bind = [9090, 9091]
# bindcast - bridge many ports together but change the port number - the ports are connected based on the index of the array
# example result
# localhost:9091 <-> 192.168.1.1:9090
# localhost:443 <-> 192.168.1.1:8080
[[data]]
ip = ["localhost", "192.168.1.1"]
bind = [9091, 443]
cast = [9090, 8080]
# example of casting connection of freeipa directory service server to hypervisor
# 80 and 44 are reserved so they need to be casted to another port
[[data]]
ip = ["192.168.1.100", "192.168.122.58"]
bind = [80, 443]
cast = [8080, 8090]
# 'bindcast' can also map ports on the same IP
[[data]]
ip = ["localhost"]
bind = [80, 443]
cast = [8080, 8090]
# the rest are just forwarded
[[data]]
ip = ["192.168.1.100", "192.168.122.58"]
bind = [8, 464, 636, 88, 464, 123]