snail007 / goproxy

🔥 Proxy is a high performance HTTP(S) proxies, SOCKS5 proxies,WEBSOCKET, TCP, UDP proxy server implemented by golang. Now, it supports chain-style proxies,nat forwarding in different lan,TCP/UDP port forwarding, SSH forwarding.Proxy是golang实现的高性能http,https,websocket,tcp,socks5代理服务器,支持内网穿透,链式代理,通讯加密,智能HTTP,SOCKS5代理,黑白名单,限速,限流量,限连接数,跨平台,KCP支持,认证API。
https://snail007.host900.com/goproxy/manual/zh/
GNU General Public License v3.0
15.86k stars 3.02k forks source link

Confused about arguments: socks5 upstream #508

Open dimaqq opened 2 years ago

dimaqq commented 2 years ago

I'm trying to set up smth like this:

sequenceDiagram
    participant LoadBalancer
    participant goproxy
    Note over goproxy: 0.0.0.0:8080
    participant tailscale
    Note over tailscale: 127.0.0.1:1055
    participant remote
    Note over remote: 127.0.0.1:8080
    Note over tailscale, remote: tailscale VPN

    LoadBalancer ->> goproxy: HTTP
    goproxy ->> tailscale: SOCS5+HTTP
    tailscale ->> remote: Wireguard+HTTP

It seems I can't quite figure out the right set of arguments for goproxy.

Is this a supported configuration? Can someone help me with command line arguments? 🙏🏻

P.S. I'm fine with either forwarding TCP "tunneling" (without unpacking app-level protocol), or HTTP "proxying" (unpack+repack). Both remote and load balancer are mine, I can configure those.