Comments (3)
Hey,
I just did this setup for my own deployment. As a disclaimer, I did not follow everything as is because my setup is a bit different but hopefully I can help a bit.
So, instead of using PiHole I'm using Adguard Home on my server. Because my network is not configured (yet) to use this DNS server I had to manually make the server use it. Also, my laptop is also configured to use this DNS server.
Now, for my setup, as I don't have Proxmox, I setup Home Assistant (again) to be able to reach it externally. To do that I setup a DNS entry (on cloudflare on my case) that points to my public IP address. I also added a CNAME record to the same A record. Then, on the Traefik's config file I added the router with my host and the service that acts as a load balancer.
The router determines the host name that the proxy answers to while the service redirects the client to the correct IP and Port in your network. For this to work you need to add the service to the router entry.
Here's an example:
http:
#region routers
routers:
home-assistant:
entryPoints:
- "https"
rule: "Host(`homeassistant.mydomain.com`)"
tls: {}
service: home-assistant-service
#endregion
#region services
services:
home-assistant-service:
loadBalancer:
servers:
- url: "http://192.168.0.10:8123"
passHostHeader: true
#endregion
Don't forget to port forward external connections directly to your Traefik instance in your router!
This makes it possible to be outside, hit whatever URL you set and the following happens:
- Cloudflare (or your DNS provider) redirects the request to your house (your external IP)
- Your router redirects external connections to your Traefik instance (watchout for the correct ports!)
- Traefik analyses the incoming connections and redirects them to the correct service (defined in your config file)
- The service forwards the request to the final component!
Hope it helps!
from techno-tim.github.io.
Hey,
I just did this setup for my own deployment. As a disclaimer, I did not follow everything as is because my setup is a bit different but hopefully I can help a bit.
So, instead of using PiHole I'm using Adguard Home on my server. Because my network is not configured (yet) to use this DNS server I had to manually make the server use it. Also, my laptop is also configured to use this DNS server.
Now, for my setup, as I don't have Proxmox, I setup Home Assistant (again) to be able to reach it externally. To do that I setup a DNS entry (on cloudflare on my case) that points to my public IP address. I also added a CNAME record to the same A record. Then, on the Traefik's config file I added the router with my host and the service that acts as a load balancer.
The router determines the host name that the proxy answers to while the service redirects the client to the correct IP and Port in your network. For this to work you need to add the service to the router entry.
Here's an example:
http: #region routers routers: home-assistant: entryPoints: - "https" rule: "Host(`homeassistant.mydomain.com`)" tls: {} service: home-assistant-service #endregion #region services services: home-assistant-service: loadBalancer: servers: - url: "http://192.168.0.10:8123" passHostHeader: true #endregion
Don't forget to port forward external connections directly to your Traefik instance in your router!
This makes it possible to be outside, hit whatever URL you set and the following happens:
Cloudflare (or your DNS provider) redirects the request to your house (your external IP)
Your router redirects external connections to your Traefik instance (watchout for the correct ports!)
Traefik analyses the incoming connections and redirects them to the correct service (defined in your config file)
The service forwards the request to the final component!
Hope it helps!
Hey thx for you reply! Although it is useful info (using Home Assistant as well) I am referring to the part of the video where Tim mentioned he is using pihole for internal DNS as well as external through traefik.. I got the external part working but when internal is activated it stops working/blocks external or something. I assumed he put homeassistant.mydomain.com in pihole and point it to... well. Which IP?
from techno-tim.github.io.
The IP of the proxy. All records on the DNS (both external and internal) go to the proxy
from techno-tim.github.io.
Related Issues (20)
- SSL Everything - Incomplete
- I donโt intend to use letโs encrypt for ssl โ how to modify your ssl everything using Traefik and cloudflare?
- Configuring Traefik for Cloudflairs DNS Proxy
- Traefik's Default Cert is "Not Secure"
- Google Analytics doesn't work with 'G-XXXXXXXXXX' tag id. HOT 3
- DEPENDABOT: Ignore chirpy updates HOT 1
- HTTPS redirection (duplicated?)
- middleware "https-redirectscheme@file" does not exist
- Traefik.yml cloudflare certs not working HOT 4
- NUT client upssched.conf issue HOT 2
- How to assign a custom port to a new docker container in docker services when using with traefik HOT 1
- error when trying start docker-compose HOT 1
- traefik: pass client ip to container
- Add documentation on which permissions does the API Token need HOT 3
- Fix CI HOT 1
- Traefik pihole configuration not quite correct. HOT 2
- Revert Changes Due To Twitter Cards Not Rendering Properly HOT 1
- Added your plex traefik config to my config.yml and a few errors appear.
- Misleading password label HOT 1
- Authelia 4.38.0 has deprecated some fields HOT 1
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 techno-tim.github.io.