piHole dhcp UND WIREGUARD

Hi,

ich hab mich schon totgesucht und totkonfiguriert und bekomme es einfach nicht hin.
Ich möchte mich von extern mit meinem Netzwerk via Wireguard verbinden und dann die Vorteile beim surfen von piHole nutzen. Mit dem eingebauten Fritzbox VPN ist das kein Problem, aber mit wirguard bekomme ich nur eine Verbindung zu internen Geräten. Mein Setting:

Internet <-> Fritzbox <-> Proxmox mit piHole LXC-Container und Wireguard LXC-Container (separat voneinander).

Pihole ist als DNS und DHCP-Server konfiguriert. In der DNS-Section habe ich "permit all origings" antegtickt. Im client (cvon wireguard) steht mittlerweile auch:
[Peer]
AllowedIPs = 0.0.0.0/0, ::/0

Probier's mal mit Pi-holes Guide für Wireguard.

1 Like

Ja,
hab ich schon gesehen. Dann probiere ich das nochmal alles manuell. Vielleicht klappts ja- irgendwann.

I was in the same boat. I've gone through every tutorials on the Internet and finally found this youtube video and now I'm able to connect via wireguard with the protection of pihole.

PiVPN + WireGuard Complete Setup - Build Your Own VPN Server! - YouTube

I will do so and Test piVPN.

I got this working. Finally. After hour of testing.

I think i foud false information and teh key was to add

lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir

in the Proxmox LXC-Host file, without an running host. I think i just found installations with "cgroup" instead of "cgroup2".

I used this install method Proxmox Helper Scripts | Scripts for Streamlining Your Homelab with Proxmox
and also this video Proxmox HomeServer - Teil 6 | PiVPN in LXC Container Installieren - YouTube to make this working.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.