Skip to content
This repository has been archived by the owner on Jul 11, 2021. It is now read-only.
/ wggo Public archive

wireguard-go in a container

License

Notifications You must be signed in to change notification settings

erred/wggo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wggo

wireguard-go in a container, becuase WG_I_PREFER_BUGGY_USERSPACE_TO_POLISHED_KMOD=1

License Version Docker

About

I needed wanted to run a wireguard VPN server on a system without access to kernel modules (GKE coos)

Based on activeeos/wireguard-docker, kernel module version of wireguard in a container, which you should probably be using

Usage

Prerequisites

  • CAP_NET_ADMIN and /dev/net/tun
  • A wg-quick config file

Run

  1. mount conf file into /etc/wireguard/, (name doesn't matter)
  2. expose the port as specified in conf file
docker run --rm \
  --cap-add=NET_ADMIN \
  -v /dev/net/tun:/dev/net/tun \
  -v /abs/path/to/wg-quick/conf/file:/etc/wireguard/name_of_interface.conf \
  -p port:expose \
  seankhliao/wggo

Build

With docker:

docker build \
  .

Links