]> git.ipfire.org Git - people/ummeegge/ipfire-2.x.git/commit
connections.cgi: Modernize connection WUI with refresh interval, zone filtering and... connections-realtime
authorummeegge <ummeegge@ipfire.org>
Sun, 25 May 2025 14:28:58 +0000 (16:28 +0200)
committerummeegge <ummeegge@ipfire.org>
Sun, 25 May 2025 14:28:58 +0000 (16:28 +0200)
commit854f27f086b57d688224beabc24fffbdd5b4f76f
treee2663d87a21e621d47e00f28699c467827deab53
parent29ea599c07065e8a041f12ab9dec01a1bb5e7be0
connections.cgi: Modernize connection WUI with refresh interval, zone filtering and search function

- Implement AJAX-based dynamic table updates
- Add configurable auto-refresh (2-60 seconds or disabled)
- Introduce toggleable search/filter panel for:
  * IP addresses (source/destination)
  * Port numbers
  * Protocol types
- Add zone-based filtering (GREEN/BLUE/ORANGE/VPN etc.)
- Display active filters and connection count
- Maintain existing network zone coloring system
- Improve error handling and user feedback
- Use jQuery for AJAX requests and DOM manipulation

get_table.cgi: Add JSON API for connection data

- New backend providing filtered connection data
- Supports all filtering from connections.cgi:
  * Network zones
  * IP addresses
  * Port numbers
  * Protocols
- Returns structured data including:
  * Colored IPs by zone
  * Port numbers
  * Connection states
  * TTL values
  * Traffic counters
  * Country flags
- Uses JSON::PP for efficient encoding
- Handles conntrack data processing

Langs needs to be updated with an update-lang-cache.

Fixes:

10.05.2025
- Removed deprecated `Switch` module
- Add more code comments
- Optimize code structure by adjusting indentation
- Cleared code which was not used
- Fix typo in toggle selector

25.05.2025
- Added source and destination NAT again into table
- Updated also language files for new Core version 195

Signed-off-by: ummeegge <ummeegge@ipfire.org>
html/cgi-bin/connections.cgi [changed mode: 0644->0755]
html/cgi-bin/get_table.cgi [changed mode: 0644->0755]
langs/de/cgi-bin/de.pl
langs/en/cgi-bin/en.pl