Joy-Pi - Pi-Hole

From Embedded Lab Vienna for IoT & Security
Revision as of 09:39, 13 November 2019 by Mkoschuch (talk | contribs)
Jump to navigation Jump to search

Summary

Short writeup of using the Joy-Pi case with a Pi-Hole installation, used e.g. for the Open House demo

Requirements

  • Operating system: latest Raspbian
  • Packages: pihole


Description

Step 1

Install Raspbian and pihole according to their respective documentations

Raspbian Pi-Hole

Step 2

Currently the Raspi is configured to use the eduroam Wifi. In order to do so, modify the /etc/wpa_supplicant/wpa_supplicant.conf as follows:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=AT network={ ssid="eduroam" proto=RSN key_mgmt=WPA-EAP eap=PEAP identity="USER@HOST" password="PASSWORD" phase1="peaplabel=0" phase2="auth=MSCHAPV2" }

Since there is a bug in the wpa_supplicant >= 2.8 when trying to connect to enterprise Wifis, downgrade to 2.4 or later, under wpa_supplicant for Raspberry Pi

Connect using sudo wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

There is a Bash script in the /home/pi directory, periodically circling through different webpages (just using wget in an infinite while loop).

Access the Pi-Hole Frontend under pi.hole/admin

Used Hardware

Joy-Pi Box

Courses

Open House November 2019