public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] ovpnmain.cgi: Add collumn for subnet
@ 2026-06-01 19:57 Peer Dietzmann
  0 siblings, 0 replies; only message in thread
From: Peer Dietzmann @ 2026-06-01 19:57 UTC (permalink / raw)
  To: development; +Cc: Peer Dietzmann

Hello,

in an earlier version of IPFire the main OVPN page of the WUI showed the subnet of each client in separate tables. Since the upgrade of OpenVPN 2.6 this feature has been removed.

As I find it very useful to see directly on the first page to which subnet a client belongs, this patch should bring back this feature.
I think this is also something users requested multiple timesin the forum.

There is just one thing I am currently unsure how to handle: When a client belongs to the dynamic subnet, the current patch would display "dynamic" independent from the language of the WUI. Maybe this could be adjusted?

Best regards
Peer

Signed-off-by: Peer Dietzmann <dietzmann@brecht-schule.hamburg>
---
 html/cgi-bin/ovpnmain.cgi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi
index 4e3cc7f50..0490c0112 100644
--- a/html/cgi-bin/ovpnmain.cgi
+++ b/html/cgi-bin/ovpnmain.cgi
@@ -5223,6 +5223,9 @@ END
 				<th>
 					$Lang::tr{'remark'}
 				</th>
+				<th width='10%'>
+					$Lang::tr{'ccd subnet'}
+				</th>
 				<th width='10%'>
 					$Lang::tr{'status'}
 				</th>
@@ -5291,6 +5294,9 @@ END
 		# Show remarks
 		print "<td>$confighash{$key}[25]</td>";
 
+		# Show subnet
+		print "<td class='text-center'>$confighash{$key}[32]</td>";
+
 		my $connstatus = "DISCONNECTED";
 
 		# Disabled Connections
-- 
2.43.0



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-01 19:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-01 19:57 [PATCH] ovpnmain.cgi: Add collumn for subnet Peer Dietzmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox