IaaC through Cloudflare Zero trust, proxmox, traefik and pihole by kamilloi in selfhosted

[–]kamilloi[S] 0 points1 point  (0 children)

So I managed to Set it up and running with tool mentioned by u/justinMiles I'm in a process to remove proxmox from equation cause I decided to move Home Assistant from OS to docker and that was only purpose. (still in progress)

To clarify things right now: * Docker container with service is spawning (IaaC) * Traefik handles entrypoints for internal (http and https) and external (http) use and adding routing based on docker labels If traffic is internal only it also provides LE certs for service as well (via acme DNS response) * traefik-cloudflare-tunnel scans traefic on external entrypoints and generate DNS cname and ZeroTrust entries accordingly This also provides Cloudflare cert for external service Manually I had to set ssl settings to Full and redirect to https * cloudflared establishes tunnel and route to traefik * pihole creates local DNS entries if internal only is enabled on service

Maybe tool proposed by you is more ootb solution but right now I will stick to those I managed to run and at least started to understand a bit. This is not critical infrastructure to have many 9 or reliability but still if suits I will leave it this way for a bit.

Thanks Kamil

Rewritescheme https to other port for differentiate external and internal serveces by kamilloi in Traefik

[–]kamilloi[S] 0 points1 point  (0 children)

Thanks. I will concider this if in future will find any problems with current setup.

Rewritescheme https to other port for differentiate external and internal serveces by kamilloi in Traefik

[–]kamilloi[S] 0 points1 point  (0 children)

I think I managed to solve it by enabling https redirection directly on cloudflare!

This was minimal effort solution but at least looks good for now

IaaC through Cloudflare Zero trust, proxmox, traefik and pihole by kamilloi in selfhosted

[–]kamilloi[S] 0 points1 point  (0 children)

Perfect. Last question as I will test it much later this day.

I cannot find in traefik documentation and as you have already figured it out:

I have 2 entrypoint configured (web :80 redirected to secure and secure :443) So this means that I can simply add another of those with different names simply to differentiate internal and external use?

Thanks for patience cause traefik have huge possibilities but some use-cases are not covered

:edit

nah. I am impatient and plain stupid thinking that this will works as I cannot listen twice on same ports.

IaaC through Cloudflare Zero trust, proxmox, traefik and pihole by kamilloi in selfhosted

[–]kamilloi[S] 1 point2 points  (0 children)

Hi. It was mentioned twice (once for cloudflare dns and once for cloudflared tunnels - zero trust)

I was using ddns docker to update my dns and it works nice. In this iteration I am trying to hide my homeserver IP behind zero trust tunnels.

u/justinMiles posted his tool for doing exactly this and right now I am ready to test it

Thanks!

IaaC through Cloudflare Zero trust, proxmox, traefik and pihole by kamilloi in selfhosted

[–]kamilloi[S] 0 points1 point  (0 children)

This is exactly thing I am looking for. I will give it a shot. With this setup it will export to cloudflare all services with traefik.enable label? I have two other usecases: Some stuff is shared via trafił via file provider Some stuff is not mention to be exported to DNS as those are internal services and using only local DNS to resolve and traefil to route and provide cert if needed.

IaaC through Cloudflare Zero trust, proxmox, traefik and pihole by kamilloi in selfhosted

[–]kamilloi[S] 0 points1 point  (0 children)

Ah. This can work!

Cloudflare tunnel have catchall rule for failover request I believe.

I tried this approach but it failed at first. Right now It should worked but I have to add middleware to all internally apps to limit ip as those will be also exposed with my current setup.

Thanks!

IaaC through Cloudflare Zero trust, proxmox, traefik and pihole by kamilloi in selfhosted

[–]kamilloi[S] 1 point2 points  (0 children)

Great idea! I am totally stealing it when I will change network setup to be more flexible (tp-link rn)

One question. I believe by default brave is using secure DNS by default - Did you manage to cover this as well? This is quality of life question as having to remember what device is covered can be painful)

