After disabling router's DHCP and enabling PiHole's DHCP the dashboard loses connection to API and the DNS and DHCP do not work.
Debug Token:
7jg6yibzcn
Summary:
Hi eveyone,
I've installed Pi-hole on my RPi 3 and I've used it with it's own DHCP (as my ISP gave me a shitty router which I cannot replace) without any problems whatsoever (first try as well). After seeing how well it works I wanted even more out of it and so I followed the guides to setup OpenVPN as well and also did the OpenVPN + LAN guide. Here's where the problems begin. After setting everything up and disabling the router's DHCP and enabling the Pi-hole's DHCP my devices fail to get an IP address assigned and the dashboard loses the connection to the API. I have a feeling I'm really missing something here but I spent too many hours trying to figure it out with no avail.
Note: The RPi is connected via wlan0, ethernet is out of the question as the positioning is not favorable.
Any suggestions and help would be much appreciated.
server.conf contents
port 1194
proto udp
dev tun
sndbuf 0
rcvbuf 0
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-auth ta.key 0
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
#push "dhcp-option DNS 1.1.1.1"
push "route 192.168.1.0 255.255.255.0"
push "dhcp-option DNS 10.8.0.1"
#push "dhcp-option DNS 192.168.1.118"
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem
log /var/log/openvpn.log
Above one indicates a conflict with another process/daemon/program.
Can you post output for below one to see which process is using port 67 UDP for DHCP ?
I just realized both the router's and pihole's DHCP were opened when I ran that command (oops), however trying to retrace the steps from scratch using a fresh raspbian install makes the pihole installation hang. What I did was: Install OpenVPN -> Choose all the default settings -> Start installing the Pihole -> all default settings and selecting tun0 as interface and after selecting my preferred DNS it just hangs and I lose connection over SSH to it.
Install Pi-hole first (and make sure it's working) and then OpenVPN.
In your current situation, install it (Pi-hole) on the default interface (eth0, wlan0 or whatever the name is) and then allow requests on all interfaces and all origins.