<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-AU" xmlns:media="http://search.yahoo.com/mrss/">
  <id>https://david.gardiner.net.au/tags/Networking.xml</id>
  <title type="html">David Gardiner - Networking</title>
  <updated>2026-06-16T11:47:12.616Z</updated>
  <subtitle>Blog posts tagged with &apos;Networking&apos; - A blog of software development, .NET and other interesting things</subtitle>
  <rights>Copyright 2026 David Gardiner</rights>
  <icon>https://www.gravatar.com/avatar/37edf2567185071646d62ba28b868fab?s=64</icon>
  <logo>https://www.gravatar.com/avatar/37edf2567185071646d62ba28b868fab?s=256</logo>
  <generator uri="https://github.com/flcdrg/astrojs-atom" version="3">astrojs-atom</generator>
  <author>
    <name>David Gardiner</name>
  </author>
  <link href="https://david.gardiner.net.au/tags/Networking.xml" rel="self" type="application/atom+xml"/>
  <link href="https://david.gardiner.net.au/tags/Networking" rel="alternate" type="text/html" hreflang="en-AU"/>
  <category term="Networking"/>
  <category term="Software Development"/>
  <entry>
    <id>https://david.gardiner.net.au/2026/06/switchy-switch</id>
    <updated>2026-06-16T20:30:00.000+09:30</updated>
    <title>The network switch that keeps switching more than it should</title>
    <link href="https://david.gardiner.net.au/2026/06/switchy-switch" rel="alternate" type="text/html" title="The network switch that keeps switching more than it should"/>
    <category term="Hardware"/>
    <category term="Networking"/>
    <category term="Synology"/>
    <published>2026-06-16T20:30:00.000+09:30</published>
    <summary type="html">How I accidentally discovered that one of my home network switches seems unable to decide who its upstream
device should be.</summary>
    <content type="html">&lt;p&gt;A couple of months ago a suggestion came up at home about getting some kind of low-powered light in the hallway for people who might need to go to the bathroom in the middle of the night. Not an unreasonable request - maybe some LED strip lights would work? And then I wondered, how about adding a motion sensor? And then could you integrate it with some home automation of some kind? And that&apos;s how I ended up completely distracted looking at &lt;a href=&quot;https://www.home-assistant.io/&quot;&gt;Home Assistant&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;Installing it on our Synology NAS seemed the logical choice, and it was pretty straightforward, going down the Docker container route. I clicked around the UI and it looked interesting, but didn&apos;t go much further (and I must admit by that time I&apos;d forgotten the original reason for heading down this rabbit hole).&lt;/p&gt;
