Hello everyone,
I have a problem setting up traefik with wireguard and transmission.
Indeed I placed Transmission behind Wireguard trying to follow instructions where I could. Everything works except being able to access the Transmission web interface. I followed what was indicated in the Wireguard LinuxServer readme (GitHub - linuxserver/docker-wireguard), so I added these two lines to my wireguard conf file. But it doesn’t work, I can’t access the web interface via my domain name.
The section says we need to change the subnets for our cases, but I’m not sure what I need to change. For information, my server’s local ip is 192.168.1.43.
I can access to the web ui through my local ip and port 9091 but not through my domain
If anyone has any ideas, I’d love to hear from you.
Here is an extract of my docker-compose:
wireguard:
image: linuxserver/wireguard
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1001
- PGID=1001
- TZ=Europe/Paris
volumes:
- ./volumes/wireguard/config:/config
- /lib/modules:/lib/modules
ports:
- 51820:51820/udp
- 9091:9091
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped
labels:
- traefik.enable=true
- traefik.http.routers.transmission.rule=Host(`transmission.mydomain.com`)
- traefik.http.routers.transmission.entrypoints=websecure
- traefik.http.routers.transmission.tls.certresolver=letsencrypt
- traefik.http.services.transmission.loadbalancer.server.port=9091
- traefik.http.routers.transmission.middlewares=security
transmission:
image: linuxserver/transmission
container_name: transmission
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Paris
- TRANSMISSION_WEB_HOME=/config/flood-for-transmission
- PEERPORT=30000
volumes:
- ./volumes/transmission/config:/config
- /mnt/ssd/data/torrents:/data/torrents
depends_on:
- wireguard
network_mode: service:wireguard
restart: unless-stopped
Thanks in advance!