Skip to content

AnimMouse/wgcf-connector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wgcf-connector

Extract Cloudflare WARP Connector WireGuard configuration.

Cloudflare WARP is an overlay network like ZeroTier and Tailscale but instead of peer-to-peer, you connect to the nearest Cloudflare PoP using WireGuard.
Finally, a free site-to-site VPN from Cloudflare.

This program uses the warp-cli Linux client, installs it inside the Docker container, register WARP Connector with the token, and then extract the configuration file.

Usage

  1. Create a tunnel in Cloudflare Zero Trust dashboard with WARP Connector as tunnel type.
  2. Copy the generated WARP Connector token starting with eyJhIjoi and paste it as argument <token> in Docker.
  3. It will output wgcf-connector-<registration_id>.conf file in your current working directory, which you can use in WireGuard.

Tip

If you got an endpoint IPv4 address starting with 162.159.192, use 162.159.193 instead to have lower latency.

Pull image remotely

Tip

You can use GitHub Codespaces for this.

docker run --rm -v $(pwd):/app/output ghcr.io/animmouse/wgcf-connector <token>

Build image locally

docker build -t wgcf-connector .
docker run --rm -v $(pwd):/app/output wgcf-connector <token>

Releases

No releases published

Sponsor this project

Packages