summaryrefslogtreecommitdiff
path: root/doc/ssh_tunnels_config_util.md
blob: 97ffceeac9a812030e631f5b787536fd41d1280d (plain)
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
## Config example

`~/.config/ssh_tunnels_config_util.toml`:

```toml
network = "192.168.1"
http_bind_base = 20000
ssh_bind_base = 21000

[nas1]
ipv4 = 100
http_port = 80
ssh_port = 22
bind_slot = 0

[nas2]
ipv4 = 101
http_port = 8080
ssh_port = 22
bind_slot = 1
```

## Usage

Write config, run the script and use the output in the ssh tunnel service.