Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward Traffic to Another HTTP Proxy with Authentication Using wstunnel #325

Closed
CorrM opened this issue Jul 28, 2024 · 1 comment
Closed

Comments

@CorrM
Copy link
Contributor

CorrM commented Jul 28, 2024

Describe the goal

I am trying to use wstunnel to forward traffic from my local machine to an external HTTP proxy that requires a username and password for authentication. My goal is to have my local machine connect to a VPS via wstunnel, and then have wstunnel on the VPS forward the traffic to the external HTTP proxy.

Describe what does not work

wstunnel doesn't respect http_proxy env variable

Describe your wstunnel setup

Client:

wstunnel client -L socks5://127.0.0.1:8888 --connection-min-idle 5 wss://<VPS_IP>:8080

Server:

#!/bin/bash

export http_proxy=http://<USER>:<PASS>@<PROXY_IP>:<PROXY_PORT>
export https_proxy=http://<USER>:<PASS>@<PROXY_IP>:<PROXY_PORT>

wstunnel server wss://[::]:8080

Desktop

  • OS: Linux Ubuntu x86_64
  • Version: 6.8.0-38-generic
@CorrM
Copy link
Contributor Author

CorrM commented Jul 28, 2024

Duplicate of #324

@CorrM CorrM closed this as completed Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant