Skip to content

A lightweight proxy tool based on the WebSocket protocol

License

Notifications You must be signed in to change notification settings

golangboy/wsproxy

Repository files navigation

📖 Introduction

A lightweight proxy tool based on the WebSocket protocol

🚀 Features

  • Lightweight
  • No configuration
  • Wrap CDN
  • Support SOCKS5/HTTP

🔨️ Build

git clone github.com/golangboy/wsproxy

Client

cd client
go build .
./client -h
Usage of ./client:
  -listen string
        listen socks5 address (default ":1180")
  -ws string
        websocket server address (default "localhost:80")

Server

cd server
go build .
./server -h
Usage of ./server:
  -listen string
        listen address (default ":80")

🐳 Docker

From Build

git clone github.com/golangboy/wsproxy
cd wsproxy
docker build -t wsproxy .

client

docker run -itd -p 1180:1180 -e ws=your_server:80 wsproxy

server

docker run -itd -p 80:80 wsproxy

From DockerHub

docker pull golangboyme/wsproxy

client

docker run -itd -p 1180:1180 -e ws=your_server:80 golangboyme/wsproxy

server

docker run -itd -p 80:80 golangboyme/wsproxy

💻 Test

export all_proxy=socks5://localhost:1180
curl https://google.com -v

About

A lightweight proxy tool based on the WebSocket protocol

Resources

License

Stars

Watchers

Forks

Packages

No packages published