Configs2026年5月6日·1 分钟阅读

OpenWrt — Open-Source Router Operating System

Replace stock router firmware with OpenWrt for advanced networking, package management, and full control over your network infrastructure.

Introduction

OpenWrt is a Linux-based operating system for embedded networking devices. It replaces vendor firmware on routers, access points, and single-board computers with a fully writable filesystem and a package manager, turning commodity hardware into a configurable network appliance.

What OpenWrt Does

  • Provides a full Linux distribution optimized for routers and network devices
  • Includes opkg package manager with thousands of available packages
  • Supports advanced routing, firewalling, VPN, QoS, and mesh networking
  • Offers LuCI web interface and UCI configuration system
  • Targets 1,500+ hardware devices across multiple architectures

Architecture Overview

OpenWrt builds on the Linux kernel with a custom build system that cross-compiles for MIPS, ARM, x86, and other architectures. The UCI (Unified Configuration Interface) abstracts device configuration into text files under /etc/config/. Procd manages services and init, while netifd handles network configuration. The build system generates flashable images tailored to each device profile.

Self-Hosting & Configuration

  • Download the correct firmware image for your specific hardware model from the table of hardware
  • Flash via the existing vendor web UI, TFTP, or serial console
  • Connect via SSH (default: root@192.168.1.1) or install LuCI for web management
  • Configure WAN, LAN, Wi-Fi, and firewall zones through UCI or LuCI
  • Install additional packages with opkg (VPN, adblocking, bandwidth monitoring, etc.)

Key Features

  • Full package manager (opkg) with 5,000+ available packages
  • Firewall based on nftables with zone-based configuration
  • Multi-WAN failover and load balancing out of the box
  • WireGuard and OpenVPN support for site-to-site and remote access
  • Mesh networking via 802.11s and batman-adv protocols

Comparison with Similar Tools

  • DD-WRT — Closed-source components and less frequent updates; OpenWrt is fully open with rapid release cycles
  • pfSense/OPNsense — x86-focused full firewall distributions; OpenWrt targets embedded devices with constrained resources
  • Tomato — Simpler UI but fewer features and narrower device support
  • Stock firmware — Vendor-locked with limited configuration; OpenWrt provides full OS-level control

FAQ

Q: Will OpenWrt work on my router? A: Check the Table of Hardware on the OpenWrt wiki. Devices need sufficient flash (8 MB+) and RAM (64 MB+) for a usable install.

Q: Can I brick my router flashing OpenWrt? A: Most devices have recovery methods (TFTP, serial console). Read the device-specific wiki page before flashing. A misconfigured network is recoverable via failsafe mode.

Q: How do I update OpenWrt? A: Use sysupgrade from the command line or LuCI. Keep a list of installed packages, as upgrades replace the filesystem. Use the attended sysupgrade server to build images with your packages included.

Q: Does OpenWrt support Wi-Fi 6/6E? A: Yes, with supported hardware using the mt76 or ath11k drivers. Check the specific chipset support status on the wiki.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产