Skip to content

Running Multiple wstunnel Connections with a Single Configuration File #457

@delphinuz

Description

@delphinuz

Describe the feature

Running Multiple wstunnel Connections with a Single Configuration File

Describe the reason for such feature

I have several servers running wstunnel. I currently need to run a separate wstunnel instance for each server. Is it possible to define multiple wstunnel configurations in a single file and run just one wstunnel process to connect to all servers, in order to reduce memory usage?

Thanks.

Describe alternatives you've considered

Here is an example configuration file (config.yaml)


 - mode: client
    - tag: server-1
    - server: wss://wstunnel-1.server.com:1212
    - local-to-remote: tcp://1212:google.com:443
    - local-to-remote: udp://1212:1.1.1.1:53
    - remote-to-local: socks5://[::1]:1212
    - connection-min-idle: 5
    - connection-retry-max-backoff: 5m
    - tls-sni-override: google.fr
    - tls-ech-enable: true
    - http-upgrade-path-prefix: UUID
    - websocket-ping-frequency: 30
    

  - mode: client
    - tag: server-2
    - server: https://wstunnel-2.server.com:2323
    - local-to-remote: tcp://2323:google.com:443    
    - local-to-remote: socks5://[::1]:1212
    - connection-min-idle: 5
    - connection-retry-max-backoff: 5m
    - tls-sni-override: gmail.com
    - tls-ech-enable: true
    - http-upgrade-path-prefix: UUID
    - websocket-ping-frequency: 30
    
  - mode: server
    - tag: myserver
    - server: wss://[::]:8080   
    - tls-certificate: "path/to/domain.crt"
    - tls-private-key: "path/to/domain.key"
    - restrict-http-upgrade-path-prefix: UUID
    - dns-resolver: dns://1.1.1.1

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions