ovpnmain.cgi: Add collumn for subnet

Message ID 20260601195732.32783-1-dietzmann@brecht-schule.hamburg
State New
Headers
Series ovpnmain.cgi: Add collumn for subnet |

Commit Message

Peer Dietzmann 1 Jun 2026, 7:57 p.m. UTC
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(+)
  

Patch

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