fix: remaining DHCP drifts + improve validation script

- Fixed apps LXC 105: /etc/network/interfaces was still 'iface eth0 inet
  dhcp' -> changed to static 192.168.8.205/24, killed dhclient, applied
- Fixed mule-images LXC 120: DHCP client had overridden static .136 with
  DHCP lease .108 -> killed dhclient, restored .136
- Fixed sophia docs: inventory said .157, actual Proxmox config is .109
- Updated check-caddy-backends.sh: uses curl with connect-timeout for
  reliable TCP checks, distinguishes 'port open / no HTTP' from 'unreachable'
This commit is contained in:
2026-06-05 17:59:46 +02:00
parent b3729a941e
commit 35b1a25f08
3 changed files with 7 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ os: linux
role: workshop role: workshop
host: hubris host: hubris
pve_id: 119 pve_id: 119
lan_ip: 192.168.8.157 lan_ip: 192.168.8.109
mesh: mesh:
tailscale: tailscale:
fqdn: sophia fqdn: sophia

View File

@@ -221,7 +221,7 @@ hosts:
host: hubris host: hubris
os: linux os: linux
role: workshop role: workshop
lan_ip: 192.168.8.157 lan_ip: 192.168.8.109
mesh: mesh:
tailscale: tailscale:
fqdn: sophia fqdn: sophia

View File

@@ -2,6 +2,7 @@
# check-caddy-backends.sh — validate all Caddy reverse_proxy targets are reachable # check-caddy-backends.sh — validate all Caddy reverse_proxy targets are reachable
# Run this on hubris (192.168.8.77) or any host on the homelab LAN. # Run this on hubris (192.168.8.77) or any host on the homelab LAN.
# Returns non-zero if any backend is unreachable. # Returns non-zero if any backend is unreachable.
# Uses curl with a short timeout for reliable TCP checks.
set -o pipefail set -o pipefail
CADDY_HOST="192.168.8.175" CADDY_HOST="192.168.8.175"
@@ -24,9 +25,11 @@ FAILED=0
while read -r target; do while read -r target; do
[ -z "$target" ] && continue [ -z "$target" ] && continue
TOTAL=$((TOTAL + 1)) TOTAL=$((TOTAL + 1))
ip_port=(${target//:/ }) # Use curl with 3s connect timeout for reliable TCP check
if timeout 3 bash -c "echo >/dev/tcp/${ip_port[0]}/${ip_port[1]}" 2>/dev/null; then if timeout 3 curl -s -o /dev/null --connect-timeout 2 "$target" 2>/dev/null; then
echo "$target" echo "$target"
elif timeout 2 bash -c "echo >/dev/tcp/${target/:/\/}" 2>/dev/null; then
echo " ⚠️ $target — port open, no HTTP response"
else else
echo "$target — unreachable" echo "$target — unreachable"
FAILED=$((FAILED + 1)) FAILED=$((FAILED + 1))