Toy gRPC Tunnel over CloudFlare (Proof of Concept).
You know what it means.
Guide
Server
Go to your domain in CloudFlare. In "Network" tab, turn on gRPC.
In "SSL/TLS" tab, choose "Source Servers" sub tab. Create a new certificate and save as
cert.pemandcert.key.In "DNS" Tab, add a record pointing to your own server. Make sure the proxy state is "Proxied".
Run and persist this on your 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- If you are using a TLS termination proxy, you can set
-cleartextparameter to use HTTP/2 Cleartext transport protocol.
Client
Assume the domain of server is
grpc.example.com.Run locally and persist. This will tunnel connections from
127.0.0.1:8899to remote.
gun -mode client -local 127.0.0.1:8899 -remote grpc.example.com:443There's also a SIP003 plugin version, see it's document for instruction.
from https://github.com/Qv2ray/gun

No comments:
Post a Comment