Comments (6)
Just don't set the PASSWORD
environment variable.
from wg-easy.
@WeeJeWel: of-course! Silly how I missed it.
from wg-easy.
@smshr I just came here to see how I can configure wg-easy to run behind Traefik, and it seems that you are the only one here that you got it running.
I have something like:
version: "3.8"
services:
wg-easy:
environment:
# ⚠️ Required:
# Change this to your host's public address
- WG_HOST=mydomain.com
# Optional:
- PASSWORD=somePasss
# - WG_PORT=51820
# - WG_DEFAULT_ADDRESS=10.8.0.x
# - WG_DEFAULT_DNS=1.1.1.1
image: weejewel/wg-easy
container_name: wg-easy
volumes:
- /data/dockerfiles/wg-easy/wireguard:/etc/wireguard
ports:
- "51820:51820/udp"
- "51821:51821/tcp"
restart: unless-stopped
labels:
traefik.enable: 'true'
traefik.http.routers.wireguard.entrypoints: websecure
traefik.http.routers.wireguard.rule: Host(`vpn.mydomain.com`)
traefik.http.routers.wireguard.tls.certresolver: letsencryptresolver
traefik.http.services.wireguard.loadbalancer.server.port: '51821'
traefik.udp.routers.wireguard.entrypoints: wireguard
traefik.udp.services.wireguard.loadbalancer.server.port: '51820'
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
networks:
- traefik-public
networks:
traefik-public:
external: true
but although I can hit the gui to create wg clients, my clients cannot connect. I see that the wg handshake fails and the connection cannot be established. This leads me to believe that traffic on 51820 does not reach the wg-easy container.
Care to share your traefik configuration? Are you with docker-compose too...?
Thanks!
from wg-easy.
@stratosgear I am with kubernetes and I was successfully able to run wg-easy with traefik & kubernetes. I will post my traefik & kubernetes configuration soon.
BTW, which version of traefik are you on?
from wg-easy.
Ouch, I'm on docker-compose (either with Docker Swarm or not). I'm using Traefik 2.4.8
from wg-easy.
@stratosgear: you can see my kubernetes configuration here: https://github.com/WeeJeWel/wg-easy/issues/3#issuecomment-873743339
from wg-easy.
Related Issues (20)
- Allow for internal container port and wg interface to be defined in variables HOT 4
- Getting "not Logged in" message when using SWAG reverse proxy HOT 3
- Cant access to vpn server, loos internet on vpn client HOT 2
- Not working after updated HOT 2
- Client can ping host but host cannot ping client HOT 3
- getting error "yaml: invalid leading UTF-8 octet after trying to restart docker-compose.yml file" HOT 1
- curl ip:port not work
- ghcr.io/wg-easy/wg-easy container can't be found HOT 4
- Port Change Bug HOT 6
- [request] make a github release HOT 5
- [Question] Reverse Traffic to Clients from the LAN.
- Error after latest update HOT 10
- [Request] Add ability to change Allowed IPs per peer for Full tunnel and split tunnel peers HOT 1
- Can wg-easy be installed on a machine without iptables installed without using docker? HOT 1
- Command line installation, the listening port cannot be modified. HOT 2
- Iphone safari wrong markup HOT 5
- How To seperate Network use in Docker
- Typo in installation command HOT 1
- WG_POST_UP not working?
- Access Wireguard Clients in Docker Container
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wg-easy.