Skip to content

txhai/docker-wg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-wg

Docker WireGuard but with Http APIs

This project wraps WireGuard and some simple endpoints into one service.
Those endpoints help you interact with WireGuard via Http requests, when you run WireGuard as a VPN server in your microservice environment.

Build

docker build . -t wg

Run

docker run  \
  --cap-add=NET_ADMIN \
  --cap-add=SYS_MODULE \
  -e TZ=Europe/London \
  -e SERVERPORT=51820 \
  -e PEERS=1 \
  -e PEERDNS=auto \
  -e INTERNAL_SUBNET=10.13.13.0/24 \
  -e ALLOWEDIPS=0.0.0.0/0 \
  -e HOST=0.0.0.0 \
  -e PORT=8000 \
  -p 51820:51820/udp \
  -p 8000:8000 \
  --name wg \
  wg

References

  1. https://github.com/WireGuard
  2. https://hub.docker.com/r/linuxserver/wireguard
  3. https://man7.org/linux/man-pages/man8/wg.8.html
  4. https://man7.org/linux/man-pages/man8/wg-quick.8.html

About

Docker WireGuard but with Http APIs

Resources

Stars

Watchers

Forks

Packages

No packages published