# Building a Home Lab Network with UniFi, Docker, VLANs, and SSH Authentication

DevFeed: [Building a Home Lab Network with UniFi, Docker, VLANs, and SSH Authentication](<https://devfeed.tech/articles/home-lab-is-the-dopest-lab-35171.md>)

Original publisher: [Read original article](<https://blog.jessfraz.com/post/home-lab-is-the-dopest-lab/>)

Published: 2017-12-03T15:25:24Z

Content type: opinion

Language: en

Sources: [Jessie Frazelle](<https://devfeed.tech/sources/jessie-frazelle.md>)

Topics: [Homelab](<https://devfeed.tech/topics/homelab.md>), [networking](<https://devfeed.tech/topics/networking.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [ssh](<https://devfeed.tech/topics/ssh.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>)

Tags: [docker](<https://devfeed.tech/tags/docker.md>), [home-lab](<https://devfeed.tech/tags/home-lab.md>), [networking](<https://devfeed.tech/tags/networking.md>), [poe](<https://devfeed.tech/tags/poe.md>), [ssh](<https://devfeed.tech/tags/ssh.md>), [unifi](<https://devfeed.tech/tags/unifi.md>)

## AI overview

A personal account of redesigning a home lab network with UniFi hardware, a Docker-based controller, VLAN isolation, Intel NUCs, and SSH authentication using YubiKeys.

## Source excerpt

I always have some random side project I am working on, whether it is making the world's most over engineered desktop OS all running in containers or updating all my Makefiles to be the definition of glittering beauty. This post is going to go over I how I recently redid all my home networking and ultimately how I got to here: ssh-ed into my dev NUC from a Pixelbook 39,000 feet, authenticated from an ssh key on a yubikey, the future is dope AF -- jessie frazelle (@jessfraz) November 22, 2017 I used Unifi for everything and this is what I got: Access Point: AP AC SHD Switch: Switch 16-150W Router: Security Gateway It was so good looking when it arrived. My network is about to get real... fast!!! This switch is (dare I say it) sexy as hell. pic.twitter.com/fmaLkW2AFB -- jessie frazelle (@jessfraz) November 16, 2017 I love fun side projects so obviously I set it all up right away. You need a "controller" to have the nice Unifi UI. You can buy a cloud key but I wanted to run the controller in container just like Dustin Kirkland. So I set about writing a Dockerfile for the controller and it is now at r.j3ss.co/unifi. You can run it with: docker run -d --restart always \ -v /etc/localtime:/etc/localtime:ro \ --name unifi \ --volume path/to/where/you/want/your/data:/config \ -p 3478:3478/udp \ -p 10001:10001/udp \ -p 8080:8080 \ -p 8081:8081 \ -p 8443:8443 \ -p 8843:8843 \ -p 8880:8880 \ r.j3ss.co/unifi The web UI is at https://{ip}:8443. To adopt an access point, and get it to show up in the software you will need to ssh into the AP and run: ssh ubnt@$AP-IP mca-cli set-inform http://$address:8080/inform Then I went crazy and made sure everything that needed to talk to each other was on the same subnet and everything else was isolated into it's own subnet. I used VLANs to do this. Also be careful not to subnet yourself into a hole ;) me just now: "this was my fear! sub-netting myself into a hole!" -- jessie frazelle (@jessfraz) November 30, 2017 The best thing about these APs a