Pi-hole

Author
Discussion

thebraketester

14,359 posts

140 months

Saturday 5th February 2022
quotequote all
Is it possible to redirect urls with pihole. So www.abc.co.uk goes to www.xyz.co.uk ?

A quick Google suggest maybe not, but wondering if there is a way around it.

Scobblelotcher

1,724 posts

114 months

Saturday 5th February 2022
quotequote all
You could try adding a website to your hosts file in etc/hosts and see if it works.

Dave.

7,412 posts

255 months

Sunday 12th November 2023
quotequote all
Thought I'd ask in here rather than starting a new thread....

Anyone successfully use a pinhole and able to make l/receive WiFi calls via Vodafone?

Recently switched to Vodafone for WiFi calling, it has worked in the past but now it doesn't.

I don't recall changing anything recently so I don't see why it would stop working.

I've tried multiple dns's, enabling/disabling ipv6, etc.

There are no relevant queries being blocked by the pi, but I do recall seeing something along the lines of "3gnetworking" in my logs previously, but don't get them now.


megaphone

10,805 posts

253 months

Sunday 12th November 2023
quotequote all
It's working when you disable pi-hole?

Dave.

7,412 posts

255 months

Sunday 12th November 2023
quotequote all
I haven't tried that yet, it does my DHCP too, I'm going to try it on works WiFi tomorrow before disturbing too much here.

GlenMH

5,226 posts

245 months

Sunday 12th November 2023
quotequote all
I have a pihole running on my NAS that does dns for the whole network in my house. DHCP is handled by the router. Vodafone wifi calling works very well - we are in a dip and I can't get 4G in some bits of the house and no sniff of 5G inside at all.

Semmelweiss

1,669 posts

198 months

Sunday 12th November 2023
quotequote all
Dave. said:
I haven't tried that yet, it does my DHCP too, I'm going to try it on works WiFi tomorrow before disturbing too much here.
You can disable blocking without affecting the DHCP server on the PiHole. It's on the menu on the left hand side of the Web Management page.

Dave.

7,412 posts

255 months

Sunday 12th November 2023
quotequote all
Semmelweiss said:
Dave. said:
I haven't tried that yet, it does my DHCP too, I'm going to try it on works WiFi tomorrow before disturbing too much here.
You can disable blocking without affecting the DHCP server on the PiHole. It's on the menu on the left hand side of the Web Management page.
Yes I know, but it’s not being “blocked” by pihole, I believe it’s something to do with the DNS and the way the traffic is routed.

Dave.

7,412 posts

255 months

Sunday 12th November 2023
quotequote all
GlenMH said:
I have a pihole running on my NAS that does dns for the whole network in my house. DHCP is handled by the router. Vodafone wifi calling works very well - we are in a dip and I can't get 4G in some bits of the house and no sniff of 5G inside at all.
That’s good to know, thanks.

Which DNS service are you using? IPv4/6/both/etc?

Ta.

GlenMH

5,226 posts

245 months

Sunday 12th November 2023
quotequote all
Dave. said:
That’s good to know, thanks.

Which DNS service are you using? IPv4/6/both/etc?

Ta.
I am IPV4 only - my router is old so V6 wasn't properly baked when I bought it.
DNS service is either Google or OpenDNS.

Semmelweiss

1,669 posts

198 months

Sunday 12th November 2023
quotequote all
Try CloudfareD on the PiHole - Secure DNS

wget https://bin.equinox.io/c/VdrWdbjqyF/cloudflared-st...
tar -xvzf cloudflared-stable-linux-arm.tgz
sudo cp ./cloudflared /usr/local/bin
sudo chmod +x /usr/local/bin/cloudflared
cloudflared -v

  1. Configuring cloudflared to run on startup
  1. Create a cloudflared user to run the daemon:
sudo useradd -s /usr/sbin/nologin -r -M cloudflared

  1. Proceed to create a configuration file for cloudflared by copying the following in to /etc/default/cloudflared. This file contains the command-line options that get passed to cloudflared on startup:
sudo nano /etc/default/cloudflared

  1. Copy into cloudflared file
CLOUDFLARED_OPTS=--port 5053 --upstream https://1.1.1.1/dns-query --upstream https://1.0.0.1/dns-query

  1. Save file and exit
Update the permissions for the configuration file and cloudflared binary to allow access for the cloudflared user:

sudo chown cloudflared:cloudflared /etc/default/cloudflared
sudo chown cloudflared:cloudflared /usr/local/bin/cloudflared

  1. Then create the systemd script by copying the following in to /etc/systemd/system/cloudflared.service. This will control the running of the service and allow it to run on startup:
sudo nano /etc/systemd/system/cloudflared.service

  1. Copy into cloudflared.service
