Author: john

  • pi-hole in a Container

    Man, what a struggle! I’ve been running close to the datacap for most of the year and figured, if I block the ads, and particularly the video ads, I gotta same some data. You can see how I’ve slowly been building out my containerized workload; this should be a snap!

    I found a ton of great resources that were collected into my final Docker Compose file:

    So I gathered snippets of this and that and made a configuration for myself. But when I tried to deploy the Stack, only errors! First was the volumes, totally messed up but reread my page on it and looked at the Wundertech example. The container would start but I couldn’t reach it. I learned that having both MACVLAN and Bridge network would allow Portainer/Docker to talk to the container while giving me the unique IP needed for the domain controller to point towards on Port 53. Then I watched this guy. He mentioned, in passing, how he selected the values for his MACVLAN network.

    Well, in the end, I was trying to be too fancy. When I wrote the subnet description to fit in between my Unifi gateway address on 192.168.1.1 and the majority of my servers on 192.168.1.100+, it worked. This matched the subnet already on eth0 of my docker host. This seems to explain the technical bits of why – https://github.com/moby/libnetwork/blob/master/docs/macvlan.md. When I was trying to use 192.168.60.0/24, it was not routable. There might have been a solution manually adding a route on the gateway, that’s outside of my knowledge now.

    If you look at the github readme in my repo, you can see a diagram of what I made. Once the container was up, could talk to the internet, could talk to the local network, a change to the DC to only use the PiHole was trivial. Last, I added a DNS entry so I can find the webpage for managing it. In the first day, it’s dropped 25-30% of all DNS lookups, mostly known ad and tracking URL. In a few weeks I’ll know if I actually get any data savings…

    The only thing to edit, once this was running, adding a jetpack URL to the white list so I could even get to the editor page in WordPress.

  • Password Generator

    I was playing with this a year ago when I started a new job. The boss said to use two words, a number, and a symbol- this would make a easy to remember password for users, including us! With that in mind, I grabbed a list of 4 and 5 letter words. Put them in an array and built a little something in PowerShell to spit out passwords.

    Then, I thought, why not put this on the web?! With Cloudflare workers, I can put some javascript out there, run it on their servers, fast connections, easy to manage- why not! So I built https://passwords.chinkes.com/. It was a page that pulled the password from a static list. There was some API access and you could chose to have symbols or not, numbers or not, or 6 letter words for a longer password.

    After 9 months, I returned to it and was able to add the slider to allow dynamic password lengths, as well as checkboxes to subtract symbols or numbers from the password.

    I hope you can make a better password with this!

  • Spaceport #2

    Once again, I had the small, yellow ship laying around. It was from 9 years ago and uses some interesting parts.

    Once I upgraded the stand for another little ship, I thought I should make something for this one too. I had tried this before, using the Technic #3 angle connector with a girder, this time I suspended the whole platform from it. Inspired by the tensegrity stuff from last year I only added the chain at the back to balance the whole thing out. Without the weight of the ship on the front, the platform flips up!

    Once I had that figured out it was just a matter of adding a few things to make it a spaceport. The tanks seem obvious but didn’t throw the balance out, some technicians to manage them with a fireman to inspect it all. I found some interesting non-human minifigs and made a walkway for them on the other side. With some more tanks and a ladder, the base was complete too.

    Now to see how long the connection holding everything up will last…