Das sieht eigentlich soweot alles nach Standard aus - und mindestens mit DHCP muß ja die IP-Adresse, die der LXC Container bekommt, im selben VLAN liegen, wie der ProxMox Server, letzterer verhält sich ja im Bridge Mode wie ein Switch zwischen dem LXC Container und dem Rest des Netzwerks - also eigentlich[TM] sollte das funktionieren...
Noch eine blöde Frage: wie versuchst Du, auf Deinen PIHole Container zuzugreifen, mit IP-Adresse direkt oder mit Hostname? Du könntest mal folgendes versuchen und sowohl für beide Varianten für beide, den ProxMox Server selbst und den PiHole Container (also je vier mal insgesamt) von Deinem Notebook oder Desktop aus einer Shell heraus folgende Kommandos ausführen: ping, traceroute und telnet auf Port 80 - das kannst Du als kleinen Einzeiler schreiben:
for a in pihapp01 192.168.178.54 pveapp01 192.168.178.151; do echo "===> $a <==="; ping -c 1 $a; traceroute $a; telnet $a 80; done
Das Ergebnis sollte dann ungefähr so aussehen, wenn alles funktioniert:
===> pihapp01 <===
PING pihole01.local (192.168.178.54): 56 data bytes
64 bytes from 192.168.178.54: icmp_seq=0 ttl=63 time=3.419 ms
--- pihole01.local ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 3.419/3.419/3.419/nan ms
traceroute to pihole01.local (192.168.178.54), 64 hops max, 52 byte packets
1 10.10.0.1 (10.10.0.1) 4.796 ms 5.766 ms 2.522 ms
2 pihapp01 (192.168.178.54) 2.947 ms 2.815 ms 2.791 ms
Trying 192.168.178.54...
Connected to pihole01.local.
Escape character is '^]'.
Get / HTTP/1.0
HTTP/1.0 501 Not Implemented
Content-Type: text/html
Content-Length: 353
Connection: close
Date: Sun, 20 Aug 2023 07:26:08 GMT
Server: lighttpd/1.4.59
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>501 Not Implemented</title>
</head>
<body>
<h1>501 Not Implemented</h1>
</body>
</html>
Connection closed by foreign host.
===> 192.168.178.54 <===
PING 192.168.178.54 (192.168.178.54): 56 data bytes
64 bytes from 192.168.178.54: icmp_seq=0 ttl=63 time=3.837 ms
--- 192.168.178.54 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 3.837/3.837/3.837/0.000 ms
traceroute to 192.168.178.54 (192.168.178.54), 64 hops max, 52 byte packets
1 10.10.0.1 (10.10.0.1) 5.282 ms 3.437 ms 5.884 ms
2 pihapp01 (192.168.178.54) 2.758 ms 3.459 ms 3.918 ms
Trying 192.168.178.54...
Connected to pihapp01.
Escape character is '^]'.
GET / HTTP/1.0
HTTP/1.0 403 Forbidden
Content-Type: text/html
Content-Length: 341
Connection: close
Date: Sun, 20 Aug 2023 07:26:19 GMT
Server: lighttpd/1.4.59
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>403 Forbidden</title>
</head>
<body>
<h1>403 Forbidden</h1>
</body>
</html>
Connection closed by foreign host.
===> pveapp01 <===
PING proxmox01.local (192.168.178.151): 56 data bytes
64 bytes from 192.168.178.151: icmp_seq=0 ttl=63 time=2.729 ms
--- proxmox01.local ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 2.729/2.729/2.729/nan ms
traceroute to proxmox01.local (192.168.178.151), 64 hops max, 52 byte packets
1 10.10.0.1 (10.10.0.1) 4.491 ms 2.783 ms 2.376 ms
2 proxmox01.local (192.168.178.151) 4.617 ms 3.317 ms 3.142 ms
Trying 192.168.178.151...
telnet: connect to address 192.168.178.151: Connection refused
telnet: Unable to connect to remote host
===> 192.168.178.151 <===
PING 192.168.178.151 (192.168.178.151): 56 data bytes
64 bytes from 192.168.178.151: icmp_seq=0 ttl=63 time=2.959 ms
--- 192.168.178.151 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 2.959/2.959/2.959/0.000 ms
traceroute to 192.168.178.151 (192.168.178.151), 64 hops max, 52 byte packets
1 10.10.0.1 (10.10.0.1) 3.050 ms 2.362 ms 2.224 ms
2 proxmox01.local (192.168.178.151) 4.983 ms 5.339 ms 2.402 ms
Trying 192.168.178.151...
telnet: connect to address 192.168.178.151: Connection refused
telnet: Unable to connect to remote host
Alles anzeigen
Falls das "telnet $a 80" funktioniert (das ist ein extrem primitiver Test, ob sich ein Browser verbinden könnte, dann bleibt das Script an der Stelle stehen und erwartet eine Eingabe von Dir
Dort gibst Du dann einfach ein: GET / HTTP/1.0 und drückst zweimal die "<ENTER>" Taste - das ist wichtig, weil dadurch der HTTP-GET Request, der davor steht erst abgeschlossen wird.
Und solltest dann von Pihole den in meinem Beispiel zu sehenden "403" Fehler bekommen. Dein ProxMox Host sollte auf diesem Port vermutlich keine Antwort geben, da der i.d.R. nur HTTPS spricht. Die Hostnamen / IP Adressen in der "for" Schleife oben natürlich durch Deine eigenen Werte ersetzen, nur zur Sicherheit