Sign inSign up

highcanfly/wg-meshconf

By highcanfly

•Updated over 3 years ago

Minimalist https://github.com/k4yt3x/wg-meshconf docker image

Image
0

1.4K

highcanfly/wg-meshconf repository overview

⁠wg-meshconf

wg-meshconf minimalist docker image

⁠Howto

⁠Init

mkdir wg
docker run -v ./wg:/home/wgmeshconf -it highcanfly/wg-meshconf init

⁠Add a standard peers

docker run -v ./wg:/home/wgmeshconf -it highcanfly/wg-meshconf  addpeer master --address 10.18.0.1/32 --endpoint 1.2.3.4 --listenport 51820
docker run -v ./wg:/home/wgmeshconf -it highcanfly/wg-meshconf  addpeer worker1 --address 10.18.0.2/32 --endpoint 1.2.3.5 --listenport 51820
docker run -v ./wg:/home/wgmeshconf -it highcanfly/wg-meshconf  addpeer worker2 --address 10.18.0.3/32 --endpoint 1.2.3.6 --listenport 51820

⁠Show peers

docker run -v ./wg:/home/wgmeshconf -it highcanfly/wg-meshconf showpeers

⁠Generate config

docker run -v ./wg:/home/wgmeshconf -it highcanfly/wg-meshconf genconfig

⁠distribute config

scp wg/output/master.conf [email protected]:/etc/wireguard/wg0.conf
scp wg/output/worker1.conf [email protected]:/etc/wireguard/wg0.conf
scp wg/output/worker2.conf [email protected]:/etc/wireguard/wg0.conf

⁠activate config on systemd

systemctl enable wg-quick@wg0
systemctl start wg-quick@wg0

Tag summary

Content type

Image

Digest

sha256:5a83da258…

Size

345.9 MB

Last updated

over 3 years ago

docker pull highcanfly/wg-meshconf