一个面向 Claw.Cloud 的 Hysteria2 Docker 镜像。
218
Hysteria2 Docker image for Claw.Cloud.
Based on mc838/claw-hy2, this image keeps the original hy2 server capability and can also expose authenticated:
SOCKS5HTTPHTTPS CONNECTIt is designed for users who want a single container to provide both:
sn1p4am/claw-hy2-auth-proxy:latestsn1p4am/claw-hy2-auth-proxy:v1Application Name
claw-hy2-auth-proxy
Image Name
sn1p4am/claw-hy2-auth-proxy:v1
Compute Resources
CPU = 0.2
Memory = 128Mi
Network Configuration
80 -> Public
5678 -> Public / UDP
Environment Variables
SERVER_DOMAIN=abc.eu-central-1.clawcloudrun.com
UDP_PORT=5678
PASSWORD=3fa85f64-5717-4562-b3fc-2c963f66afa6
Network Configuration
80 -> Public
5678 -> Public / UDP
8080 -> Public / TCP
Environment Variables
SERVER_DOMAIN=abc.eu-central-1.clawcloudrun.com
UDP_PORT=5678
PASSWORD=3fa85f64-5717-4562-b3fc-2c963f66afa6
ENABLE_PROXY=true
PROXY_PORT=8080
PROXY_USERNAME=proxy
PROXY_PASSWORD=change-me
PROXY_DISABLE_UDP=false
Notes:
PROXY_PORT must be exposed as raw TCPHTTP/HTTPS on Claw.CloudPROXY_USERNAME and PROXY_PASSWORD are requiredhysteria2 only provides SOCKS5 and HTTP in client mode, not in server mode.
This image works by running both:
hysteria serverhysteria clientThe client connects back to 127.0.0.1:${UDP_PORT} and exposes:
hy2://socks5://http:// / HTTPS CONNECT| Variable | Description | Example |
|---|---|---|
SERVER_DOMAIN | Public domain assigned by Claw.Cloud | abc.eu-central-1.clawcloudrun.com |
UDP_PORT | Internal UDP port for Hysteria2 server | 5678 |
PASSWORD | Hysteria2 password | 3fa85f64-5717-4562-b3fc-2c963f66afa6 |
| Variable | Description | Default |
|---|---|---|
ENABLE_PROXY | Enable proxy mode | false |
PROXY_PORT | TCP port for SOCKS5 / HTTP proxy | 8080 |
PROXY_USERNAME | Proxy username, required when proxy is enabled | empty |
PROXY_PASSWORD | Proxy password, required when proxy is enabled | empty |
PROXY_DISABLE_UDP | Disable SOCKS5 UDP | false |
The container logs will print connection info after startup.
hy2://PASSWORD@SERVER_DOMAIN:UDP_PORT?sni=bing.com&insecure=1
socks5://PROXY_USERNAME:PROXY_PASSWORD@SERVER_DOMAIN:PROXY_PORT
http://PROXY_USERNAME:PROXY_PASSWORD@SERVER_DOMAIN:PROXY_PORT
FROM mc838/claw-hy2:latest
EXPOSE 5678/udp 8080/tcp
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
HTTPS proxy here means HTTP CONNECT, not a separate TLS-wrapped forward proxy portENABLE_PROXY=false, the image behaves like a plain Hysteria2 serverContent type
Image
Digest
sha256:dcdb63120…
Size
17.2 MB
Last updated
6 months ago
docker pull sn1p4am/claw-hy2-auth-proxy