docker run -it --rm cmulk/wireguard-docker:buster genkeys Configuration Sample server-side interface configuration to go in/etc/wireguard(e.g.,wg0.conf): Sample client configuration: [Interface] Address = 192.168.20.2/24 PrivateKey = <client_private_key> ListenPort = 0 #needed for some cli...
wg-easy 不能自定义配置,而手搓配置文件,客户端一多又非常的繁琐,这次用到的是另一款 WireGuard 的可视化工具 wg-gen-web 通过以下 Docker 命令直接启动 docker run --rm -it -v /tmp/wireguard:/data -p 8080:8080 -e "WG_CONF_DIR=/data" vx3r/wg-gen-web:latest 也可以通过 Docker Compose 启动...
In this tutorial, we will show you an easy way to set up a WireGuard VPN using Docker. WireGuard is a popular alternative to OpenVPN, known for being incredibly fast yet super secure. Thanks to its significantly smaller code base, it has a much smaller attack surface than its competing ...
Linux:CentOS Linux release 7.9.2009 (Core) docker版本:20.10.11 环境准备 创建两个容器wg1和wg2 -v /lib/modules:/lib/modules:指定了共享操作系统lib,否则会安装linux kernel header # 创建wg1docker run --rm -it --entrypoint=bash\--name=wg1\--cap-add=NET_ADMIN\--cap-add=SYS_MODULE\-ePUID...
docker run docker run --detach \ --name wireguard \ --cap-add NET_ADMIN \ --sysctl net.ipv4.conf.all.src_valid_mark=1 \ --volume <path/to/config>:/etc/wireguard/wg0.conf \ ghcr.io/wfg/wireguard docker-compose services: wireguard: image: ghcr.io/wfg/wireguard container_name: wi...
docker-compose.noarch 1.29.2-6.fc37@fedora docker-compose-plugin.aarch64 2.17.2-1.fc37@docker-ce-stable recursivecontainers(Recursivecontainers)April 17, 2023, 9:32pm2 I managed to fix it myself, but in case this helps anyone :
服务器需要内核5.6以上,然后直接dnf install wireguard-tools安装即可(下面示例使用RockyLinux9版本,如果不满足内核要求,建议使用Docker运行)。 2.1.1 CentOS7安装 参见官网:https://www.wireguard.com/install/#centos-7-module-plus-module-kmod-module-dkms-tools(考虑很多人无法访问,复制官网centos7安装方法,慎重操作...
Create a barebones config YAML file for your docker container "docker-compose.yaml” as per OS type and copy to the location as per mentioned in the script “Volumes” belowLinux Version:--- version: "2.1" services: wireguard: image: ghcr.io/linuxserver/wireguard conta...
wg-gen-web 支持直接通过容器来运行,如果你是在本地运行,可以准备一份 docker-compose 文件: docker-compose.yaml 代码语言:javascript 复制 version:'3.6'services:wg-gen-web:image:vx3r/wg-gen-web:latestcontainer_name:wg-gen-webrestart:alwaysexpose:-"8080/tcp"ports:-80:8080environment:-WG_CONF_DIR...
如果你的内核版本 >= 5.6,就可以用上原生的 WireGuard 了,只需要安装 wireguard-tools 即可使用。 # 查看当前内核版本 uname--kernel-release 官方安装手册:https://www.wireguard.com/install/ docker安装:https://hub.docker.com/r/linuxs 脚本一键安装:https://github.com/hwdsl2/wireguard-install/tree/maste...