<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Networking on myl3z.me</title><link>https://myl3z.me/docs/network/</link><description>Recent content in Networking on myl3z.me</description><generator>Hugo</generator><language>en</language><atom:link href="https://myl3z.me/docs/network/index.xml" rel="self" type="application/rss+xml"/><item><title>Handing Out Pi-hole via DHCP (UDM)</title><link>https://myl3z.me/docs/network/udm-dhcp-dns/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://myl3z.me/docs/network/udm-dhcp-dns/</guid><description>&lt;h1 id="handing-out-pi-hole-via-dhcp"&gt;Handing Out Pi-hole via DHCP&lt;a class="anchor" href="#handing-out-pi-hole-via-dhcp"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;A DNS server nobody asks filters nothing. After installing
&lt;a href="https://myl3z.me/docs/linux/pihole/"&gt;Pi-hole&lt;/a&gt; the service is running, but every device in the
house still gets told the gateway&amp;rsquo;s address as its nameserver when it joins, and it obediently
uses it. The filter sits next to the traffic and watches.&lt;/p&gt;
&lt;p&gt;The place where this is decided is a single field in the gateway&amp;rsquo;s DHCP server — on a UniFi
Dream Machine that means the network configuration, not the box Pi-hole runs on.&lt;/p&gt;</description></item><item><title>Understanding VLANs</title><link>https://myl3z.me/docs/network/vlan-grundlagen/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://myl3z.me/docs/network/vlan-grundlagen/</guid><description>&lt;h1 id="understanding-vlans"&gt;Understanding VLANs&lt;a class="anchor" href="#understanding-vlans"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;A switch forwards frames by MAC address and knows nothing about networks. Everything attached
to it sits in the same broadcast domain: an ARP request reaches every port, every device sees
every other one. That is precisely what segmentation ends — and a VLAN is the means by which a
single switch pretends to be several.&lt;/p&gt;
&lt;h2 id="the-tag"&gt;The tag&lt;a class="anchor" href="#the-tag"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The basis is IEEE 802.1Q: four additional bytes in the Ethernet frame, right behind the source
MAC. Among other things they carry twelve bits of VLAN ID, so 4094 usable numbers — &lt;code&gt;0&lt;/code&gt; and
&lt;code&gt;4095&lt;/code&gt; are reserved.&lt;/p&gt;</description></item><item><title>Network Layout with VLANs</title><link>https://myl3z.me/docs/network/vlan-layout/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://myl3z.me/docs/network/vlan-layout/</guid><description>&lt;h1 id="network-layout-with-vlans"&gt;Network Layout with VLANs&lt;a class="anchor" href="#network-layout-with-vlans"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;The network used to consist of a single segment: &lt;code&gt;10.10.0.0/16&lt;/code&gt;, everything inside it, from the
gateway through the thin client to the television. That works as long as you own one machine.
It also means every device reaches every other one directly — the robot vacuum reaches the work
laptop, the TV reaches the UDM&amp;rsquo;s management interface.&lt;/p&gt;
&lt;p&gt;Since 23 August 2026 there are six segments. This note describes the layout and the reasoning
behind it; the rebuild procedure is under
&lt;a href="https://myl3z.me/docs/network/unifi-vlan-umbau/"&gt;Setting Up VLANs on the UDM&lt;/a&gt;, the terminology
under &lt;a href="https://myl3z.me/docs/network/vlan-grundlagen/"&gt;Understanding VLANs&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Setting Up VLANs on the UDM</title><link>https://myl3z.me/docs/network/unifi-vlan-umbau/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://myl3z.me/docs/network/unifi-vlan-umbau/</guid><description>&lt;h1 id="setting-up-vlans-on-the-udm"&gt;Setting Up VLANs on the UDM&lt;a class="anchor" href="#setting-up-vlans-on-the-udm"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;The order in which the rebuild from a flat &lt;code&gt;10.10.0.0/16&lt;/code&gt; to six segments actually worked —
including the two places where the planned order did not. The layout behind it is under
&lt;a href="https://myl3z.me/docs/network/vlan-layout/"&gt;Network Layout with VLANs&lt;/a&gt;, the terminology under
&lt;a href="https://myl3z.me/docs/network/vlan-grundlagen/"&gt;Understanding VLANs&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="first-shrink-the-old-network"&gt;First: shrink the old network&lt;a class="anchor" href="#first-shrink-the-old-network"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The plan was to create the new networks while leaving the existing one untouched, and to shrink
the old network to &lt;code&gt;/24&lt;/code&gt; only at the very end. That cannot be sustained.&lt;/p&gt;</description></item><item><title>Firewalling Between Segments</title><link>https://myl3z.me/docs/network/firewall-policies/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://myl3z.me/docs/network/firewall-policies/</guid><description>&lt;h1 id="firewalling-between-segments"&gt;Firewalling Between Segments&lt;a class="anchor" href="#firewalling-between-segments"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Segments on their own separate nothing. Once the networks are routed — and they are, otherwise
nobody reaches the internet — the ruleset on the gateway alone decides who reaches whom. The
VLAN only ensures the traffic passes the gateway at all and can be judged there.&lt;/p&gt;
&lt;h2 id="the-base-rule"&gt;The base rule&lt;a class="anchor" href="#the-base-rule"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Deny by default, permit by exception. Every segment may reach the internet, none may reach
another — and departures from that need a concrete reason.&lt;/p&gt;</description></item><item><title>Mapping WLANs to VLANs</title><link>https://myl3z.me/docs/network/wlan-ssid-vlan/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://myl3z.me/docs/network/wlan-ssid-vlan/</guid><description>&lt;h1 id="mapping-wlans-to-vlans"&gt;Mapping WLANs to VLANs&lt;a class="anchor" href="#mapping-wlans-to-vlans"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;On a wire the switch port decides which segment a device lands in. On WLAN there is no port —
there the SSID decides. Every wireless network maps to exactly one VLAN, and whatever a device
associates with determines where it sits.&lt;/p&gt;
&lt;h2 id="one-ssid-per-segment"&gt;One SSID per segment&lt;a class="anchor" href="#one-ssid-per-segment"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;SSID&lt;/th&gt;
					&lt;th&gt;Network&lt;/th&gt;
					&lt;th&gt;Particularity&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;xlab&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;Clients (20)&lt;/td&gt;
					&lt;td&gt;WPA3/WPA2 mixed, both bands&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;xlab-IoT&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;IoT (30)&lt;/td&gt;
					&lt;td&gt;2.4 GHz only, WPA2, PMF off&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;xlab-Kids&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;Kids (25)&lt;/td&gt;
					&lt;td&gt;like clients, plus time windows&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;xlab-Guests&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;Guests (40)&lt;/td&gt;
					&lt;td&gt;client device isolation&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The mapping lives in UniFi under &lt;em&gt;Settings → WiFi →&lt;/em&gt; SSID &lt;em&gt;→ Network&lt;/em&gt;. Depending on the version
the field is called &lt;em&gt;Network&lt;/em&gt; or &lt;em&gt;VLAN&lt;/em&gt;; it always means the same thing.&lt;/p&gt;</description></item></channel></rss>