[SOLVED] Proxmox Host wird nicht vom DHCP erkannt

sakis2018

Active Member
Dec 25, 2018
53
0
26
49
Hallo,

auf den Proxmox läuft Pi hole als LXC Container.
Es werden alle Geräte im DHCP unter Pihole gefunden, bis auf Proxmox Host, sowie die anderen LXC und VM.

Danke für die Hilfe im vorraus.

LG
Sakis
 
Es werden alle Geräte im DHCP unter Pihole gefunden, bis auf Proxmox Host, sowie die anderen LXC und VM.
Das verstehe ich nicht. Was meinst du genau mit Proxmox Host und DHCP, was sollte denn da genau gefunden werden. Proxmox setzt eine fixe IP voraus. Gibt es viel. separate Netze oder ähnliches?
 
Danke für deine Antwort.

Ich bin nun ein Stück weiter gekommen. Wie du bereits erwähnt hast, braucht Proxmox eine feste IP, die hat er auch, daher stellt er keine DHCP Anfrage, und deswegen taucht er auch nicht im Webinterface von Pi hole auf.

Bestehende Probleme
  1. Pihole kann keine lokalen Geräte anpingen
  2. Proxmox-GUI wird nicht gefunden unter pve.lab.domain.de

Proxmox HOST

Code:
arch: amd64
cores: 1
hostname: pihole
memory: 20487
nameserver: 127.0.0.1
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.20.1,hwaddr=4E:59:26:C1:FF:AA,ip=192.168.20.100/24,type=veth
onboot: 1
ostype: ubuntu
rootfs: local-lvm:vm-100-disk-0,size=8G
searchdomain: lab.sakis.tech
swap: 1024
unprivileged: 1

Pihole LXC - Config Files

Code:
conf-dir=/etc/dnsmasq.d

Code:
# Pi-hole: A black hole for Internet advertisements
# (c) 2017 Pi-hole, LLC (https://pi-hole.net)
# Network-wide ad blocking via your own hardware.
#
# Dnsmasq config for Pi-hole's FTLDNS
#
# This file is copyright under the latest version of the EUPL.
# Please see LICENSE file for your rights under this license.

###############################################################################
#      FILE AUTOMATICALLY POPULATED BY PI-HOLE INSTALL/UPDATE PROCEDURE.      #
# ANY CHANGES MADE TO THIS FILE AFTER INSTALL WILL BE LOST ON THE NEXT UPDATE #
#                                                                             #
#        IF YOU WISH TO CHANGE THE UPSTREAM SERVERS, CHANGE THEM IN:          #
#                      /etc/pihole/setupVars.conf                             #
#                                                                             #
#        ANY OTHER CHANGES SHOULD BE MADE IN A SEPARATE CONFIG FILE           #
#                    WITHIN /etc/dnsmasq.d/yourname.conf                      #
###############################################################################

addn-hosts=/etc/pihole/gravity.list
addn-hosts=/etc/pihole/black.list
addn-hosts=/etc/pihole/local.list


localise-queries


no-resolv



cache-size=10000

log-queries
log-facility=/var/log/pihole.log

local-ttl=2

log-async





dhcp-name-match=set:hostname-ignore,wpad
dhcp-name-match=set:hostname-ignore,localhost
dhcp-ignore-names=tag:hostname-ignore

server=127.0.0.1#5053
server=192.168.20.100#53
domain-needed
bogus-priv
dnssec
trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5
trust-anchor=.,20326,8,2,E06D44B80B8F1D39A95C0B0D7C65D08458E880409BBC683457104237C7F8EC8D

local-service
server=/use-application-dns.net/

Code:
###############################################################################
#  DHCP SERVER CONFIG FILE AUTOMATICALLY POPULATED BY PI-HOLE WEB INTERFACE.  #
#            ANY CHANGES MADE TO THIS FILE WILL BE LOST ON CHANGE             #
###############################################################################
dhcp-authoritative
dhcp-range=192.168.20.20,192.168.20.250,24h
dhcp-option=option:router,192.168.20.1
dhcp-leasefile=/etc/pihole/dhcp.leases
#quiet-dhcp

domain=lab.domain.de
dhcp-rapid-commit

Code:
dhcp-host=AA:BB:CC:DD:EE:FF:GG,192.168.20.200,pve
dhcp-host=AA:BB:CC:DD:EE:FF:GG,192.168.20.1,fritz

Code:
192.168.20.100 pihole.lab.domain.de pihole

Code:
# --- BEGIN PVE ---
::1 localhost.localnet localhost
192.168.20.100 pihole.lab.domain.de pihole
# --- END PVE ---

Code:
pihole

Pihole Webinterface Settings

1.JPG

2.jpg

3.jpg
 
Ich habe mittlerweile Pi hole auf einen Raspberry Pi 3 installiert und folgende Anleitung genutzt.

Code:
auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.20.200
        netmask 255.255.255.0
        gateway 192.168.20.1
        bridge_ports eno1
        bridge_stp off
        bridge_fd 0

iface enp3s2 inet manual
 
Last edited:
Ich muss vorrausschicken, dass ich Pi Hole selber nicht kenne.

Mir ist aber aufgefallen, dass du in Pi Hole einen DHCP mit einer Range von 192.168.20.20 bis 192.168.20.250 eingerichtet hast. Soweit so gut. Aber dein Proxmox und dein Pi Hole dürften fixe (statische) IPs haben, die sich in dieser Range befinden. Da könnte es z.B. vorkommen, dass zwei Geräte im selben Netzwerk die gleiche IP durch den DHCP zugewiesen bekommen. Das wäre zu vermeiden. Ich würde die Range entsprechend verkleinern und sicherstellen, dass die fixen IPs, die du für Geräte vergibst (PVE, Pi Hole etc.) außerhalb liegen.

Zudem weiss ich nicht, ob Pi Hole die dynamischen IPs und auch die statischen IPs automatisch an den DNS weiterreicht, sodass diese von ihm aufgelöst werden können. Zudem wäre noch zu überprüfen, ob die MAC - Adresse deines PVE, die du offensichtlich im Pi Hole eingetragen hast, tatsächlich stimmt. Sonst funktioniert das ev. auch nicht.

Zudem würde ich von der Konsole des Pi Hole und vom PVE aus gegenseitig testen, ob ein Ping auf die IP-Adresse funktioniert und danach, sollte dies passen, einen Ping auf den Host-Namen. Dadurch lässt sich feststellen, ob TCP/IP generell funktioniert und lediglich DNS fehlerhaft ist, oder ob auch die Verbindung über die IP-Adresse nicht möglich ist.
 
  • Like
Reactions: sakis2018
Ich hab jetzt alles neu installiert nach dieser Anleitung und DHCP läuft auch über Pi hole.
Soweit funktioniert alles.

Vielen Dank.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!