Giter VIP home page Giter VIP logo

Comments (6)

WeeJeWel avatar WeeJeWel commented on July 29, 2024

Just don't set the PASSWORD environment variable.

from wg-easy.

smshr avatar smshr commented on July 29, 2024

@WeeJeWel: of-course! Silly how I missed it.

from wg-easy.

stratosgear avatar stratosgear commented on July 29, 2024

@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.

smshr avatar smshr commented on July 29, 2024

@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.

stratosgear avatar stratosgear commented on July 29, 2024

Ouch, I'm on docker-compose (either with Docker Swarm or not). I'm using Traefik 2.4.8

from wg-easy.

smshr avatar smshr commented on July 29, 2024

@stratosgear: you can see my kubernetes configuration here: https://github.com/WeeJeWel/wg-easy/issues/3#issuecomment-873743339

from wg-easy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.