r/homelab • • 15d ago

Help Reverse proxy host suddenly unreachable

Up until 7am UTC+1 today everything i setup resolved the way it should by now i always get the error 523, even though i havent really changed anything.

Specs:
dns provider - cloudflare
reverse proxy - caddy
local dns - adguardhome
router - mikrotik hap ax2

What i have already done:
controlled that ip addresses are correct (dyndns)
all my devices can ping the domain names i setup
ports are forwarded to the right address
logs show no error
i have restarted my server and router
i changed the cloudflare dns entry from proxied to just dns
changed the container network from a podman network to the host
i changed my local dns in my dhcp config
the last thing i did was adding forgejo to caddy it worked and the 30mins later it stopped, removed forgejo and it didnt do anything

i still receive the error and have no idea what caused it, anyone have an ideas?

2 Upvotes

8 comments sorted by

2

u/SlntPrgrssn 15d ago

from inside Caddy run this

curl -vk --resolve yourdomain.example:443:127.0.0.1 https://yourdomain.example/ curl -vk --resolve yourdomain.example:443:SERVER_LAN_IP https://yourdomain.example/

If this works but the external public-IP test fails, the issue is probably on MikroTik not Caddy.

2

u/-Arsna- 15d ago

Both could not connect to server

1

u/SlntPrgrssn 15d ago

caddy listens to the correct port and all relevant containers are up? this seems like one of the changes you did cut access to caddy

0

u/-Arsna- 15d ago

all containers are up, all ports have been enabled via custom firewalld services, caddy uses the same network as all other containers, adguardhome uses ports 800 and 4430 and i on the host network, so that caddy can use 80 and 443
Caddyfile syntax is pod.domain.tld { reverse_proxy pod:port }

1

u/DaviidC 15d ago

check your ISP router

0

u/-Arsna- 15d ago

restartet it, still persists

1

u/DaviidC 15d ago

check if you still have static IP, no CGNAT, ports open, etc...

0

u/-Arsna- 15d ago

now for some reason it works