LoongFire · 龙火 firewall · eBPF 防火墙 · eBPF

My Home Network with Loongfire on Loongson 3A6000

我的家庭网络:龙芯 3A6000 上的 Loongfire

A real-world deployment: one all-in-one Huawei gateway, two Wi-Fi paths — one plain, one routed and firewall-protected by Loongfire. Nothing else in the house notices when Loongfire is rebooted, upgraded, or broken.

一个真实部署:一台华为一体网关,两条 Wi-Fi 路径 —— 一条直连,一条经 Loongfire 路由并由防火墙保护。Loongfire 重启、升级甚至故障时,家里其他人完全无感。

The Setup in One Paragraph

My ISP hands me a single Huawei all-in-one device that is simultaneously the fiber modem, the router, and Wi-Fi access point A. Most of the household connects to AP A and gets plain, unfiltered Internet — which is exactly what they want. I wanted a separate, routed and firewall-protected path for my own devices, so I put a Loongfire box — running on a Loongson 3A6000 NUC — inline between the Huawei gateway and a second access point, AP B. I connect to AP B; everything I do goes through Loongfire first.

Network Diagram

The diagram below shows the full path, top to bottom, from the Internet down to the two user groups.

🌐 Internet WAN HUAWEI ALL-IN-ONE DEVICE Huawei Fiber Modem / Router / Wi-Fi AP A ISP gateway LAN 1 (unfiltered) LAN 2 → WAN (routed through firewall) 👥 Home Users plain Internet via AP A LOONGFIRE FIREWALL 🔥 Loongfire Firewall running on Loongson 3A6000 NUC LoongArch · eBPF · XDP LAN → AP B ACCESS POINT B Wi-Fi Access Point B firewall-protected SSID 👤 You routed & firewall-protected via AP B

Figure 1 — Home network topology (top to bottom).

How the Traffic Flows

  • Home users (AP A): Internet → Huawei gateway → Wi-Fi AP A. Protected only by the ISP gateway — no Loongfire filtering.
  • You (AP B): Internet → Huawei gateway → Loongfire (Loongson 3A6000 NUC) → Wi-Fi AP B. Routed and firewall-filtered by Loongfire.

The Huawei device exposes two LAN ports for this: one feeds AP A directly (unfiltered), the other goes to Loongfire's WAN interface. Loongfire then routes to AP B on its LAN side.

Zero Disruption for the Rest of the Household

This is the part worth stressing: because Loongfire sits on its own dedicated branch of the network, the household path through AP A is completely independent of it. Regular Internet surfing for everyone else is never touched by anything I do on the Loongfire side.

  • Rebooting Loongfire — everyone on AP A keeps browsing, streaming, and gaming without interruption.
  • Upgrading Loongfire (backup → fresh install → restore) — the household path keeps working the whole time.
  • Misconfiguring the firewall — only my own AP B devices are affected; nobody else notices.
  • Loongfire hardware failure — AP A continues to work exactly as before. The household never loses Internet because Loongfire is down.
Key point: Loongfire is on a parallel branch, not in series with the household path. The Huawei gateway is the single point of failure for everyone; Loongfire is only on the path for devices that deliberately connect to AP B.

A Safe Test Bed for Loongfire

That isolation makes this layout an ideal test bed: you can experiment with Loongfire — new firewall rules, eBPF/XDP programs, kernel updates, upgrade procedures, even break it on purpose — while the rest of the household carries on completely unaffected.

  • Try new rules and configurations on AP B without risking anyone else's connectivity.
  • Practice the supported upgrade path (backup → fresh install → restore) on real traffic.
  • Validate eBPF/XDP data-path changes with real clients, not just synthetic tests.
  • Deliberately break Loongfire to see failure behavior — safely, because nobody else depends on it.

If Loongfire works well for you on AP B, you can later decide whether to move more of the household onto it. If it doesn't, you simply disconnect it — and nothing else in the house was ever at risk.

Why Loongson 3A6000?

The Loongfire box is a Loongson 3A6000 NUC. It is small, quiet, and more than capable of routing and firewalling a home network — including running the eBPF/XDP data path that Loongfire ships. The 3A6000 is the current-generation LoongArch desktop-class SoC, and it is the same hardware we use for day-to-day validation of the LoongArch port.

Putting Loongfire on a dedicated NUC also means the protected path is physically separate from the household path: if I want to reboot, upgrade, or reconfigure Loongfire, nobody else in the house notices.

Takeaways

  • You do not need to replace the ISP gateway to get a firewall-protected path — put Loongfire inline on one of its LAN ports.
  • A second access point on the Loongfire LAN gives you a clean, dedicated SSID for protected traffic.
  • The rest of the household keeps the simple, low-latency path through the ISP gateway — completely unaffected by Loongfire reboots, upgrades, misconfigurations, or failures.
  • This makes the layout a safe test bed: experiment freely on AP B while everyone else's Internet keeps working.
  • The whole protected path runs on a Loongson 3A6000 NUC — a small, silent, LoongArch-native firewall appliance.

