Skip to content

cgmon 2.7.17

Choose a tag to compare

@real4root real4root released this 08 Nov 21:44
· 1 commit to main since this release

cgmon 2.7.17 is out

A big update: since 2.6.30 cgmon finds security holes in the router and the devices on your network, speaks five languages and takes over per-site VPN routing that used to need hand-written scripts.

🛡 Headline feature: vulnerability scanner

A new «Security» section. Once a week (or on demand) the router checks itself:

  • Every package and the Linux kernel are checked against vulnerability databases: OSV.dev with the Debian assessment, CISA KEV (already exploited), FIRST EPSS (probability of exploitation in the next 30 days). OpenWrt's own packages (uhttpd, odhcpd, procd, LuCI…) are checked against OpenWrt security advisories, and curl and other projects with their own databases by their exact version ranges.
  • Programs not installed as packages (AdGuard Home, tailscale, docker…) are checked by their own version.
  • Router settings: what is open to the internet, port forwards, root password, SSH password login, telnet, LuCI over http, Wi-Fi (open, WEP, WPA1, WPS, short key), UPnP.
  • Devices on the network: safe probes only, no login attempts. It looks for telnet, FTP, SMB, RDP, VNC, camera video without a password, and XMEye/Dahua/Hikvision services.
  • Honest risk levels. «Critical» is reserved for what can be reached from the internet: cgmon maps the ports open to the internet to the programs listening on them. Anything exploitable only from your own network is at most «serious».
  • Cameras and video recorders are detected automatically. cgmon checks whether they talk to the vendor cloud, since through the cloud a device can be reached from outside even without port forwards. The «Isolate» button keeps the device on the local network only: you can still watch video and record to a DVR, but it cannot reach the internet. The block is by MAC address and undone with one click.
  • One-click updates: an «Update» button per package and «Update all». Free space is checked first, taking into account that a package from the firmware takes its full size when updated; if there is not enough room, nothing is touched. System packages (kernel, kmod, netifd, firewall…) are left out of «Update all». cgmon can update itself too, verifying the SHA256 checksum.
  • A compact table on the main page shows one row per package with the exploit probability in %. The full report with every vulnerability opens in a separate window.

🌍 Five languages, all the way through

English, Russian, Uzbek, Kazakh, Chinese. Everything is translated: the page, every setting hint, the journal, events, incidents, Telegram notifications, the setup wizard and the CLI help. The journal follows the page language. README in all five languages.

🧭 Per-Site Routing: permanent list

Hand-written scripts for routing individual sites through a VPN are no longer needed. Sites (with subdomains), networks and whole autonomous systems (AS prefixes from RIPEstat) are listed right on the page, in a separate editor window, one per line or separated by «;». Domain addresses are routed before the client even gets the DNS answer. If the gateway goes down, the sites go direct.

🔗 OpenWrt integration

  • The router address can open cgmon instead of LuCI. The previous start page is kept and restored with one setting.
  • You can set router names such as router.lan and cgmon.lan that always open cgmon.
  • The page has a prominent «OpenWrt Settings (LuCI)» button.

✍️ Config files in any encoding

cgmon.yaml and the site list are now read as UTF-8 (with or without BOM), UTF-16 or Windows ANSI (cp1251/cp1252), with CRLF line endings. The file is converted to UTF-8 and the original is kept next to it. No more «stream did not contain valid UTF-8» after editing in Notepad or WinSCP.

🔧 Fixed

  • The WAN speed tile and chart were capped at 120 Mbps by a leftover page setting.
  • Per-Site Routing: AS prefixes from RIPEstat never loaded. More generally, commands with more than 64 KB of output (the package list on routers with hundreds of packages, etc.) hung until the timeout and returned nothing.
  • TOP CPU / TOP RAM: a long process name hid the percentage and megabytes.
  • Russian text leaking into the English and other translations.
  • The journal and events came in English while the page was in Russian.
  • Scanner false alarms: version comparison of 10.6_p1-style versions, packages matched by a similar name, CVEs that only affect old versions, VPN peers taken for LAN devices.

full, lite and nano builds for x86_64, i686, aarch64, armv7, armv5te, mips and mipsel, plus .apk and .ipk packages, are in Assets. The full list of changes is in CHANGELOG.md.