]> git.ipfire.org Git - people/ummeegge/ipfire-2.x.git/commit
connections.cgi: Enhance with zone filter and search functionality connections
authorummeegge <ummeegge@ipfire.org>
Wed, 7 May 2025 05:48:38 +0000 (07:48 +0200)
committerummeegge <ummeegge@ipfire.org>
Wed, 7 May 2025 05:48:38 +0000 (07:48 +0200)
commitd5dc6a36324a7d7a5a067689f51d25ab3d10e026
treee4e4c5ed770dc14b3b0e692be1743efbaf7d232a
parent6ef7a6ec9db8905999f4af165a2658c11fa3e480
connections.cgi: Enhance with zone filter and search functionality

Improved connections.cgi with the following features:
- Added zone filter to select network zones (LAN, INTERNET, DMZ, etc.) via clickable legend.
- Included NAT IPs in filtering for all zones.
- Added search function to filter connections by IP, port, or protocol. With jQuery toggle on/off .
- Display filter status showing active filters and connection count.

FIXES/extensions:
- Fix multi-pattern search to use AND logic

- Corrected search filter to apply AND instead of OR for IP, port, and protocol criteria.
- Added case-insensitive protocol matching and input sanitization for robustness.
- Added ipcolour cache and pre-filtered networks.
- Replaced external sort with Perl sorting for conntrack table.
- Removed redundant close(CONNTRACK) call.

Signed-off-by: ummeegge <ummeegge@ipfire.org>
html/cgi-bin/connections.cgi