Showing posts with label Raspberry. Show all posts
Showing posts with label Raspberry. Show all posts

Monday, December 4, 2023

How to find your Raspberry Pi in your network



Last week - with some struggle - I updated my Raspberry from Buster to Bullseye.

After I succeeded to complete the update, I had to reboot the Raspberry and was unable to reconnect to it with the known IP-address.

The trick I then used was to ping the hostname, only to find out that my Raspberry was using an IP 6 IP-address.

I disabled IP6 by editing the /etc/sysctl.conf file. I added these three lines;
  • net.ipv6.conf.all.disable_ipv6 = 1
  • net.ipv6.conf.default.disable_ipv6 = 1
  • net.ipv6.conf.lo.disable_ipv6 = 1
And reboot.


Then when I wanted to access my Raspberry I still was not able to use the known IP-address. Ping-ing the Raspberry showed that it was using a IP4 address, but not the required static one.
With ifconfig I saw that the network interface was given a new name. In /etc/dhcpcd.conf I entered the same name to the network interface and finaly I got my static IP-address working again.

Saturday, December 2, 2023

Unable to upgrade after update to Bullseye

 I updated my Raspberry Pi from Buster to Bullseye. In my previous blog you could read that I had some issues starting Pi-hole ater the update.

I noticed that I also could not upgrade Raspberry OS completely. 

After a lot of Google-ing I found this post what was a working solution for me. LINK 

Wednesday, November 29, 2023

Pi-hole stopped working efter update to Bullseye



Yesterday I updated my Raspberry Pi to version 11 (Bullseye). The main usage for my Raspberry Pi is Pi-hole; a network-wide ad-blocker.

But that stopped working and could not be started because of the following error; "FTL failed to start due to failed to create listening socket for port 53: Address already in use".
With the command
sudo netstat -nltup | grep 'Proto\|:53 \|:67 \|:80 \|:471'
I figured out that a system component of Raspberry OS version 11 was bind to port 11; connmand.

Since that system component is optional, you can easily uninstall it with
sudo apt purge connman

After a reboot I was able to start my pi-hole again and could FTL (from Pi-hole) use port 53 again. 


Sunday, December 30, 2018

Pi-hole

Als je aan het surfen bent op het Internet wordt je overal bestookt met advertenties. Op sommige websites moet je haast zoeken naar de informatie die je daadwerkelijk zocht, omdat deze wordt overschreeuwd door de advertenties.

Voorheen loste ik dat op door de installatie van een 'Ad-blocker', echter dat moet je doen per apparaat en is voor het betreffende apparaat een behoorlijke vertraging van het Internet verkeer.

Via een collega kreeg ik de tip een Pi-hole te installeren. Dat heb ik nu een paar dagen in gebruik en dat werkt fantastisch.

Je hebt nodig een Raspberry Pi(met behuizing en voeding circa €60,-), een Raspbian image (gratis) als besturingssysteem, de Pi-hole software(gratis, maar donatie welkom) en wat tijd.

Groot voordeel is dat je - als alles werkt  - per apparaat niets hoeft te doen en je hele netwerk advertentie-vrij is.

Indien je privacy heel belangrijk vindt kan je ervoor kiezen om als extra functionaliteit van je Pi-hole een eigen DNS-server te maken. (info)
Dit heeft als voordeel dat partijen als Google minder inzicht krijgen in je surfgedrag. Ze zullen je alleen nog zien wanneer je een Google-dienst gebruikt, maar anders niet.

Voor mij was het de eerste ervaring met een Raspberry Pi, maar ben er heel tevreden mee.