&lt;p&gt;Then a couple of weeks ago we got a new car (a Kia EV5) and it has an app that you can use to check current status and some limited remote control options. Given the need to charge it at home started me off on a new area of research for home charging devices, and also considering the current state of our home solar panels - whether to upgrade them, or at least figure out how to replace some that have had to be taken out of service due to impact damage.&lt;/p&gt;
&lt;p&gt;That inspired me to go back and take another look at my Home Assistant instance, and see if I could add some &apos;integrations&apos; with some of the existing networked devices we already have. It turns out our current model solar panel inverter (a &lt;a href=&quot;https://www.fronius.com/en-au/australia/solar-energy/home-owners&quot;&gt;Fronius&lt;/a&gt;) is supported, as well as the &lt;a href=&quot;https://techspecs.ui.com/unifi&quot;&gt;Ubiquiti UniFi&lt;/a&gt; networking gear I have installed. That is pretty cool.&lt;/p&gt;
&lt;p&gt;And that is a very long way of getting to the point of this blog post - once I had these devices integrated, I noticed in Home Assistant&apos;s &lt;strong&gt;Activity&lt;/strong&gt; page, that there were heaps of these entries being logged for my UniFi &lt;a href=&quot;https://www.amazon.com.au/Ubiquiti-Flex-Managed-Gigabit-Switch/dp/B08VRV9PWD?&amp;amp;linkCode=ll2&amp;amp;tag=flcdrg07-22&amp;amp;linkId=0dfeac74af4a36b6280c22ca74a2afad&amp;amp;ref_=as_li_ss_tl&quot;&gt;USW Flex Mini&lt;/a&gt; switch:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/home-assistant-activity-uplink-mac.8u9k_5cq_Z96Tnj.webp&quot; alt=&quot;Screenshot of Activity page in Home Assistant showing USW Flex Mini Uplink MAC address changing frequently&quot; /&gt;&lt;/p&gt;
&lt;p&gt;For some reason, either the Flex Mini switch itself, or my &lt;a href=&quot;https://www.amazon.com.au/Ubiquiti-UniFi-Cloud-Gateway-Ultra/dp/B0D8PSW2BZ?&amp;amp;linkCode=ll2&amp;amp;tag=flcdrg07-22&amp;amp;linkId=39ad4320d21517a1048ccd7df111cbd5&amp;amp;ref_=as_li_ss_tl&quot;&gt;UniFi Cloud Gateway Ultra&lt;/a&gt; thinks that the uplink MAC address for the switch is changing every minute. That is really weird.&lt;/p&gt;
&lt;p&gt;The physical arrangement of networking hardware in our home looks roughly like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
graph TD;
    ISP --&amp;gt; GW
    GW[Cloud Gateway Ultra]
    click GW href &quot;https://www.amazon.com.au/Ubiquiti-UniFi-Cloud-Gateway-Ultra/dp/B0D8PSW2BZ?&amp;amp;linkCode=ll2&amp;amp;tag=flcdrg07-22&amp;amp;linkId=39ad4320d21517a1048ccd7df111cbd5&amp;amp;ref_=as_li_ss_tl&quot; &quot;Cloud Gateway Ultra on Amazon&quot; _blank
    GW --&amp;gt; TP

    TP[TP-Link Switch]
    TP --&amp;gt; PR

    LT(UAP AC Lite)
    TP --&amp;gt; LT

    PR(AC Pro)
    click PR href &quot;https://www.amazon.com.au/UAP-AC-PRO-UBIQUITI-Ac1750-Access-Injector/dp/B07JDNS774?&amp;amp;linkCode=ll2&amp;amp;tag=flcdrg07-22&amp;amp;linkId=bfe6e1c092cbf6dbf88d14b28e295ed4&amp;amp;ref_=as_li_ss_tl&quot; &quot;AC Pro&quot; _blank

    USW(USW Flex Mini)
    click USW href &quot;https://www.amazon.com.au/Ubiquiti-Flex-Managed-Gigabit-Switch/dp/B08VRV9PWD?&amp;amp;linkCode=ll2&amp;amp;tag=flcdrg07-22&amp;amp;linkId=0dfeac74af4a36b6280c22ca74a2afad&amp;amp;ref_=as_li_ss_tl&quot; &quot;USW Flex Mini switch on Amazon&quot; _blank
    TP --&amp;gt; USW
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I had to do some hunting within the Cloud Gateway UI to figure out what the devices where that corresponded to the two MAC addresses.&lt;/p&gt;
&lt;p&gt;One was indeed the gateway (which is what I would expect). The second, surprisingly turned out to be &lt;a href=&quot;https://www.amazon.com.au/UAP-AC-PRO-UBIQUITI-Ac1750-Access-Injector/dp/B07JDNS774?&amp;amp;linkCode=ll2&amp;amp;tag=flcdrg07-22&amp;amp;linkId=bfe6e1c092cbf6dbf88d14b28e295ed4&amp;amp;ref_=as_li_ss_tl&quot;&gt;AC Pro wireless access point&lt;/a&gt;. That doesn&apos;t make a lot of sense - it&apos;s a wireless access point. It should not be acting as the upstream for a wired device.&lt;/p&gt;
&lt;p&gt;It&apos;s funny though. Once you&apos;re paying attention to something, you often notice other things that have probably been there the whole time.&lt;/p&gt;
&lt;p&gt;Switching to the Cloud Gateway UI and bringing up the &lt;strong&gt;Network&lt;/strong&gt; page, I noticed something interesting.&lt;/p&gt;
&lt;p&gt;At first it looked as I would have expected:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/gateway-network1.1E1pG1Li_2UGfQ.webp&quot; alt=&quot;Screenshot from Cloud Gateway Network page with expected layout&quot; /&gt;&lt;/p&gt;
&lt;p&gt;But then while on that page it updated and woah! That lines up with those logs!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/gateway-network2.1r40Rzbb_ZC8CXu.webp&quot; alt=&quot;Screenshot from Cloud Gateway Network page with unexpected layout&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Both the Flex Mini switch and the AC Pro access point use Power over Ethernet (PoE), and the &lt;a href=&quot;https://www.amazon.com.au/TP-Link-Gigabit-Ethernet-Unmanaged-TL-SG1008P/dp/B00BP0SSAS?th=1&amp;amp;linkCode=ll2&amp;amp;tag=flcdrg07-22&amp;amp;linkId=6bbad2b757ca1431cfe8c2b8e50ccbfc&amp;amp;ref_=as_li_ss_tl&quot;&gt;TP-Link switch&lt;/a&gt; provides that on some of its ports so I had them both plugged into that.&lt;/p&gt;
&lt;p&gt;The TP-Link is not a managed switch. It is essentially &apos;invisible&apos; to other devices on the network (notice how it doesn&apos;t show up on those Gateway Network diagrams above), so I wonder if that may be relevant?&lt;/p&gt;
&lt;p&gt;To test this theory, I changed the cables so that the Flex Mini is plugged directly into the Cloud Gateway. But as the gateway doesn&apos;t provide PoE I needed to power the Mini directly through its USB-C port.&lt;/p&gt;
&lt;p&gt;Making that change, and now the Cloud Gateway&apos;s Network page reverts back to the expected layout and doesn&apos;t change. Home Assistant&apos;s Activity log also becomes a lot quieter.&lt;/p&gt;
&lt;p&gt;That seems to have solved the problem. I&apos;d really prefer to keep using PoE for the Flex Mini switch, but I suspect to do that in a reliable way might mean replacing the unmanaged TP-Link switch with a newer managed one - something like the UniFi &lt;a href=&quot;https://www.amazon.com.au/Ubiquiti-UniFi-Switch-8-Port-Network/dp/B0C6BPKXDF?&amp;amp;linkCode=ll2&amp;amp;tag=flcdrg07-22&amp;amp;linkId=5a4b1ea1f998e5eb75850909842534ac&amp;amp;ref_=as_li_ss_tl&quot;&gt;USW Lite 8&lt;/a&gt; or &lt;a href=&quot;https://www.amazon.com.au/Ubiquiti-Ultra-8-Port-Network-Switch/dp/B0CR1YNLXC?&amp;amp;linkCode=ll2&amp;amp;tag=flcdrg07-22&amp;amp;linkId=a2f9311298976c19d21acec1f9d7eb81&amp;amp;ref_=as_li_ss_tl&quot;&gt;USW Ultra&lt;/a&gt;. Except it does seem the price jumps quite a bit when you go from 5 ports to 8. Maybe I&apos;ll stick with the USB-C power option for now.&lt;/p&gt;
&lt;p&gt;Amazon affiliate links&lt;/p&gt;
</content>
    <media:thumbnail url="https://david.gardiner.net.au/_astro/unifi-usw-flex-mini-00.BEVh-cO7.jpg" width="493" height="180"/>
    <media:content medium="image" url="https://david.gardiner.net.au/_astro/unifi-usw-flex-mini-00.BEVh-cO7.jpg" width="493" height="180"/>
  </entry>
  <entry>
    <id>https://david.gardiner.net.au/2024/08/fttp</id>
    <updated>2024-08-24T08:08:00.000+09:30</updated>
    <title>Farewell FTTN, Hello FTTP</title>
    <link href="https://david.gardiner.net.au/2024/08/fttp" rel="alternate" type="text/html" title="Farewell FTTN, Hello FTTP"/>
    <category term="Internet"/>
    <category term="Networking"/>
    <published>2024-08-24T08:08:00.000+09:30</published>
    <summary type="html">An account of upgrading home internet from FTTN to FTTP, including installation and early impressions.</summary>
    <content type="html">&lt;p&gt;It&apos;s all happening here on the Internet front. Last week &lt;a href=&quot;/2024/08/leaptel&quot;&gt;I switched ISPs&lt;/a&gt;, and today we&apos;ve upgraded from copper to fibre (or &apos;fiber&apos; for North Americans!). I had a few concerns about how it was going to go, but TL;DR it went really well.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/house-diagram.StZyP_Tg_22D9pm.webp&quot; alt=&quot;Diagram of pit, existing conduit into house, and storeroom at back of house&quot; /&gt;&lt;/p&gt;
&lt;p&gt;First off, the existing conduit that runs to the house is pretty narrow, so I was worried that it wouldn&apos;t be suitable for pulling the fibre, in which case they&apos;d likely need to install a new conduit - digging up the front garden and maybe either cutting through our concrete path or lifting up lots of pavers. Messy and disruptive options.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/conduit-before.CrUEyh6A_fXTnC.webp&quot; alt=&quot;Existing conduit with copper cable&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Secondly, when NBN fibre is installed, they install two boxes. One on the outside of the house (the &apos;NBN utility box&apos;), and the second inside (the &apos;NBN connection box&apos; which terminates the fibre and gives you an Ethernet port to plug into). Ideally I really wanted the latter to be located right up the back of our house in a storeroom where all my other networking gear lives. However it&apos;s a fair distance internally so I wasn&apos;t sure if they would agree to go that far.&lt;/p&gt;
&lt;p&gt;Step one was locating the small communications pit that was hiding in our front garden under quite a few layers of leaves and tree bark. I didn&apos;t even know this existed until the initial NBN survey of our street almost two years ago uncovered it. It&apos;s roughly under the big stick in the photo 😀.
&lt;img src=&quot;https://david.gardiner.net.au/_astro/hidden-pit.Ct6jmYPM_GT8nB.webp&quot; alt=&quot;Somewhere under here is a communications pit!&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The NBN technicians tested the existing conduit that runs from this pit up to the house for blockages by squirting some water from the hose down it. I gather this was successful, so they were happy that the conduit was usable.&lt;/p&gt;
&lt;p&gt;The external box was mounted on the outside wall just above where the old conduit came out of the ground. The old copper wire was kept in place. In my case the copper goes into the wall cavity via a brick air vent and up to the fascia underneath the roof gutter where there&apos;s a little box that then connects to the internal telephony wiring (in my case I had a &lt;a href=&quot;/2006/10/central-splitter-installed&quot;&gt;central splitter&lt;/a&gt; just inside the roof and then CAT5 cabling running back up to the aforementioned storeroom).&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/nbn-utility-box-installation.BOmdlsGP_Z1Fj0x1.webp&quot; alt=&quot;NBN utility box being installed on exterior wall&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Rather than pulling the fibre up through the wall cavity following the copper line (I suspect it&apos;s probably too risky getting a kink in the fibre), they added extra conduit runs up to the roof and it enters the roof space.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/nbn-utility-box-complete.BH6D7J0X_ZeBMHF.webp&quot; alt=&quot;NBN utility box completed&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Crawling around inside our roof is not fun, but they managed to get the fibre all the way over to the storeroom and used an existing hole in the ceiling (from when I&apos;d previously run network cables to two wireless access). If I&apos;d been thinking ahead when that room was built, I would have put in a proper large conduit from the wall up to the ceiling so that all those cables could use that!&lt;/p&gt;
&lt;p&gt;They installed the &apos;NBN connection box&apos; on the wall of the storeroom right next to my modem/gateway, network switches and Synology, exactly where I&apos;d hoped it could go.&lt;/p&gt;
&lt;p&gt;There was a short outage while they were doing the install - I gather they disconnected the copper for a bit when they were using it to pull the fibre. But it was reconnected and I was back online after a few minutes.&lt;/p&gt;
&lt;p&gt;While they were finishing up, I received a text from Leaptel confirming that the new fibre connection was ready.&lt;/p&gt;
&lt;p&gt;I&apos;ve been using a Technicolor MediaAccess TG789vac v2 modem/gateway since we switched from ADSL to FTTN. It was supplied by Internode, but it isn&apos;t locked, and it has a WAN port so I was confident it would work as a gateway once our fibre was live.&lt;/p&gt;
&lt;p&gt;I pulled out the telephone cable from the back of the gateway and confirmed that there was just a LAN patch cable from the &apos;NBN connection box&apos; plugged into the gateway WAN port.&lt;/p&gt;
&lt;p&gt;Opening the gateway configuration, I navigated to the &apos;Internet Access&apos; page and clicked on &lt;strong&gt;show advanced&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/technicolor-config.X_eUnCTp_15sHKz.webp&quot; alt=&quot;Screenshot of &apos;Internet access&apos; page in Technicolor gateway admin portal&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I then enabled &lt;strong&gt;Auto WAN sensing&lt;/strong&gt; and clicked &lt;strong&gt;Save&lt;/strong&gt;, then &lt;strong&gt;Close&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;After a few seconds, the status updated to show the gateway using the WAN connection&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/technicolor-status.B_JU9MTP_ZCyzkd.webp&quot; alt=&quot;Technicolor gatway status showing WAN connection&quot; /&gt;&lt;/p&gt;
&lt;p&gt;And finally, a quick speed test, and wow, isn&apos;t that awesome - 106.74Mbs download and 18.1Mbps upload!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/speedtest.Dkx8X_ta_Z106Yjl.webp&quot; alt=&quot;Speedtest&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Down the track, upgrading the gateway to something like a &lt;a href=&quot;https://store.ui.com/us/en/category/cloud-gateways-compact/products/ucg-ultra&quot;&gt;Ubiquiti UniFi Cloud Gateway Ultra&lt;/a&gt; could be nice.&lt;/p&gt;
</content>
    <media:thumbnail url="https://david.gardiner.net.au/_astro/leaptel_logo.C-e5Q0BU.png" width="289" height="152"/>
    <media:content medium="image" url="https://david.gardiner.net.au/_astro/leaptel_logo.C-e5Q0BU.png" width="289" height="152"/>
  </entry>
  <entry>
    <id>https://david.gardiner.net.au/2022/06/unifi-usw-flex-mini-5-port</id>
    <updated>2022-06-20T08:00:00.000+09:30</updated>
    <title>UniFi USW Flex Mini 5-port switch</title>
    <link href="https://david.gardiner.net.au/2022/06/unifi-usw-flex-mini-5-port" rel="alternate" type="text/html" title="UniFi USW Flex Mini 5-port switch"/>
    <category term="Hardware"/>
    <category term="Networking"/>
    <published>2022-06-20T08:00:00.000+09:30</published>
    <summary type="html">My work from home desk has a great outlook, but unfortunately, it&apos;s on the opposite side to the room&apos;s network wall sockets.</summary>
    <content type="html">&lt;p&gt;My work from home desk has a great outlook, but unfortunately, it&apos;s on the opposite side to the room&apos;s network wall sockets. For this reason, I run a single cable around the room perimeter (mostly hidden behind sofas).&lt;/p&gt;
&lt;p&gt;In my work with SixPivot, clients sometimes provide a laptop for me to use. In that case, I was having to use wireless, but I&apos;ll always prefer wired over wireless if possible. I could run a second cable, but that&apos;s getting messy, so the tidier option was to install a small switch on my desk to allow adding extra devices there. 5 port switches are pretty cheap, but often you pay a premium if you want a &apos;managed&apos; switch. My colleague &lt;a href=&quot;https://shawinnes.com/&quot;&gt;Shaw&lt;/a&gt; pointed out that Ubiquiti has a managed 5-port switch for around $AU50, and even better, it can be powered by Power over Ethernet (PoE).&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/unifi-usw-flex-mini-00.BEVh-cO7_Px28c.webp&quot; alt=&quot;USW Flex Mini 5-port switch viewed from front showing network ports and LED status lights&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The UniFi USW Flex Mini 5-port switch is (no surprise) a Gigabit switch with 5 ports. It can be powered either via a USB-C adapter, or 802.3af PoE (via port 1).&lt;/p&gt;
&lt;p&gt;You can buy it from &lt;a href=&quot;https://www.amazon.com.au/Ubiquiti-USW-Flex-Mini-Managed/dp/B086L7RJ3Q?&amp;amp;linkCode=ll1&amp;amp;tag=flcdrg07-22&amp;amp;linkId=f6cf4d2636c3dee7abf6582048324f31&amp;amp;language=en_AU&amp;amp;ref_=as_li_ss_tl&quot;&gt;resellers on Amazon AU&lt;/a&gt; or &lt;a href=&quot;https://www.amazon.com/Ubiquiti-USW-Flex-Mini-Compact-Gigabit-802-3af/dp/B086L7RJ3Q?crid=2IVPD4ZEX494Q&amp;amp;keywords=Ubiquiti+Network+USW+Flex+Mini+UniFi+Switch&amp;amp;qid=1655543819&amp;amp;sprefix=ubiquiti+network+usw+flex+mini+unifi+switch%2Caps%2C285&amp;amp;sr=8-2&amp;amp;linkCode=ll1&amp;amp;tag=flcdrg0e-20&amp;amp;linkId=9147ce8009249507e166b6314b3bfccb&amp;amp;language=en_US&amp;amp;ref_=as_li_ss_tl&quot;&gt;Amazon US&lt;/a&gt;, but I had to hunt around to find a reseller with stock in Australia. I ended up going with &lt;a href=&quot;https://web.archive.org/web/20250325095251/https://ubwh.com.au/Ubiquiti/UniFi-Switching-and-Routing/USW-Flex-Mini-NP&quot;&gt;UBWH Australia&lt;/a&gt;. The web page specifically calls out that the product does not ship with a power supply (which was fine as I was intending to use PoE).&lt;/p&gt;
&lt;p&gt;It took a few days to arrive (I was starting to wonder if it was &lt;a href=&quot;https://en.wikipedia.org/wiki/Nullarbor_Plain&quot;&gt;walking across the Nullabor&lt;/a&gt;! Despite the previous warnings, I was surprised to find that it did indeed include a power supply, but curiously it appears to have a US-style plug (so not that useful).&lt;/p&gt;
&lt;p&gt;I made sure that the network cable coming to the UniFI switch had PoE and then plugged the network cable in. The device status LEDs then illuminated, giving me confidence that it was working. Adding extra cables to connect the two laptops on my desk and moments later they were both online.&lt;/p&gt;
&lt;p&gt;It&apos;s a managed switch, and as I already run the &lt;a href=&quot;https://web.archive.org/web/20221005084602/https://help.ui.com/hc/en-us/articles/1500012237441-UniFi-Network-Use-the-UniFi-Network-Application&quot;&gt;UniFi Network Application&lt;/a&gt; (formerly UniFi Controller) software in a &lt;a href=&quot;/2021/07/synology-unifi&quot;&gt;Docker container on my Synology server&lt;/a&gt;, I was able to add the device to the management application.&lt;/p&gt;
&lt;p&gt;I followed these steps to manage the switch:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open UniFi Controller&lt;/li&gt;
&lt;li&gt;Navigate to &apos;UniFi Devices&apos; tab&lt;/li&gt;
&lt;li&gt;Click on &lt;strong&gt;Click to Adopt&lt;/strong&gt;
  &lt;img src=&quot;https://david.gardiner.net.au/_astro/unifi-usw-flex-mini-01.BOTlxq5n_Z2ezGBd.webp&quot; alt=&quot;Screenshot showing USW-Flex-Mini device ready for adoption&quot; /&gt;&lt;/li&gt;
&lt;li&gt;In the details tab for device, click on &lt;strong&gt;Adopt Device&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Wait for device status to change to &lt;strong&gt;Online&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;You may see an optional firmware update available. You can apply the update by clicking on &lt;strong&gt;Click to Update&lt;/strong&gt; in the device list, or on &lt;strong&gt;Apply Update&lt;/strong&gt; in the device details panel&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Here&apos;s the &lt;strong&gt;Overview&lt;/strong&gt; panel for the device after it has been in operation for a few days:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/unifi-usw-flex-mini-02.WmnU_zdu_Z1t0vst.webp&quot; alt=&quot;Overview panel for USW-Flex-Mini device in UniFi Controller management software&quot; /&gt;&lt;/p&gt;
&lt;p&gt;So far, so good!&lt;/p&gt;
</content>
    <media:thumbnail url="https://david.gardiner.net.au/_astro/unifi-usw-flex-mini-00.BEVh-cO7.jpg" width="493" height="180"/>
    <media:content medium="image" url="https://david.gardiner.net.au/_astro/unifi-usw-flex-mini-00.BEVh-cO7.jpg" width="493" height="180"/>
  </entry>
  <entry>
    <id>https://david.gardiner.net.au/2021/07/synology-unifi</id>
    <updated>2021-07-26T09:00:00.000+09:30</updated>
    <title>UniFi Controller on a Synology</title>
    <link href="https://david.gardiner.net.au/2021/07/synology-unifi" rel="alternate" type="text/html" title="UniFi Controller on a Synology"/>
    <category term="Docker"/>
    <category term="Hardware"/>
    <category term="Networking"/>
    <category term="Synology"/>
    <published>2021-07-26T09:00:00.000+09:30</published>
    <summary type="html">I&apos;ve been using Ubiquiti&apos;s UniFi wireless access points for a few years around home.</summary>
    <content type="html">
&lt;p&gt;I&apos;ve been using Ubiquiti&apos;s UniFi wireless access points for a few years around home. Until now I&apos;ve only used the UniFi Controller application on an as-need basis (when setting the configuration or installing updates). But having the &lt;a href=&quot;/2021/04/synology-DS1621xs-review&quot;&gt;Synology DS1621xs&lt;/a&gt; on hand gives me an opportunity to try out its Docker support and in particular being able to run UniFi Controller continuously in a Docker container on the Synology.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/synology-unifi-00.CHXYgEjY_10gqAW.webp&quot; alt=&quot;UniFi Controller screenshot&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I say &apos;UniFi Controller&apos; but I gather that as of version 6.2 they&apos;ve renamed it to &apos;UniFi Network Application&apos;. Same software, just an updated name.&lt;/p&gt;
&lt;h2&gt;Installing Docker on the Synology&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Open the &lt;strong&gt;Package Center&lt;/strong&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select &lt;strong&gt;All Packages&lt;/strong&gt; and scroll down to the &lt;strong&gt;Third-party&lt;/strong&gt; section&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In the &apos;Docker&apos; package click &lt;strong&gt;Install&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt; &lt;img src=&quot;https://david.gardiner.net.au/_astro/synology-unifi-01.CpUzPeBQ_p1mMH.webp&quot; alt=&quot;UniFi Controller screenshot&quot; /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;When installation has completed, the button changes to &lt;strong&gt;Open&lt;/strong&gt;. Click on it to open the Docker UI.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The first time you open Docker a welcome screen message is displayed. Select &lt;strong&gt;Don&apos;t show this again&lt;/strong&gt; and close the message.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Docker is now running on your Synology&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;  &lt;img src=&quot;https://david.gardiner.net.au/_astro/synology-unifi-02.NW1uzbxA_Z9HHun.webp&quot; alt=&quot;UniFi Controller screenshot&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;Installing UniFi Controller&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Select the &lt;strong&gt;Registry&lt;/strong&gt; page.&lt;/p&gt;
&lt;p&gt; &lt;img src=&quot;https://david.gardiner.net.au/_astro/synology-unifi-03.CH_lqIiL_ZEROuB.webp&quot; alt=&quot;UniFi Controller screenshot&quot; /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In the search bar enter &lt;code&gt;unifi&lt;/code&gt; and click &lt;strong&gt;Search&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Double-click on the &lt;strong&gt;jacobalberty/unifi&lt;/strong&gt; image.&lt;/p&gt;
&lt;p&gt; &lt;img src=&quot;https://david.gardiner.net.au/_astro/synology-unifi-04.dKbQ9Krz_1n83iP.webp&quot; alt=&quot;UniFi Controller screenshot&quot; /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You now need to select a tag. &lt;a href=&quot;https://github.com/jacobalberty/unifi-docker#supported-docker-hub-tags-and-respective-dockerfile-links&quot;&gt;Review the options&lt;/a&gt; to understand what the different tag values mean. (Choose &lt;strong&gt;latest&lt;/strong&gt; to go with the latest stable version).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The image is now being downloaded.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Go to the &lt;strong&gt;Image&lt;/strong&gt; page.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;When the download has completed, the &lt;strong&gt;Launch&lt;/strong&gt; button will be enabled. Click on &lt;strong&gt;Launch&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If desired, you can customise the &lt;strong&gt;Container Name&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt; &lt;img src=&quot;https://david.gardiner.net.au/_astro/synology-unifi-05.ByFNLiBy_Z8o0Nz.webp&quot; alt=&quot;UniFi Controller screenshot&quot; /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select &lt;strong&gt;Enable resource limitation&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click on &lt;strong&gt;Advanced Settings&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select &lt;strong&gt;Enable auto-restart&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/synology-unifi-06.Cd-vTBrZ_ttwwM.webp&quot; alt=&quot;UniFi Controller screenshot&quot; /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select &lt;strong&gt;Volume&lt;/strong&gt; tab and click &lt;strong&gt;Add Folder&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select the &lt;strong&gt;docker&lt;/strong&gt; folder and then click on &lt;strong&gt;Create Folder&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enter &lt;code&gt;unifi&lt;/code&gt; and click &lt;strong&gt;OK&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click &lt;strong&gt;Select&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In the &lt;strong&gt;Mount path&lt;/strong&gt; column, enter &lt;code&gt;/unifi&lt;/code&gt;. (See &lt;a href=&quot;https://github.com/jacobalberty/unifi-docker#volumes&quot;&gt;Volumes&lt;/a&gt; for volumes used by this image).&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/synology-unifi-07.f-7PYZUD_Z2krGaI.webp&quot; alt=&quot;UniFi Controller screenshot&quot; /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select &lt;strong&gt;Network&lt;/strong&gt; tab and select &lt;strong&gt;use the same network as Docker Host&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/synology-unifi-08.DI60RDCk_Zg4jr9.webp&quot; alt=&quot;UniFi Controller screenshot&quot; /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/jacobalberty/unifi-docker#run-as-non-root-user&quot;&gt;It is recommended&lt;/a&gt; to not run this image as root. Go to the &lt;strong&gt;Environment&lt;/strong&gt; tab.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Change the value of &lt;strong&gt;RUNAS_UID0&lt;/strong&gt; to &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;As we will be binding to a port &amp;gt; 1024, we can also set the value of &lt;strong&gt;BIND_PRIV&lt;/strong&gt; to &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/synology-unifi-09.DnRGKulk_Z14lx6w.webp&quot; alt=&quot;UniFi Controller screenshot&quot; /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click &lt;strong&gt;Apply&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click &lt;strong&gt;Next&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Review the Summary details, then if they look correct click &lt;strong&gt;Apply&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/synology-unifi-10.B_eox-5f_Z25mNoI.webp&quot; alt=&quot;UniFi Controller screenshot&quot; /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select the &lt;strong&gt;Container&lt;/strong&gt; page.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You can see the UniFi image is now running in a container.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/synology-unifi-11.iTqgaAo0_Z21EPfP.webp&quot; alt=&quot;UniFi Controller screenshot&quot; /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you have the Synology Firewall enabled, you will need to allow access to the application, the port needs to be opened in the Synology Firewall. In my case because I hadn&apos;t exposed the Synology directly to the Internet, the firewall was disabled. I figured it was probably a good idea to enable the firewall.&lt;/p&gt;
&lt;p&gt;From the &lt;a href=&quot;https://github.com/jacobalberty/unifi-docker#expose&quot;&gt;Ports&lt;/a&gt; documentation there are a number of TCP and UDP ports to select.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Go to the Synology main menu and select &lt;strong&gt;Control Panel&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select &lt;strong&gt;Advanced Mode&lt;/strong&gt; and click on &lt;strong&gt;Security&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In the &lt;strong&gt;Firewall&lt;/strong&gt; tab, select the &lt;strong&gt;custom&lt;/strong&gt; profile and click &lt;strong&gt;Edit Rules&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt; &lt;img src=&quot;https://david.gardiner.net.au/_astro/synology-unifi-12.9TvHJgqO_2sdqG0.webp&quot; alt=&quot;UniFi Controller screenshot&quot; /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click &lt;strong&gt;Create&lt;/strong&gt; and under &lt;strong&gt;Ports&lt;/strong&gt; select &lt;strong&gt;Custom&lt;/strong&gt; and then click on &lt;strong&gt;Custom&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Ensure &lt;strong&gt;Protocol&lt;/strong&gt; is set to &lt;strong&gt;TCP&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In the &lt;strong&gt;Ports&lt;/strong&gt; field enter &lt;code&gt;8080,8443,8843,8880,6789&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt; &lt;img src=&quot;https://david.gardiner.net.au/_astro/synology-unifi-13.BrGixDIJ_Z27VNQK.webp&quot; alt=&quot;UniFi Controller screenshot&quot; /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click &lt;strong&gt;OK&lt;/strong&gt;, and &lt;strong&gt;OK&lt;/strong&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click &lt;strong&gt;Create&lt;/strong&gt; and under &lt;strong&gt;Ports&lt;/strong&gt; select &lt;strong&gt;Custom&lt;/strong&gt; and then click on &lt;strong&gt;Custom&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In &lt;strong&gt;Protocol&lt;/strong&gt; select &lt;strong&gt;UDP&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In the &lt;strong&gt;Ports&lt;/strong&gt; field enter &lt;code&gt;3478&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/synology-unifi-14.DdtJUzXv_29Sv1v.webp&quot; alt=&quot;UniFi Controller screenshot&quot; /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click &lt;strong&gt;OK&lt;/strong&gt;, and &lt;strong&gt;OK&lt;/strong&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click &lt;strong&gt;OK&lt;/strong&gt; to save the firewall profile changes.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If it is highlighted, click &lt;strong&gt;Apply&lt;/strong&gt; to save firewall changes.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Accessing UniFi Controller&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Navigate to &lt;a href=&quot;https://your-synology-box:8443/&quot;&gt;https://your-synology-box:8443/&lt;/a&gt; (replacing &lt;code&gt;your-synology-box&lt;/code&gt; with the DNS name of your Synology).&lt;/li&gt;
&lt;li&gt;As the UniFi Controller comes with a self-signed TLS certificate you&apos;ll need to tell your browser to trust the certificate.&lt;/li&gt;
&lt;li&gt;After this you should see the UniFi start-up wizard. If this is the first time you&apos;ve used the software, proceed through the wizard following the steps. Alternatively (like me) if you&apos;re migrating from another installation you can click the &lt;strong&gt;or restore setup from backup&lt;/strong&gt; to upload a back from the old system.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src=&quot;https://david.gardiner.net.au/_astro/synology-unifi-15.CAqTxZSC_1ClDl7.webp&quot; alt=&quot;UniFi Controller screenshot&quot; /&gt;&lt;/p&gt;
&lt;p&gt;And with that you should be good to go!&lt;/p&gt;
&lt;h2&gt;Final thoughts&lt;/h2&gt;
&lt;p&gt;The ability to run Docker containers on a Synology is a great advantage. The UI is easy to use but flexible enough to allow you to run useful Docker images. Do check out my review of the &lt;a href=&quot;/2021/04/synology-DS1621xs-review&quot;&gt;DS1621xs&lt;/a&gt;, and check it out on &lt;a href=&quot;https://www.amazon.com/Synology-Bay-DiskStation-DS1621xs-Diskless/dp/B08HYRYLPS?dchild=1&amp;amp;keywords=DS1621xs%2B&amp;amp;qid=1616751434&amp;amp;sr=8-1&amp;amp;linkCode=ll1&amp;amp;tag=flcdrg0e-20&amp;amp;linkId=160b2c8e5878fc4d957cbfde6027cd35&amp;amp;language=en_US&amp;amp;ref_=as_li_ss_tl&quot;&gt;amazon.com&lt;/a&gt; or &lt;a href=&quot;https://www.amazon.com.au/Synology-DiskStation-DS1621xs-Diskless-1x10GbE/dp/B08HM5YZMJ?dchild=1&amp;amp;keywords=DS1621xs%2B&amp;amp;qid=1616744805&amp;amp;sr=8-1&amp;amp;linkCode=ll1&amp;amp;tag=flcdrg07-22&amp;amp;linkId=d1b97c8358787908de58e1700f665d78&amp;amp;language=en_AU&amp;amp;ref_=as_li_ss_tl&quot;&gt;amazon.com.au&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Acknowledgements&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;There are quite a few different Docker images for running UniFi. Thanks to &lt;a href=&quot;https://blog.siliconvalve.com/&quot;&gt;Simon Waight&lt;/a&gt; for the suggestion of &lt;a href=&quot;https://github.com/jacobalberty/unifi-docker&quot;&gt;https://github.com/jacobalberty/unifi-docker&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://lazyadmin.nl/home-network/unifi-controller-on-a-synology-nas-with-docker/&quot;&gt;Ruud&apos;s instructions&lt;/a&gt; which formed the basis of the steps I followed here.&lt;/li&gt;
&lt;/ul&gt;
</content>
    <media:thumbnail url="https://david.gardiner.net.au/_astro/synology-unifi-00.CHXYgEjY.jpg" width="365" height="252"/>
    <media:content medium="image" url="https://david.gardiner.net.au/_astro/synology-unifi-00.CHXYgEjY.jpg" width="365" height="252"/>
  </entry>
</feed>
