wstunnel/src/restrictions
Jasper Siepkes c09c349610
Add option to map (force) port use on the server for reverse tunnels. (#274)
This change adds a `port_mapping` option to the `ReverseTunnel` definition in the (YAML) restriction file.

It maps ports on the server side from X to Y (X:Y). Where X is the originally requested port by the client and Y is the port which will be used to listen on server-side.

For example with `10001:8080` configured and a client which connects using `-R tcp://10001:localhost:80` the server will listen on port 8080 instead of 10001. The originally requested ports (NOT the mapped ports) still needs to be allowed via the `ports` directive.

This is for example useful when dealing with lots of clients and you don't want to coordinate port use on all the clients but centrally on the server.
2024-05-22 16:13:58 +02:00
..
config_reloader.rs feat(restriction): Avoid re-creating a config reload notifier each time 2024-05-01 15:00:46 +02:00
mod.rs Add option to map (force) port use on the server for reverse tunnels. (#274) 2024-05-22 16:13:58 +02:00
types.rs Add option to map (force) port use on the server for reverse tunnels. (#274) 2024-05-22 16:13:58 +02:00