GithubHelp home page GithubHelp logo

berlinlee-phoenix / docker-cfw-proxy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shahradelahi/docker-cfw-proxy

0.0 0.0 0.0 73 KB

CloudFlare WARP Proxy

Home Page: https://hub.docker.com/r/shahradel/cfw-proxy

License: GNU General Public License v3.0

Shell 60.27% HCL 9.93% Dockerfile 29.80%

docker-cfw-proxy's Introduction

docker-cfw-proxy

CI GPL-3.0 Licensed Code Size Open Issues Visitors

A Lightweight docker image for connecting to CloudFlare WARP trough Socks, HTTP and Shadowsocks proxy protocols


Features

  • Support Socks5, HTTP and Shadowsocks proxy protocols
  • Apply license key to use existing Warp+ subscription
  • Multi-platform image

Build locally

git clone https://github.com/shahradelahi/docker-cfw-proxy
cd docker-cfw-proxy

# Build image and output to docker (default)
docker buildx bake

# Build multi-platform image
docker buildx bake image-all

Image

Registry Image
Docker Hub shahradel/cfw-proxy
GitHub Container Registry ghcr.io/shahradelahi/cfw-proxy

Following platforms for this image are available:

$ docker run --rm mplatform/mquery shahradel/cfw-proxy:latest
Image: shahradel/cfw-proxy:latest
 * Manifest List: Yes (Image type: application/vnd.oci.image.index.v1+json)
 * Supported platforms:
   - linux/amd64
   - linux/arm/v6
   - linux/arm/v7
   - linux/arm64
   - linux/386
   - linux/s390x

Environment variables

  • TZ: Timezone assigned to the container (default UTC)
  • PROXY_USERNAME: The username of Socks5 and HTTP proxy (default awesome-username)
  • PROXY_PASSWORD: The password of all proxy protocols (default super-secret-password)
  • SOCKS5_PORT: The port of Socks5 proxy (default 1080)
  • HTTP_PORT: The port of HTTP proxy (default 8080)
  • SHADOWSOCKS_PORT: The port of Shadowsocks proxy (default 8338)
  • SHADOWSOCKS_CIPHER: The cipher of Shadowsocks proxy (default AES-256-CFB)
  • WGCF_LICENSE_KEY: The license key of CloudFlare WARP+
  • MTU: The mtu of the WireGuard interface (default 1280)

๐Ÿ’ก WGCF_LICENSE_KEY is optional and to obtain it follow guides in WARP+ license section.

Ports

  • 1080: Socks5 proxy
  • 8080: HTTP proxy
  • 8338: Shadowsocks proxy

Usage

Docker Compose

Docker compose is the recommended way to run this image. You can use the following docker compose template, then run the container:

docker compose up -d
docker compose logs -f

Command line

You can also use the following minimal command:

$ docker run -d \
  --name warp \
  -p 1080:1080 -p 8080:8080 -p 8338:8338 \
  -e "PROXY_USERNAME=awesome-username" \
  -e "PROXY_PASSWORD=super-secret-password" \
  -e "SHADOWSOCKS_CIPHER=AES-256-CFB" \
  --privileged \
  --cap-add NET_ADMIN \
  --cap-add SYS_MODULE \
  --sysctl net.ipv4.ip_forward=1 \
  --sysctl net.ipv4.conf.all.src_valid_mark=1 \
  --sysctl net.ipv6.conf.all.disable_ipv6=0 \
  shahradel/cfw-proxy

Upgrade

Recreate the container whenever I push an update:

docker compose pull
docker compose up -d

WARP+ license

If you have an existing Warp+ subscription, for an example on your phone, you can bind the account generated by this tool to your phone's account, sharing its Warp+ status. Please note that there is a current limit of maximum 5 linked devices active at a time.

โš ๏ธ This device's private key will be changed!

First, get your Warp+ account license key. To view it on Android:

  1. Open the 1.1.1.1 app
  2. Click on the hamburger menu button in the top-right corner.
  3. Navigate to: Account > Key

Finally, copy and paste the license key into the WGCF_LICENSE_KEY environment variable and restart the container.

Contributing

Want to contribute? Awesome! To show your support is to star the project, or to raise issues on GitHub.

Thanks again for your support, it is much appreciated! ๐Ÿ™

License

GPL-3.0 ยฉ Shahrad Elahi

docker-cfw-proxy's People

Contributors

shahradelahi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.