marfillaster · notes
MikroTik RB5009, residential solar, plug-in EV, and home finance — build logs and field notes.
Infrastructure
A nine-part series building one MikroTik RB5009 from a flat LAN into a segmented, IPv6-capable, self-hosted home network behind residential CGNAT. Start at the index, or jump to a layer — each post stands alone. Steps 4 and 5 are two equal paths to routable IPv6; step 9 is the clean-slate multi-homed finale.
Series 1/9 · Series index · 2026-05
A small home network behind CGNAT
Series index: overview, topology, address plan, the VPS-vs-Route64 path-choice matrix, and the ULA-only-trusted-VLAN update that keeps streaming off the routable-IPv6 path. Start here.
Series 2/9 · Build log · 2026-05
Trusted, IoT, and Guest VLANs on RouterOS
Split a flat home LAN into trusted, IoT, and Guest VLANs with two UniFi APs on hybrid trunks, plus a reviewable east-west firewall. Pure IPv4 plus 802.1Q; no IPv6, no VPS. The foundation the rest of the series sits on.
Series 3/9 · Build log · 2026-05
Encrypted DNS with a stable resolver address on RouterOS
Resolve upstream over Cloudflare DoH and hand clients a resolver address that never changes — a locally assigned ULA over RA RDNSS. No VLANs, no IPv6 uplink; works on a flat IPv4-only LAN.
Series 4/9 · Build log · 2026-05
Routed IPv6 over CGNAT via a VPS-routed /48
Equal path A: a $3/mo VPS that routes a /48 to its instance, WireGuard from the RB5009, eBGP between them. Includes Ubuntu/BIRD, VyOS, and CHR relay variants.
Series 5/9 · Build log · 2026-05
Routed IPv6 over CGNAT via Route64
Equal path B: Route64's free WireGuard /56 — a native global /64 per VLAN, nothing to operate, fast fail-to-IPv4 on outage. Single broker-managed uplink by design.
Series 6/9 · Build log · 2026-05
Per-VLAN IPv6 on RouterOS
Plumb the routable IPv6 you just stood up through to every VLAN: GUA + ULA + RA RDNSS per VLAN, IPv6 forward-chain isolation, and SLAAC anti-spoof. Path-agnostic — three per-VLAN /64 placeholders fold the /48-vs-/56 difference into one substitution table.
Series 7/9 · Build log · 2026-05
Fast IPv6 failover on RouterOS
Add BFD to the existing BGP session over WireGuard — fast default-route withdrawal with Ubuntu/BIRD, VyOS, or CHR relay variants. VPS path only.
Series 8/9 · Build log · 2026-05
Running the UniFi controller on the RB5009
Run the UniFi Network Application and its MongoDB on a MikroTik RB5009 as RouterOS containers — no second always-on box. USB swap, the ARMv8.0-A Mongo 4.4.18 pin, veths, memory caps, verification.
Series 9/9 · Series finale · 2026-05
Multi-homing IPv6 over CGNAT on RouterOS
Run the VPS and Route64 paths at the same time under one announceable /48: own ASN, two BGP sessions, BFD on the VPS path, and RouterOS best-path selecting the active default.
Build log · 2026-05
Replacing a Converge ONT with a GPON SFP stick on the RB5009
Skyworth GN630V to ODI DFP-34X-2C2 in a MikroTik RB5009: the SC/APC to SC/UPC connector gotcha, VLAN 10 DHCP handoff, and the minimum stick config that worked. Standalone — not part of the series above.
Home & Energy
Field log · 2026-05
Net Metering Journey in General Trias
A realistic, step-by-step account of getting a 6 kWp rooftop array approved for net metering with Meralco in Cavite — the PEE-sealed A3 SLD, the forms, the venues, the fees, and a ~50-day timeline.
Case study · 2026-07
BYD Sealion 6 PHEV running cost — Cavite, Philippines
8,671 km of odometer- and meter-tracked driving: electric-vs-fuel running cost, 65% EV usage split, combined 5.83 L/100km efficiency, and battery health.
Case study · 2026-07
Residential 6.5 kWp solar performance — Cavite, Philippines
Eight months of real generation, self-sufficiency, battery behavior, and bill impact from a 6.5 kWp / 14.3 kWh / 8 kW system, with monthly tariff math and ROI payback.
Guide · 2025-12
Solar Panel Installation Application Guide for Lancaster New City
The exact CIDC documents to prepare before installing solar panels on your Lancaster New City unit — with a copy-ready Letter of Intent template, where to submit, and how to get your gate pass on the same visit.
Home & Money
About
Ken Marfilla
Based in Cavite, Philippines. These notes are personal build logs and case studies from long-running experiments at home — networking behind residential CGNAT, residential solar and battery, and whatever else turns into a project worth writing down.
Find me on GitHub.