Sign inSign up

djlactose/wireguard

By djlactose

Updated 21 days ago

This is a container to create a Wireguard connection to your data center.

Image
0

1.5K

djlactose/wireguard repository overview

Wireguard

A Wireguard container running on Alpine Linux.

  • Needs to run with --cap-add=NET_ADMIN
  • Needs to run on a kernel >5.6 *You need to have net.ipv4.ip_forward=1 and net.ipv6.conf.all.forwarding=1 set in your /etc/sysctl.conf on the host machine.

Environmental Vars

  • server_address = This is used to set the name of your server it defaults to localhost
  • dns = This is used to set what DNS is assigned out to clients

Ports

  • 51280/udp

Persistent Storage

  • /etc/wireguard

Sample Run Command

  • docker run -dit -e server_address=my.company.com --cap-add NET_ADMIN -p 51820:51820/UDP -v wireguard_data:/etc/wireguard --name wire djlactose/wireguard

How to Use this container

To use this container you just need to start it with the environmental varables set. It will automatically generate certificate for a new server and client automatically on first run. It will also write a QR Code out to the log when it is first run to allow easier client setup.

Tag summary

Content type

Image

Digest

sha256:4cec9709d

Size

6.2 MB

Last updated

21 days ago

docker pull djlactose/wireguard