Sign inSign up

cwlu2001/wgproxy

By cwlu2001

Updated 5 months ago

🌎 A proxy server using WireGuard as upstream

Image
0

10K+

cwlu2001/wgproxy repository overview

wgproxy

ci docker_pulls docker_image_size

A HTTP & SOCKS proxy server in standalone/nested Wireguard

Start

Normal, single point Wiregaurd

Mount wg0.conf into config/

services:
  wgproxy:
    image: cwlu2001/wgproxy:latest
    container_name: wgproxy
    restart: unless-stopped
    ports:
      - 8888:8888
      - 1080:1080
    volumes:
      - /path/to/wg0.conf:/config/wg0.conf
    cap_add:
      - NET_ADMIN
    sysctls:
      - net.ipv4.ip_forward=1
      - net.ipv4.conf.all.src_valid_mark=1
Nested Wireguard

TLDR: HTTP/SOCKS proxy → wg1 (inner) → wg0 (outer) → Internet

Mount wg0.conf, wg1.conf into config/

services:
  wgproxy:
    image: cwlu2001/wgproxy:latest
    container_name: wgproxy
    restart: unless-stopped
    ports:
      - 8888:8888
      - 1080:1080
    volumes:
      - ./config:/config/
    cap_add:
      - NET_ADMIN
    environment:
      - WG_NESTED=1 # Enable nested wireguard
    sysctls:
      - net.ipv4.ip_forward=1
      - net.ipv4.conf.all.src_valid_mark=1

Environment

KeyDefaultOptionsDescription
HTTP11, 0Enable HTTP proxy
SOCKS11, 0Enable SOCKS proxy
WG_NESTED01, 0Enable nested Wireguard

Tag summary

Content type

Image

Digest

sha256:741f0e897

Size

7.2 MB

Last updated

5 months ago

docker pull cwlu2001/wgproxy