Skip to content

threatpatrols/docker-cfwarp-socat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-socat in Cloudflare WARP on Docker

Creates multiple socat pipes based on env-var names that start with 'SOCAT_ARGS_' within a Cloudflare WARP connected session.

Usage

Better docs someday...

Env-vars with prefix SOCAT_ARGS_ are sorted and used as socat command line inputs.

services:
  my-cfwarp-socat:
    
    image: "threatpatrols/cfwarp-socat"
    environment:
      SOCAT_ARGS_02: "TCP4-LISTEN:2222,reuseaddr,fork TCP4:127.0.0.1:22"
      SOCAT_ARGS_01: "UNIX-LISTEN:/run/docker.sock,reuseaddr,fork TCP4:127.0.0.1:80"
      
    cap_add:
      - NET_ADMIN

    volumes:
      - cloudflarewarp_varlib:/var/lib/cloudflare-warp

Source / Repo