Sign inSign up

bfren/wireguard

By bfren

Updated 2 months ago

Image
0

10K+

bfren/wireguard repository overview

Docker WireGuard

GitHub release (latest by date) Docker Pulls Docker Image Size GitHub Workflow Status

Docker Repository - bfren ecosystem

Comes with WireGuard pre-installed.

Once started you can show configuration for a peer in two ways:

# print configuration as text
wg-conf peer1

# print configuration as QR code
wg-qr peer1

# print all registered clients with connection statistics
wg-clients

# show all clients, auto refreshing every 2sec (similar to wg show)
wg-show

Contents

Ports

  • 51820

Volumes

VolumePurpose
/configStores server and peer configuration values.

Environment Variables

VariableValuesDescriptionDefault
BF_WIREGUARD_EXTERNAL_ADDRESSstringThe external IP Address or domain of the server - peers will use this to connect.None - required
BF_WIREGUARD_INTERFACEstringThe name to use for the WireGuard interface.wg0
BF_WIREGUARD_IP_RANGEstringThe IP range to use for the WireGuard host and peers - without the final segment.192.168.100
BF_WIREGUARD_DNSstringThe IP Address of an upstream DNS resolver.1.1.1.1 (Cloudflare)
BF_WIREGUARD_PEERSstringList of peers to create on startup.Blank

Helper Functions

FunctionArgumentsDescription
wg-clientsnoneDisplays all configured clients with statistics.
wg-conf0: Peer nameDisplay a peer's configuration as text.
wg-shownoneDisplays output from wg show with client names.
wg-qr0: Peer nameDisplay a peer's configuration as a QR code.

Licence

Copyright (c) 2023-2026 bfren (unless otherwise stated)

Tag summary

Content type

Image

Digest

sha256:a72f5a587

Size

36.3 MB

Last updated

2 months ago

docker pull bfren/wireguard