mirror of
https://github.com/EasyTier/easytier.github.io.git
synced 2026-10-19 16:16:34 +00:00
Update port-forward.md (#322)
Fix port_forward parameters at documentation for port forwarding usage
This commit is contained in:
@@ -83,15 +83,15 @@ sudo easytier-core \
|
||||
|
||||
## Configuring via Configuration File
|
||||
|
||||
In addition to command-line parameters, port forward rules can be written into the configuration file, corresponding to the `port_forwards` field. Each rule has three fields: `bind_addr`, `dst_addr`, and `proto`:
|
||||
In addition to command-line parameters, port forward rules can be written into the configuration file, corresponding to the `port_forward` field. Each rule has three fields: `bind_addr`, `dst_addr`, and `proto`:
|
||||
|
||||
```toml
|
||||
[[port_forwards]]
|
||||
[[port_forward]]
|
||||
proto = "tcp"
|
||||
bind_addr = "127.0.0.1:5202"
|
||||
dst_addr = "10.144.0.20:5201"
|
||||
|
||||
[[port_forwards]]
|
||||
[[port_forward]]
|
||||
proto = "udp"
|
||||
bind_addr = "127.0.0.1:5202"
|
||||
dst_addr = "10.144.0.20:5201"
|
||||
|
||||
Reference in New Issue
Block a user