Init vpn.jafner.tools
This commit is contained in:
parent
2e938c32c6
commit
914a8a426b
5
jafner-tools/config/wireguard/.env
Normal file
5
jafner-tools/config/wireguard/.env
Normal 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
|
28
jafner-tools/config/wireguard/docker-compose.yml
Normal file
28
jafner-tools/config/wireguard/docker-compose.yml
Normal 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user