Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Qv2ray/gun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gun

Grpc tUNnel over Cloudflare

Headline

发一个自用了一个晚上的代理。
程序本身很简单,用来过 CloudFlare 足够了。

Example

Server

  1. Go to your domain in CloudFlare. In "Network" tab, turn on gRPC.

  2. In "SSL/TLS" tab, choose "Source Servers" subtab. Create a new certificate and save as cert.pem and cert.key.

  3. In "DNS" Tab, add a record pointing to your own server. Make sure the proxy state is "Proxied".

  4. Run and persist this on server. This example will forward the inbound traffic to 127.0.0.1:8899.

gun -mode server -local :443 -remote 127.0.0.1:8899 -cert cert.pem -key cert.key

Client

  1. Assume the domain of server is grpc.example.com.

  2. Run locally and presist. This will tunnel connections from 127.0.0.1:8899 to remote.

gun -mode client -local 127.0.0.1:8899 -remote grpc.example.com:443

License

AGPL3

About

Toy gRPC Tunnel over CloudFlare (Proof of Concept)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages