224q / docs /warp-connector.md
Port443's picture
Upload 17 files
30ee873 verified

Setting up as WARP connector

If you want to setup WARP Connector

If you have already started the container, stop it and delete the data directory.

  1. Create mdm.xml as explained in Cloudflare WARP Connector step 4
  2. Mount the mdm.xml to path /var/lib/cloudflare-warp/mdm.xml
  3. Start the container

Sample Docker Compose File:

services:
  warp:
    image: caomingjun/warp
    container_name: warp
    restart: always
    ports:
      - "1080:1080"
    environment:
      - WARP_SLEEP=2
    cap_add:
      - NET_ADMIN
    sysctls:
      - net.ipv6.conf.all.disable_ipv6=0
      - net.ipv4.conf.all.src_valid_mark=1
      - net.ipv4.ip_forward=1
    volumes:
      - ./data:/var/lib/cloudflare-warp
      - ./config/warp/mdm.xml:/var/lib/cloudflare-warp/mdm.xml