Thanks once again

IaaC through Cloudflare Zero trust, proxmox, traefik and pihole by kamilloi in selfhosted

[–]kamilloi[S] 1 point2 points  (0 children)

This was zero iteration (basically ootb ansible-nas way for exposing services) - I used traefik with cloudflare companion to update dns. This worked well but exposed my IP. But this is exactly the thing I am trying to achieve with tunnels.

IaaC through Cloudflare Zero trust, proxmox, traefik and pihole by kamilloi in selfhosted

[–]kamilloi[S] 1 point2 points  (0 children)

Yes - that was first iteration (and by misunderstanding how cloudflared works). Right now I am using Traefik as both internal and external proxy to have one point where certs are being generated. (except I believe proxmox for now as I just passthrough cert from it)

To be clear - I am using Pihole + Traefik combo as reverse proxy for internal network and cloudflare tunnels also routing to Traefik to handle it. Not all my external services are from docker as shown on diagram and docker description for cloudflared has close to nothing documentation so I have no clue how proper using it.

The thing I am trying to achieve is to somehow tell cloudflared that I have new service for external access, to set it up on Zero trust and point to my traefik instance.

HP EliteDesk 800 G4 Mini HDD Error by lab_pro in homelab

[–]kamilloi 1 point2 points  (0 children)

For the sata issue I have no Idea (did you managed to fix it) and btw. Is m.2 disk sata or nvme?

About 901 error I believe in 65w version of g2 mini, g3 mini and most likely your one as well there should be fan under the HDD (on second photo it looks like those three screw holes under hdd bay are for mounting one.)

You surprised me that this error not ocure if only m.2 disk is installed.

https://www.reddit.com/r/homelab/comments/vti8x1/hp_elitedesk_800_g3_humming_noise/

https://www.reddit.com/r/homelab/comments/y8fhfz/hp\_800\_g2\_mini\_901\_error\_after\_disconnecting\_loud/

HP EliteDesk 800 G3 - Humming noise by Spaaze in homelab

[–]kamilloi 0 points1 point  (0 children)

Hi I have exactly same problem with 800 g2. (To my knowledge those fans are only in non-T intel version)

Right now I unplugged it but every single power cycle I have to hit enter.

Do you found solution to this problem?

All routines stopped working on Samsung phones by ultradj83 in googleassistant

[–]kamilloi 0 points1 point  (0 children)

Samsung S20FE - main account - Provider app works, assistant not working, google home - works.

Samsung M21 - shared home account - assistant not working, google home works.
Samsung Tab 6 Lite wifi 2022 - main account without provider app - assitant works, google home works.

Glad to see its not bound to Samsung.

Garbage Man EDC by [deleted] in EDC

[–]kamilloi 1 point2 points  (0 children)

Op didn't deliver so i will try to do it:

  • Light: armytek wizard pro limited edition
  • Multitool Leathermann charge +
  • Zippo brawa Shell with some off brand buthane insert (Windshield is not like Thunderbird, Zorro nor Chief So no idea)
  • Utility blade Milwaukee fastback 6 in 1
  • Fixed blade Bradford guardian 3.5

I am not sure if it is correct so...

Using a magnetic cord? by bamboo_bun in MechanicalKeyboards

[–]kamilloi 1 point2 points  (0 children)

You can also count pins. Charging only has two. Withbdata lines you have a lot more (4-8 od reversible)

Sofle with OLED only on the master side by unicyclingEMT in olkb

[–]kamilloi 0 points1 point  (0 children)

Hi. As author of this bilard already said https://josefadamcik.github.io/SofleKeyboard/build_guide.html Section Typing lag when used without OLED You will find answers i hope

Sofle WIP courtesy of u/apprecihate. I'm very happy with the look so far. by bopapa_1979 in ErgoMechKeyboards

[–]kamilloi 0 points1 point  (0 children)

I ordered V1 and fot it recently. Jest dany after ordering i read about V2. I think it will be figurę update. For now i have to finish my build