Sign inSign up

adierebel/warp-proxy

By adierebel

Updated 2 months ago

Cloudflare WARP using WGCF on lightweight Alpine Linux

Image
Networking
0

903

adierebel/warp-proxy repository overview

WARP Proxy Alpine

Docker Pulls

Usage

Start the container

To run the WARP client in Docker, just write the following content to docker-compose.yml and run docker-compose up -d.

services:
  warp:
    image: adierebel/warp-proxy
    container_name: warp
    restart: always
    device_cgroup_rules:
      - 'c 10:200 rwm'
    ports:
      - "1080:1080" # [host]:[container]
    cap_add:
      - MKNOD
      - AUDIT_WRITE
      - NET_ADMIN
    sysctls:
      - net.ipv6.conf.all.disable_ipv6=0
      - net.ipv4.conf.all.src_valid_mark=1
    environment:
      - PROXY_USERNAME=user   # Set both username and password to enable SOCKS5 auth, set empty to disable
      - PROXY_PASSWORD=pass
    volumes:
      - ./warp-config:/data

Try it out to see if it works:

curl -x socks5h://user:[email protected]:1080 https://cloudflare.com/cdn-cgi/trace

If the output contains warp=on, the container is working properly. If the output contains warp=off, it means that the container failed to connect to the WARP service.

Tag summary

Content type

Image

Digest

sha256:5199be154

Size

38.6 MB

Last updated

2 months ago

docker pull adierebel/warp-proxy