Skip to content

About

Wireguard combined with shadowsocks in simple docker compose, site-to-site vpn.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

ss-wg-tunnel

WireGuard to Shadowsocks Tunnel — ready-to-use Docker setup for a site-to-site VPN

This repository contains a minimal, practical docker-compose configuration to run a WireGuard server behind a Shadowsocks tunnel.
It’s tested for stable site-to-site connections from a secured perimeter (country) through an overseas VPS.
This setup includes only the inside-country part. To use it, you also need another server abroad running Shadowsocks — this repo does not provide that, but you can find it in the official Shadowsocks project.

👉 Read the full blog post


Project Structure

  • docker-compose.yml — main entry point
  • wireguard/ — WireGuard Docker build context
  • tunnel/ — Shadowsocks tunnel Docker build context
  • config/ — stores generated WireGuard configs

Quick Start

  1. Clone the repository

    git clone https://github.com/zloom/ss-wg-tunnel.git
    cd ss-wg-tunnel
    
  2. Adjust environment variables

    • SERVER_HOST — your public IP for WireGuard
    • PEER_COUNT — number of WireGuard clients to generate
    • SS_SERVER — Shadowsocks server IP
    • SS_PASSWORD — Shadowsocks password
    • SS_PORT — Shadowsocks port

    Edit these directly in docker-compose.yml.

  3. Run

    docker compose up --build
    
  4. Retrieve WireGuard configs

    Generated configs will appear in the ./config folder.


Notes

  • Works best on Docker Desktop because of stricter network isolation.
  • Designed for personal site-to-site tunnels with Shadowsocks as stealth transport.
  • All parts except kernel WireGuard are written in Golang — I plan to merge them into a single binary later.
  • For usage details and the full context, see the blog post.

About

Wireguard combined with shadowsocks in simple docker compose, site-to-site vpn.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages