Now that I have my home network setup as I would like, I've begun to add another layer, monitoring. Previously I've had issues with my Raspberry Pi locking up and going down, with me none the wiser. I needed some way to be notified with the Pi goes down so that I can bring things back up, since this device is my Pi-hole ad blocker and Unifi controller. The solution: Data Dog.
Data Dog (www.datadog.com) allows for remote logging to keep tabs on all types of usage stats for all of your devices. I started with just my Raspberry Pi, and it allows for historical charts of these common stats. The most useful feature I've found though, is alerts. I can set thresholds for when email alerts will be dispatched. For instance, I setup an alert so that after 60 seconds, if Data Dog has not received an update from my Raspberry Pi, an email is automatically sent to me that my Pi is DOWN. From this point, I can log in and diagnose my problem, which will (hopefully) result in another email letting me know the DOWN state has been resolved.
My plan is to add remote logging for all of my Unifi devices, but for now, I am just monitoring my Pi. Once I add logging to everything else I will write a follow up post highlighting these steps.
Nick Marchesi
Tuesday, February 12, 2019
Tuesday, January 29, 2019
Pi-Hole - The black hole for ads and tracking
After setting up my network, one of the best additions I've made was adding a Raspberry Pi to the networking running Pi-Hole (https://pi-hole.net/). This little computer running Pi-Hole will block all ads and tracking before they reach your device, lowering ad exposure and lowering bandwidth utilization on items that have no significance.
Many people have browser extension ad blockers (which at this point, I don't know how you can browse the internet without one), but some devices do not have this flexibility, namely gaming consoles and smart TVs. When these devices send a request for ad content, or try to 'phone home' with tracking data, the Pi-Hole stops the device in its tracks.
Once you install Pi-Hole, it gives you a nice dashboard as to what is happening on your network. From the below image, you can see ~7.5% of my current network traffic is advertising or tracking. unsurprisingly the most 'chatty' devices are Amazon tablets and Fire TV boxes, they constantly try to send usage data back to Amazon and load ads for the home screen.
With each new release, Pi-Hole adds new features, so it is definitely a project to keep an eye on. Additionally, it is not very resource intensive, so you can add a few more services to the same Raspberry Pi as well. I have mine running Pi-Hole, a Unifi controller, and Datadog agent for network metrics with no issues.
Many people have browser extension ad blockers (which at this point, I don't know how you can browse the internet without one), but some devices do not have this flexibility, namely gaming consoles and smart TVs. When these devices send a request for ad content, or try to 'phone home' with tracking data, the Pi-Hole stops the device in its tracks.
Once you install Pi-Hole, it gives you a nice dashboard as to what is happening on your network. From the below image, you can see ~7.5% of my current network traffic is advertising or tracking. unsurprisingly the most 'chatty' devices are Amazon tablets and Fire TV boxes, they constantly try to send usage data back to Amazon and load ads for the home screen.
With each new release, Pi-Hole adds new features, so it is definitely a project to keep an eye on. Additionally, it is not very resource intensive, so you can add a few more services to the same Raspberry Pi as well. I have mine running Pi-Hole, a Unifi controller, and Datadog agent for network metrics with no issues.
Thursday, September 7, 2017
Preparing a Home Network
As I prepare to move into my new house, I've begun to think about how I want my network configured. As part of the home customization, I made sure to add the appropriate CAT6 drops in every room, down to a central location in the basement.
The goal of my network is to have as many devices connected via a wired connection as possible. For the devices that must be wireless, I added 3 Ubiquti Unifi-AP access points, I'm installing one on each floor.
The great thing about the Ubiquiti line of networking equipment, is all the devices are managed by the Unifi software, which is running on my security gateway (USG). The Unifi software will automatically handle the power of the radios, and handoff between access points, making configuration a breeze. The USG also allows for advanced routing and deep packet inspection. This will be useful for me to get a bird's eye view of what is going on with my network at any given time.
My networking equipment in the basement will consist of a to be determined server that I can use to host VMs for any type of home lab setup I choose. The NAS will be determined later for backups and general storage. The Raspberry Pi will be running Pi-Hole which is a great little add on program to manage ad traffic on the network. Basically it has a running blacklist of known ad servers, and when devices query these known servers, they are redirected to localhost instead.
The slew of Raspberry Pis at the top of the diagram will be for whole home audio. These Pis will be running Shairport, which turns each device into an AirPlay receiver. The plan is to have each of these Pis attached to an audio sensing amplifier, so when I select a room on my iPhone, the Pi will start playing audio, and this in turn will power on the amp.
Future plans include installing a separate switch for a few security cameras, but this will be down the line, as what I have planned so far will take a bit to implement.
Below is a crude network diagram I made with a freebee online program. It's not pretty, but it gets the general idea across:
The goal of my network is to have as many devices connected via a wired connection as possible. For the devices that must be wireless, I added 3 Ubiquti Unifi-AP access points, I'm installing one on each floor.
The great thing about the Ubiquiti line of networking equipment, is all the devices are managed by the Unifi software, which is running on my security gateway (USG). The Unifi software will automatically handle the power of the radios, and handoff between access points, making configuration a breeze. The USG also allows for advanced routing and deep packet inspection. This will be useful for me to get a bird's eye view of what is going on with my network at any given time.
My networking equipment in the basement will consist of a to be determined server that I can use to host VMs for any type of home lab setup I choose. The NAS will be determined later for backups and general storage. The Raspberry Pi will be running Pi-Hole which is a great little add on program to manage ad traffic on the network. Basically it has a running blacklist of known ad servers, and when devices query these known servers, they are redirected to localhost instead.
The slew of Raspberry Pis at the top of the diagram will be for whole home audio. These Pis will be running Shairport, which turns each device into an AirPlay receiver. The plan is to have each of these Pis attached to an audio sensing amplifier, so when I select a room on my iPhone, the Pi will start playing audio, and this in turn will power on the amp.
Future plans include installing a separate switch for a few security cameras, but this will be down the line, as what I have planned so far will take a bit to implement.
Below is a crude network diagram I made with a freebee online program. It's not pretty, but it gets the general idea across:
Subscribe to:
Comments (Atom)
Data Dog - 'top dog' in monitoring
Now that I have my home network setup as I would like, I've begun to add another layer, monitoring. Previously I've had issues with ...
-
As I prepare to move into my new house, I've begun to think about how I want my network configured. As part of the home customization, I...
-
After setting up my network, one of the best additions I've made was adding a Raspberry Pi to the networking running Pi-Hole (https://pi...
-
Now that I have my home network setup as I would like, I've begun to add another layer, monitoring. Previously I've had issues with ...
