Some Bits: Nelson's log

USG notes, GV LAN configuration

Setting up yet another new router, a Unifi USG. I’m finally buying fully into the Unifi platform. I like the concept; one central management process that configures and monitors all your network equipment. Proprietary of course, but I’m willing to bet on Ubiquiti.

Setting up the USG is awkward since it’s the backbone of your network. These docs helped. My catch is my LAN is configured to be 192.168.3.* but the default network is 192.168.1.*. And even though the Unifi Controller could see the USG when I plugged it in (via LAN port) and send it a firmware upgrade, it wasn’t able to actually provision (configure) it. So I had to follow their instructions; plug in a laptop to the WAN port, use the minimal web config to change the subnet, then use the Controller to configure the rest. Annoyingly the Internet access on the laptop worked fine on the 192.168.1.* subnet but not 3.*; I suspect that minimal config on the USG itself doesn’t even set the DHCP router address right when switching. Anyway once I’d switched the USG’s network to 3.* the Controller was able to send the full configuration and everything works.

Yet another router configuration system with its quirks to learn. Most of the defaults seem fine. The only thing I’m missing is static DNS entries for local static IPs, something Ubiquiti has never been great at. Turning on dnsmasq didn’t help. It may not be possible at all, or require editing a config file. Update I waited a day and now /etc/hosts on the router has a bunch of entries from DHCP, which it will also serve via DNS. I do not have dnsmasq enabled. They are FQDNs only, ie hostname.nelson.monkey.org and not the naked hostname. That’s reasonable but it does mean your host doing the query needs to be configured to search that domain.

One annoying thing in the USG: it does not have a switch. It has 3 ports: LAN1, WAN1, and then LAN2/WAN2. That last port can not be switched or bridged to LAN1, it is treated as a third network with its own subnet and routing. You could probably kludge it so it works like LAN1 but the router will be doing extra work. (Hilariously there’s a 4th RJ45 on the thing labelled “console”. It is literally a serial port.)

Another annoying thing in the USG: it’s slow. Not routing, that’s fast. But it takes 45+ seconds for the thing to boot. And re-provisioning takes a long time, although at least it’s conveniently orchestrated.

LAN Configuration

Figured it was time to document my LAN configuration for the next time I have to do this. Not that stuff doesn’t change.

  • 192.168.3.1/24
  • domain name: nelson.monkey.org
  • WAN configured via DHCP, NAT mode
  • Static LAN DHCP entries
    Printer 84:25:19:0e:7b:0b 192.168.3.67
    Axiscam ac:cc:8e:20:47:8f 192.168.3.53
    gvl 94:c6:91:1e:c8:38 192.168.3.75
  • Static DNS entries for gvl and axiscam
  • SNMP enable community string “public” (for Munin on gvl)
  • Port forwarding: none
  • DDNS: none
  • UPnP disabled

The network is pretty closed off; the only way in from outside is via an autossh tunnel I have set up somewhere on a cloud server.

I would like to add a VPN configuration between my two houses though. Every time I’ve looked into that it was complicated, particularly getting it working while only in one place at the time.