go-gost / gost

GO Simple Tunnel - a simple tunnel written in golang
https://gost.run
MIT License
4.04k stars 496 forks source link

Need help with forwarding SOCKS5 TCP/UDP to VPS #421

Open GektorUA opened 6 months ago

GektorUA commented 6 months ago

I have local PC (linux based) behind NAT and without static IP. On this local PC was launched SOCKS5 server (TCP+UDP), for example — 0.0.0.0:8080 (in local lan SOCKS5 port is working, TCP+UDP traffic is present).

I am need to forward this port on public VPS server so that TCP+UDP was working as in local lan. I have understand how to do it if SOCKS5 server have static IP (for example, if setup some type of VPN to the VPS from local PC), but it's not clear for me, how i can do it without VPN, if SOCKS5 server have no any static IP?

egg1234 commented 6 months ago

You can refer to the following link to find out how to use the "Reverse Proxy" or "Remote Port Forwarding" feature to resovle your request.

https://gost.run/en/tutorials/reverse-proxy/

GektorUA commented 6 months ago

https://gost.run/en/tutorials/reverse-proxy/

There is nothing about how to do reverse SOCKS5 with UDP...

uuonda commented 4 months ago

@ginuerzh How do I achieve reverse Socks proxy over WS/Socks/Relay+TLS connection with gost?

I want a client to act as a proxy for the server over established client->server connection which must expose a Socks service on the server. I've read the docs for reverse proxy tunnels and I still don't know if that's even possible without running multiple instances.