From: Peer Dietzmann Date: Mon, 1 Jun 2026 19:57:31 +0000 (+0200) Subject: ovpnmain.cgi: Add collumn for subnet X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=5ccc752c65669e845e233cdcd866496741bac374;p=ipfire-2.x.git ovpnmain.cgi: Add collumn for subnet 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 Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 35f6031e6..3e6185ca6 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -5223,6 +5223,9 @@ END $Lang::tr{'remark'} + + $Lang::tr{'ccd subnet'} + $Lang::tr{'status'} @@ -5291,6 +5294,9 @@ END # Show remarks print "$confighash{$key}[25]"; + # Show subnet + print "$confighash{$key}[32]"; + my $connstatus = "DISCONNECTED"; # Disabled Connections