Skip to content

A proxy based on native ws protocal.

License

Notifications You must be signed in to change notification settings

nisainan/wstunnel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

License GoDoc

A proxy based on native ws protocal. But can response a http2 website that you configured without authorization to hide your proxy.

Features

  • Proxy based on websocket
  • TLS support
  • Secret link
  • Camouflage traffic
  • CDN
  • ClientHello fingerprinting resistance

Installing

$ git clone https://github.com/nisainan/wstunnel.git
$ cd wstunnel
$ go build

Edit client/config.yaml and server/config.yaml with your own data

client/config.yaml

local-addr: "127.0.0.1:9999" # http listen address in your local machine
server-addr: "domain:443" # remote server address
sni: "ws.sekiro.vip" # remote server sni
secret-link: "/secretLink" # websocket secret link

server/config.yaml

cert: "xxxx" # cert file localtion
key: "xxxx" # key file localtion
addr: "0.0.0.0:443" # listen address
secret-link: "/secretLink" # websocket secret link,same as client's
upstream: "http://127.0.0.1:80" # cheat-host, make sure this server works

Usage

client

./wstunnel --type client --config client.yaml

server

./wstunnel --type server --config server.yaml
  1. Use SwitchyOmega in your browser
  2. Add a http proxy whith your client address
  3. Congratulations,Go browse all the things!

CDN

This proxy is based on websocket, so you can hide your server behind cdn which suport websocket protocol like Cloudflare.Also, when someone try to access your server in https protocol ,server will response a http2 website that you configured

License

WsTunnel source code is available under the MIT License.

Thanks

httpt

About

A proxy based on native ws protocal.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%