Search the Community
Showing results for tags 'logging'.
Found 1 result
PiRaspPi-Hole config quide: Howdy and welcome to another thread. I have a history of not being a fan of advertisements and do not run those banners on this site. Besides a security concern, I think advertisement gets really creepy online. Pi-Hole is an Operating System with dns capabilties and use of adblocking lists. The added benefit of the request being denied even without plugin-based web browsing, is pretty handy. Before you install, be sure if you are using a RaspberryPi or whatever device, that your user password is one of your own. You do not want to go default with your LAN traffic. If you wanna log a fun time, you can use one of these for short-term logging a little CTF monitoring style. Logs are configured to purge after a few days on your standard Pi-Hole install. Please be sure to update your OS image with latest patches via said package manager. In my case I set the primary network connection to a static address. I have the service connection IP address details to use the actual router as DNS server. Since all your other network DNS will be set to the fixed IP Address you bound to your Pi-Hole installed device. SSH is likely disabled. I like to administer my SSH session by serial to usb in the case of my Raspberry Pi installs. Follow the install guide and advisory on their site about the bash | pipe install. Quick comes at a trade off when you do not review the install process part for part. If you go for the easy install and read the disclaimer, you can run the single line install: curl -sSL https://install.pi-hole.net | bash This thread is for administering and keeping yours updated, as with my configuration I ran into update issues using just the one connection. Details ahead cover enabling a second connection to fetch updates, since you will have the primary network connection with a set IP address that handles DNS requests handed off from your router / main DNS device on your network. To do updates to the OS and Pi-Hole local web services device / OS, I disable the service network connection to resolve conflicts of web requests to get out locally. All the LAN clients will be fine getting pages. In this case, I suspect the localhost calls in the Pi-Hole logs relate to my network layout and the device being bound to serve back to itself. When logged into the [deviceIP]/admin configuration page I would also get failures to resolve list update servers. Having plugged in a second USB NIC or using Wireless as an update connection, I ran the following commands to handle my network adapters. Turning off the static address service NIC. In most cases likely eth0 as shown below sudo ifconfig eth0 down Do some pings and the like to see they should now resolve. Do your updates etc for the OS. In my case, Raspbian on a Pi 3. Once those finish, load up the Web Admin panel for your Pi-hole install. Get your ip address for the active network connection with: ifconfig Connect to that IP address in a web browser and add '/admin' into the address bar at the end of the IP Address without the quotes around the path. Login with your admin password to the admin panel and you should now be able to see updates are pending. You need to start with the FTL update. To do this, return to your SSH session. As I mentioned I am working with serial over USB, but you can enable SSH over network if you so desire. One more service for a network heavy component, so choose of your own accord in concern to security to conveinence. On that SSH console, run: pihole -up Wait for the updater to get and deploy the new FTL version. You will likely also be treated to the Web Interface and Pi-Hole version also being to current revisions. Great! Almost updated and running live AdBlocking again. Still on your console, seeing the update completed you want to turn back on the main network connection we disabled for updating. sudo ifconfig eth0 up Overviewing network setup above: Main Internet router will be your DNS server on the Pi-Hole device. Manually set client DNS or change your DHCP server to set client DNS to the static address of your Pi-Hole install. (192.168.0.1 default-ish router) Check your current IP config to get details if you do not know current network base configuration. On the Pi-Hole install, set the primary network adapter to an address in that subnet (say 192.168.0.10) Make sure DHCP server /or/ router will not also try to assign that address in it's pool. The Pi-Hole DNS primary will be set to your local router (as above default-ish router 192.168.0.1) I hope to have avoided huge gaps or inflected confusion in this thread. Jolly adblocking. Even if you like making money from it, you have to know it is a vulnerable vector and kind of a shaky market. I'm not here to tell you what to do, I'm sharing details to help block them on places that run them without respect to visitors.