Sign inSign up

solyhe84/wireguard

By solyhe84

Updated about 3 years ago

wireguard client

Image
1

798

solyhe84/wireguard repository overview

生成于大佬项目:https://github.com/jordanpotter/docker-wireguard

=============docker-compose.yml==================

version: "3"

services:
  wireguard:
    container_name: wireguard
    image: solyhe84/wireguard
    privileged: true
    cap_add:
      - NET_ADMIN
      - SYS_MODULE
    sysctls:
      net.ipv4.conf.all.src_valid_mark: 1
      net.ipv6.conf.all.disable_ipv6: 0
    environment:
      TZ: Asia/Shanghai
    volumes:
      - ./wg0.conf:/etc/wireguard/wg0.conf
      - /lib/modules:/lib/modules
      - /usr/src:/usr/src
      - /etc/localtime:/etc/localtime:ro
    restart: always

可利用github上面的大神们的在线代码生成 =======wg0.conf=========

[Interface]
PrivateKey = OD5d9QtiURu/nXU2qWgjzXONMxxxxxxxxxxxxxxNRXl0=
Address = 172.16.0.2/32
Address = 2606:4700:110:8f46:158a:905b:5dea:af83/128
DNS = 1.1.1.1
MTU = 1280
[Peer]
PublicKey = bmXOC+F1FxEMF9dyiK2Hyyyyyyyyyyyy51h2wPfgyo=
AllowedIPs = 0.0.0.0/0
AllowedIPs = ::/0
Endpoint = 162.159.195.70:4500

Tag summary

Content type

Image

Digest

sha256:e1755dd5f

Size

5.7 MB

Last updated

about 3 years ago

docker pull solyhe84/wireguard