[Unit]
Description=cloudflared DNS over HTTPS proxy
After=syslog.target network-online.target

[Service]
Type=simple
User=cloudflared
EnvironmentFile=/etc/default/cloudflared
ExecStart=/usr/local/bin/cloudflared proxy-dns $CLOUDFLARED_OPTS
Restart=on-failure
RestartSec=10
KillMode=process

[Install]
WantedBy=multi-user.target

  1. Enable the systemd service to run on startup, then start the service and check its status:
sudo systemctl enable cloudflared
sudo systemctl start cloudflared
sudo systemctl status cloudflared

  1. Run the following dig command, a response should be returned similar to the one below:
dig @127.0.0.1 -p 5053 google.com

; <<>> DiG 9.10.3-P4-Ubuntu <<>> @127.0.0.1 -p 5053 google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 65181
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1536
;; QUESTION SECTION:
;google.com. IN A

;; ANSWER SECTION:
google.com. 299 IN A 243.65.127.221

;; Query time: 3 msec
;; SERVER: 127.0.0.1#5053(127.0.0.1)
;; MSG SIZE rcvd: 65

Dave.

7,412 posts

255 months

Monday 13th November 2023
quotequote all
GlenMH said:
I am IPV4 only - my router is old so V6 wasn't properly baked when I bought it.
DNS service is either Google or OpenDNS.
Thanks for that, tried at work this morning and it's not working here either, looks like it's a phone issue rather than a pi/network issue.

Dave.

7,412 posts

255 months

Monday 13th November 2023
quotequote all
Semmelweiss said:
... Snip ...
Thanks, I reckon it's a phone issue, so I'll hold off that for now.

gregs656

10,960 posts

183 months

Tuesday 14th November 2023
quotequote all
Thinking of ditching pihole. My pi is old and seems to be becoming less and less reliable.

megaphone

10,805 posts

253 months

Tuesday 14th November 2023
quotequote all
gregs656 said:
Thinking of ditching pihole. My pi is old and seems to be becoming less and less reliable.
Have you tried a new SD card?

Semmelweiss

1,669 posts

198 months

Tuesday 14th November 2023
quotequote all
megaphone said:
Have you tried a new SD card?
Good call. I've been running them for years and have found that even the very best SD cards have a life of 8-12 months before needing replacement. They don't like constant writes.

I moved to booting from SSD earlier this year and no more worries. Easy if you are running Pi 4's.

ARHarh

3,867 posts

109 months

Tuesday 14th November 2023
quotequote all
about 8 months ago when RPI's were selling for far too much money I sold my Pi4's one running pihole and open media vault, the other running home assistant for £100 each, after having had them running for over 2 years. I then bought a second hand HP t630, a bit of ram and an ssd. It now runs the stuff 2 pi's ran and all for about £70. Unless you need the gpio pins I can't see why you would run a pi, apart from the power consumption, but that is irrelevant if you end up running more than one pi.

WrekinCrew

4,673 posts

152 months

Tuesday 14th November 2023
quotequote all
ARHarh said:
about 8 months ago when RPI's were selling for far too much money I sold my Pi4's one running pihole and open media vault, the other running home assistant for £100 each, after having had them running for over 2 years. I then bought a second hand HP t630, a bit of ram and an ssd. It now runs the stuff 2 pi's ran and all for about £70. Unless you need the gpio pins I can't see why you would run a pi, apart from the power consumption, but that is irrelevant if you end up running more than one pi.
I run one PiHole on a Pi Zero 2W (currently £17 but I paid around £12). Takes up no space and powered by an otherwise-unused USB port on my router.
I run a second PiHole on an old RPi Model 3 (still available new, around £30) but that's primarily a webcam.

I guess the ideal solution is to put it on whatever you have lying around that's happy running 24/7, silently and with minimal power consumption.

troc

3,805 posts

177 months

Tuesday 14th November 2023
quotequote all
I run my pihole(s) powered by a PoE hat as my router has a decent number of PoE ports. They are racked in my main rack in a 3D printed mount that can take 4 pi’s.

Ydnaroo

289 posts

204 months

Tuesday 14th November 2023
quotequote all
Semmelweiss said:
megaphone said:
Have you tried a new SD card?
Good call. I've been running them for years and have found that even the very best SD cards have a life of 8-12 months before needing replacement. They don't like constant writes.
I've had much the same experience with Pi-hole installations. I installed Log2RAM about 18 months ago which seems to have solved this problem and I've had no card issues since. As the name suggests this saves the logs to RAM and dumps them to the card once a day (or at proper close down) saving card wear. https://pimylifeup.com/raspberry-pi-log2ram/