How zfx-t/openwrt-ruijie-minieap works
This repository provides OpenWrt Ruijie 802.1X authentication and recovery so devices behind the router can share campus-network access. The main flow is credentials and interface settings → minieap RJv3 authentication → post-auth DHCP renewal when needed → WAN NAT for LAN/Wi-Fi clients. The watchdog detects outages, records diagnostics, and restarts authentication and renewal. The graph follows README-documented behavior; source excerpts were unavailable, so it does not infer undocumented calls or internal implementation details.
Main entry points: ruijie-net-watchdog.sh Network watchdog · ruijie-minieap-ctl Control CLI · ruijie-minieap Init service · ruijie-post-auth.sh Post-auth DHCP
Components 14
Authentication
- Credential settings
files/etc/ruijie/env.example - Control CLI
files/usr/bin/ruijie-minieap-ctl - Init service
files/etc/init.d/ruijie-minieap - minieap RJv3
Recovery
- Post-auth DHCP
files/usr/bin/ruijie-post-auth.sh - Network watchdog
files/usr/bin/ruijie-net-watchdog.sh - Connectivity probes
- Persistent log
Router networking
- OpenWrt WAN
- WAN masquerade
Other components
- Router operator
- Campus network
- Cron scheduler
- LAN/Wi-Fi clients
Connections 15
- Router operator → Credential settings: sets credentials
README.md - Router operator → Control CLI: runs commands
README.md - Control CLI → minieap RJv3: starts authentication
README.md - Init service → minieap RJv3: manages process
README.md - minieap RJv3 → Campus network: authenticates via 802.1X
README.md - minieap RJv3 → OpenWrt WAN: uses WAN interface
README.md - minieap RJv3 → OpenWrt WAN: requests post-auth DHCP
README.md - Cron scheduler → Network watchdog: runs periodically
README.md - Network watchdog → Connectivity probes: checks connectivity
README.md - Network watchdog → Persistent log: writes snapshots
README.md - Network watchdog → Init service: restarts offline service
README.md - Network watchdog → Post-auth DHCP: triggers renewal
README.md - Post-auth DHCP → OpenWrt WAN: renews DHCP lease
README.md - LAN/Wi-Fi clients → WAN masquerade: sends traffic
README.md - WAN masquerade → Campus network: masquerades WAN traffic
README.md