Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 1.14 KB

warp-connector.md

File metadata and controls

36 lines (31 loc) · 1.14 KB

Setting up as WARP connector

If you want to setup WARP Connector

Note

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
    # add removed rule back (https://github.com/opencontainers/runc/pull/3468)
    device_cgroup_rules:
      - 'c 10:200 rwm'
    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