一句话说明部署

运营商只给我一台华为一体机,它同时是光猫、路由器和 Wi-Fi 接入点 A。家里大多数人连接 AP A,走的是普通、未过滤的互联网 —— 这正是他们想要的。我希望自己的设备走一条独立的、经路由并由防火墙保护的路径,于是把一台运行在龙芯 3A6000 NUC 上的 Loongfire 串接在华为网关和第二个接入点 AP B 之间。我自己连接 AP B;我的一切流量都先经过 Loongfire。

网络拓扑图

下图从上到下展示了完整路径:从互联网一直到两组用户。

🌐 互联网 广域网 华为一体机设备 华为光猫 / 路由器 / Wi-Fi 接入点 A 运营商网关 LAN 口 1 (未过滤) LAN 口 2 → WAN (经防火墙 路由) 👥 家庭用户 经 AP A 直接上网 (普通互联网) 龙芯防火墙 LOONGFIRE 🔥 Loongfire 防火墙 运行于 Loongson 3A6000 NUC 龙架构 · eBPF · XDP LAN → AP B 接入点 B Wi-Fi 接入点 B (防火墙保护的 SSID) 👤 你本人 经 AP B 路由并由防火墙保护

图 1 —— 家庭网络拓扑(从上到下)。

流量如何走

  • 家庭用户(AP A):互联网 → 华为网关 → Wi-Fi 接入点 A。仅经运营商网关保护 —— 无 Loongfire 过滤。
  • 你本人(AP B):互联网 → 华为网关 → Loongfire(龙芯 3A6000 NUC) → Wi-Fi 接入点 B。由 Loongfire 路由并防火墙过滤。

华为设备为此提供两个 LAN 口:一个直连 AP A(未过滤),另一个接到 Loongfire 的 WAN 口。Loongfire 再在其 LAN 侧路由到 AP B。

对家庭其他成员零干扰

这一点值得特别强调:由于 Loongfire 位于网络的独立分支上,经 AP A 的家庭路径与它完全独立。其他所有人日常上网,绝不会因为我这一侧的任何操作而受影响。

  • 重启 Loongfire —— AP A 上的所有人都照常浏览、看视频、打游戏,不会中断。
  • 升级 Loongfire(备份 → 全新安装 → 恢复)—— 家庭路径全程正常工作。
  • 防火墙配置失误 —— 只有我自己 AP B 上的设备受影响,其他人毫无察觉。
  • Loongfire 硬件故障 —— AP A 完全照旧工作。Loongfire 宕机不会让家里断网。
关键点:Loongfire 位于并行分支上,而不是与家庭路径串联。对所有人而言,华为网关才是单点;只有主动连接 AP B 的设备,其流量才经过 Loongfire。

Loongfire 的安全测试床

这种隔离让它成为一个理想的测试床:你可以尽情试验 Loongfire —— 新防火墙规则、eBPF/XDP 程序、内核更新、升级流程,甚至故意把它弄坏 —— 而家里其他人完全不受影响。

  • 在 AP B 上测试新规则与配置,不必担心其他人的连通性。
  • 用真实流量演练官方支持的升级路径(备份 → 全新安装 → 恢复)。
  • 用真实客户端(而不仅仅是合成测试)验证 eBPF/XDP 数据路径变更。
  • 故意弄坏 Loongfire 观察故障行为 —— 安全,因为其他人并不依赖它。

如果 Loongfire 在 AP B 上运行良好,你可以之后再决定是否让更多家庭成员迁入;如果不行,直接拔掉即可 —— 家里其他部分自始至终都没有任何风险。

为什么用龙芯 3A6000?

Loongfire 盒子是一台 龙芯 3A6000 NUC。它体积小、安静,完全足以完成家庭网络的路由与防火墙任务 —— 包括运行 Loongfire 自带的 eBPF/XDP 数据路径。3A6000 是当前一代龙架构桌面级 SoC,也是我们日常验证龙架构移植所用的同一硬件。

把 Loongfire 放在独立 NUC 上还意味着受保护路径与家庭路径在物理上分离:无论我想重启、升级还是重配 Loongfire,家里其他人都毫无感知。

要点

  • 你无需替换运营商网关就能获得防火墙保护的路径 —— 把 Loongfire 串接在其某个 LAN 口上即可。
  • 在 Loongfire 的 LAN 侧加第二个接入点,就得到一个干净、专属的受保护 SSID。
  • 家里其余人继续走经运营商网关的简单、低延迟路径 —— 无论 Loongfire 重启、升级、配置失误还是故障,完全不受影响。
  • 因此这种布局是一个安全的测试床:可在 AP B 上尽情试验,其他人的上网始终照常。
  • 整条受保护路径运行在 龙芯 3A6000 NUC 上 —— 一台小巧、静音、龙架构原生的防火墙设备。
All posts全部文章 Home首页