WireGuard

buyfakett

WireGuard

开源地址open in new window

启动

#!/bin/bash

docker rm -f wg-easy
docker run --detach \
--name wg-easy \
--env LANG=de \
--env WG_HOST=xx.xx.xx.xx \
--env PASSWORD_HASH='xxx' \
--env PORT=51821 \
--env WG_PORT=51820 \
--volume $(pwd)/.wg-easy:/etc/wireguard \
--publish 51820:51820/udp \
--publish 51821:51821/tcp \
--cap-add NET_ADMIN \
--cap-add SYS_MODULE \
--sysctl 'net.ipv4.conf.all.src_valid_mark=1' \
--sysctl 'net.ipv4.ip_forward=1' \
--restart unless-stopped \
ghcr.io/wg-easy/wg-easy:14

生成hash密码

docker run --rm -it ghcr.io/wg-easy/wg-easy:14 wgpw <password>
Last Updated 11/15/2024, 9:13:11 AM