Giter VIP home page Giter VIP logo

udm-pro-network's Introduction

Prosumer network configuration using Unifi/Ubiquiti gear

Ubiquiti is a creative and proliferate producer of really cool networking gear at reasonably attractive prices. But what they are ahead in hardware and software, they lack on documentation. The basics are documented in their help pages, but many of the more involved networking configurations have gaps.

This repo was initially intended to capture and document my own home network's configuration. Hope is, this will also help others in their quest for a more solid networking experience.

Goals

  • run a reliable, secure and well performing home network with little complaints from my customer base (aka spouse & family)
  • design with Principle of Least Privilege (PoLP). One definition by NIST, see page 91
  • keep my customer base reasonably sheltered from online privacy mining and spying.
  • allow me to tinker and learn, hence this network setup is indeed over-engineered. A simple modern ISP's router & gateway could get the basic job done (but would be less fun to interact with).

Design choices

Disclaimer: I have no relationship with, no sponsoring from nor financial interests in Ubiquiti, I'm just a mostly happy customer of their products.

About ~10 years ago, I discovered Ubiquiti's prosumer networking hardware that is indeed disruptive, for the price they are able to offer their hardware. My journey with UI started with just an AP or 2, combined with an EdgeRouterLite 3, adding a couple PoE capable switches to it over time. This summer I finally took the plunge to replace my ERL3 (which started to exhibit some thermal stability issues) with the UDM Pro Unifi Dream Machine Pro

Basic topology

This is the current physical wired topology, with the UDM-Pro as the gateway, and one PoE-enabled UI switch on each floor. House ethernet wiring is good for up to 1 Gbit/s, with all runs made in CAT5e; same for patch cables.

backhaul topo

Network segmentation

Following the Least Privilege principle, the LAN is separated into multiple logical segments, using VLANs:

VLAN CIDR Medium SSID Purpose
1 10.0.90.0/24 Wired 1GbE n/a backhaul, management
10 10.0.10.0/24 Wired/Wireless jenni.ap trusted home net
20 10.0.20.0/24 Wireless jenni.guest guests, internet only
30 10.0.30.0/24 Wireless jenni.iot IoT devices, internet only
40 10.0.40.0/24 Wireless jenni.media media devices, internet only
50 10.0.50.0/24 Wired n/a PoE camera devices, no internet

For my network, I chose ranges from the 10/8 private address space, feel free to pick different ranges from RFC1918, e.g. from the 172.16/12 or 192.168/16 ranges. I find it useful to reflect the sub range, e.g. .10.*, to also be the VLAN id, but there is no technical need to do so.

Note the 5 switches shown below are purely logical; the physical HW has the UDM and the 2 switches above. By default, the UDM Pro allows full inter-VLAN access, but this site's configuration will by default block any inter-VLAN connectivity, and only allow the trusted home (10) VLAN to initiate connections to the IoT (30) and media (40) VLANs. Access from/to the management (1) LAN and trunk is not allowed from any VLAN; sole exception is allowing access to the UDM-P itself from the home (10) (10.0.10.1).

Details see Firewall

logical network diagram created with: https://lucid.app/documents/view/2e7294c0-6628-45b6-8b2d-1b2a5b47b208

Configuration

udm-pro-network's People

Contributors

davidjenni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

udm-pro-network's Issues

One of the firewall rules is not allow adoption

Loved the design, as a non-networking person this allowed me to just focus on the tech part not the "how will I segment this and why" so thank you.

I noticed when I had any of the drop rules on I could not adopt. Of course to fget to a remediation I just allowed all on lanlocal and lanin. Curious what rule would allow this. I have the us-24-250w switch after my udm-pro on an SFP port. I have really set the port profiles yet, everything is all less the Aps and a few devices on home network.

What would you recomend for a plex server that serves some users remotely but also locally.

Thank you in advanced, I plan to add any changes to my fork and and updates I have.

Will poke around this tomorrow and try and find the correct port and update on my fork.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.