add wgeasy setup config
This commit is contained in:
@@ -7,3 +7,7 @@
|
|||||||
age:
|
age:
|
||||||
- age1ua9qahphsqf2x8ew2n4umapp23a66t0eccccc0d5etp82n8tsqgsfc8qjk # me
|
- age1ua9qahphsqf2x8ew2n4umapp23a66t0eccccc0d5etp82n8tsqgsfc8qjk # me
|
||||||
- age1nw388umnlxfj3cg9lqjyltghfx6w709nam8s2x826c3nxla9famq3uya73 # server
|
- age1nw388umnlxfj3cg9lqjyltghfx6w709nam8s2x826c3nxla9famq3uya73 # server
|
||||||
|
- path_regex: '(^|[\\/]).*\.sops\.conf$'
|
||||||
|
age:
|
||||||
|
- age1ua9qahphsqf2x8ew2n4umapp23a66t0eccccc0d5etp82n8tsqgsfc8qjk # me
|
||||||
|
- age1nw388umnlxfj3cg9lqjyltghfx6w709nam8s2x826c3nxla9famq3uya73 # server
|
||||||
|
|||||||
19
hosts/lab-by-02/docker/wgeasy/data/wg0.sops.conf
Normal file
19
hosts/lab-by-02/docker/wgeasy/data/wg0.sops.conf
Normal file
File diff suppressed because one or more lines are too long
45
hosts/lab-by-02/docker/wgeasy/docker-compose.yml
Normal file
45
hosts/lab-by-02/docker/wgeasy/docker-compose.yml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
services:
|
||||||
|
wg-easy:
|
||||||
|
environment:
|
||||||
|
# Optional:
|
||||||
|
# - PORT=80
|
||||||
|
# - HOST="vpnwg.ulakar.com"
|
||||||
|
- INSECURE=false
|
||||||
|
|
||||||
|
image: ghcr.io/wg-easy/wg-easy:15
|
||||||
|
container_name: wgeasy
|
||||||
|
networks:
|
||||||
|
# caddy:
|
||||||
|
wg:
|
||||||
|
ipv4_address: 10.42.42.42
|
||||||
|
ipv6_address: fdcc:ad94:bacf:61a3::2a
|
||||||
|
volumes:
|
||||||
|
- ./data:/etc/wireguard
|
||||||
|
- /lib/modules:/lib/modules:ro
|
||||||
|
ports:
|
||||||
|
- "51820:51820/udp"
|
||||||
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
|
# - "51821:51821/tcp"
|
||||||
|
restart: unless-stopped
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
- SYS_MODULE
|
||||||
|
sysctls:
|
||||||
|
- net.ipv4.ip_forward=1
|
||||||
|
- net.ipv4.conf.all.src_valid_mark=1
|
||||||
|
- net.ipv6.conf.all.disable_ipv6=0
|
||||||
|
- net.ipv6.conf.all.forwarding=1
|
||||||
|
- net.ipv6.conf.default.forwarding=1
|
||||||
|
|
||||||
|
networks:
|
||||||
|
# caddy:
|
||||||
|
# external: true
|
||||||
|
wg:
|
||||||
|
driver: bridge
|
||||||
|
enable_ipv6: true
|
||||||
|
ipam:
|
||||||
|
driver: default
|
||||||
|
config:
|
||||||
|
- subnet: 10.42.42.0/24
|
||||||
|
- subnet: fdcc:ad94:bacf:61a3::/64
|
||||||
9
hosts/lab-by-02/docker/wgeasy/readme.md
Normal file
9
hosts/lab-by-02/docker/wgeasy/readme.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
regular config path: `/etc/wireguard/wg0.conf`
|
||||||
|
|
||||||
|
wgeasy adds row to match json with wg0 conf:
|
||||||
|
|
||||||
|
`# Client: Name (Id)`
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
`# Client: Jalezze (4073b49a-ad08-4324-b4d0-bfe04d743fd3)`
|
||||||
Reference in New Issue
Block a user