Init vpn.jafner.tools

This commit is contained in:
Joey Hafner 2022-08-03 00:43:17 -07:00
parent 2e938c32c6
commit 914a8a426b
3 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,5 @@
DOCKER_DATA=/root/data/wireguard
PASSWORD=7IoEvL8y4eDWBDeLPwUR322Q2A6TNWGH
WG_HOST=vpn.jafner.tools
WG_PORT=51820
WG_DEFAULT_DNS=1.1.1.1

View File

@ -0,0 +1,28 @@
version: "3"
services:
wg-easy:
image: weejewel/wg-easy
container_name: wireguard_wg-easy
restart: "no"
env_file:
- .env
ports:
- 51820:51820/udp
networks:
- web
volumes:
- ${DOCKER_DATA}/wg-easy:/etc/wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv4.ip_forward=1
labels:
- traefik.http.routers.wg-easy.rule=Host(`vpn.jafner.tools`)
- traefik.http.routers.wg-easy.tls.certresolver=lets-encrypt
- traefik.http.services.wg-easy.loadbalancer.server.port=51821
networks:
web:
external: true

View File

@ -72,4 +72,6 @@ set system login user admin authentication public-keys jafner425@gmail.com
set system login user admin authentication public-keys jafner425@gmail.com type ssh-rsa
set system login user admin authentication public-keys jafner425@gmail.com key $KEY_VALUE
```
4. `commit; save; exit`
4. `commit; save; exit`
# How to Port-Forward in VyOS