Skip to content

Release v1.0.3

Choose a tag to compare

@github-actions github-actions released this 02 Nov 02:59
· 14 commits to main since this release

Changes in v1.0.3:

Added

  • One-Click STB System Reboot (/api/system/reboot):
    • Added a dedicated reboot trigger button in the STB Status card with an interactive confirmation prompt.
    • Built an animated 45-second countdown progress bar overlay with automated reconnect and page reload once the STB finishes rebooting.
  • Configurable DHCP Lease Duration:
    • Added a customizable DHCP Lease Time selector in the 5 GHz Hotspot settings (1h, 2h, 6h, 12h, 24h, 48h, 7d), replacing hardcoded configuration values.
  • Sequential IP Allocation Option (--dhcp-sequential-ip):
    • Added configurable IP distribution method in Web UI: choose between Sequential (allocating IPs in order immediately following the gateway) or Random / Hash-based (MAC hash-based).
  • Real-Time Lease Time Remaining Column:
    • Added a dedicated Lease Time (Sisa Sewa) column in the connected clients table displaying dynamic remaining lease countdown for each leased IP.
  • Table Layout & Header Streamlining:
    • Condensed Device Name / Hostname table header to simply Hostname for cleaner spacing and perfect responsiveness across mobile and desktop viewports.
  • Multi-Core Network Packet Steering (RPS & XPS):
    • Added automatic Receive Packet Steering (RPS) and Transmit Packet Steering (XPS) on interfaces ap0 (Wi-Fi) and eth0 (Ethernet WAN) targeting Cores 1, 2, and 3 (rps_cpus = e, xps_cpus = e), with rps_flow_cnt = 4096 and net.core.rps_sock_flow_entries = 32768.
    • Load-balances incoming and outgoing packet routing symmetrically across all CPU cores, eliminating single-core bottlenecks on CPU 0.
  • Turbo DNS Cache (10,000 Entries) & Parallel Upstream Resolver:
    • Activated local high-speed DNS proxy in dnsmasq with 10,000 RAM cache entries, sub-millisecond local response times, and --all-servers parallel querying across Cloudflare (1.1.1.1) and Google (8.8.8.8).
    • Isolated listener socket (-i ap0 --bind-interfaces --listen-address="${AP_GATEWAY}") ensuring zero port 53 conflicts with host OS resolvers (e.g., systemd-resolved on 127.0.0.53).
  • Google TCP BBR Congestion Control & FQ Queuing:
    • Enabled kernel bbr TCP congestion control and fq pacing queue discipline via /etc/sysctl.d/99-mt7663.conf, minimizing packet latency and bufferbloat under full bandwidth saturation.
  • Conntrack Fast-Reap & Active Connections Telemetry:
    • Accelerated kernel TCP dead connection cleanup (time_wait = 30s, close_wait = 15s, fin_wait = 30s) to prevent NAT connection table exhaustion.
    • Added live Active Connections (Koneksi Aktif) telemetry row in Card 4 (STB Status) displaying real-time connection count, maximum capacity (65,535), and utilization percentage.
  • CPU Governor Sweet Spot Tuning (Cooler Baseline & Low Jitter):
    • Tuned ondemand governor parameters (sampling_rate=20000 / 20ms, up_threshold=60, sampling_down_factor=2, io_is_busy=0).
    • Allows CPU to rest stably at 1000 MHz (1.0 GHz) during idle to lower operating temperatures, while instantly bursting to 2.0 GHz within 0.02s during gaming or heavy network bursts.
  • Real-Time CPU Clock Frequency Telemetry:
    • Replaced raw RAM megabytes in Card 4 with active live CPU clock frequency (X.XX GHz), providing immediate visibility into dynamic CPU governor scaling between 1.0 GHz idle and 1.9–2.0 GHz burst.
  • Automated Ophub Governor Persistence (postinst / postrm):
    • Integrated automated injection of ondemand sweet-spot parameters (sampling_rate=20ms, up_threshold=60%) directly into /etc/custom_service/start_service.sh during .deb package installation (postinst), with clean teardown on package removal (postrm). Guarantees cool ~50°C baseline temperatures across reboots on any Ophub Armbian build.

Changed

  • Symmetrical Dashboard Card Balancing:
    • Relocated the Active NAT Sessions / Connections telemetry row from Card 4 (Hotspot) to Card 3 (Internet WAN), balancing both Card 3 and Card 4 symmetrically with exactly 6 informative rows each.

Fixed

  • Station Disconnect & OFFLINE Status Accuracy:
    • Fixed logic flaw where an empty active station set (active_wifi_stas) evaluated to True (not active_wifi_stas), causing disconnected DHCP lease entries to falsely display with CONNECTED green status.
    • Wired real-time association check directly to kernel mac80211 station dump (iw dev ap0 station dump); stations absent from the dump are strictly assigned OFFLINE status with muted badge styling.
  • Active Clients Counter Accuracy:
    • Fixed client_count in both Dashboard card and table header (Perangkat Terhubung ( ... )) to sum only stations actively associated with status == "CONNECTED". Disconnected devices or stale lease entries no longer increment the active client counter.
  • Device Deletion & DHCP Release Reliability:
    • Updated /api/devices/delete (🗑️ button) to remove MAC mappings from mt7663-devices.json, purge matching lease entries from /var/lib/misc/dnsmasq.leases, and flush kernel ARP cache (ip neigh flush dev ap0), removing the device instantly and permanently.
    • Revamped /api/dhcp/release (♻️ Release DHCP) to truncate lease files, flush ARP, terminate running dnsmasq, and cleanly spawn a fresh instance so in-memory DHCP cache is completely wiped.
  • Frontend Action Handlers & Settings Round-Trip:
    • Implemented missing client-side JavaScript functions flushDhcpLeases() and deleteDevice() in index.html to ensure action buttons execute smoothly without DOM errors.
    • Included dhcp_lease duration and dhcp_alloc distribution method in settings save payload, ensuring full configuration round-trip synchronization between frontend and backend.
  • Authoritative DHCP Service Flag (--dhcp-authoritative):
    • Added --dhcp-authoritative to dnsmasq invocation in /usr/sbin/mt7663-hotspot to immediately reject foreign DHCP lease requests from mobile devices reconnecting after network restarts, forcing instant clean IP re-allocation.
  • Authentication Handshake Fix in Management Endpoints:
    • Replaced undefined check_auth() calls in /api/devices/rename, /api/devices/delete, and /api/dhcp/release with proper is_authenticated() session checks, resolving HTTP 500 Internal Server Errors when modifying devices or releasing DHCP.