]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ovpnmain.cgi: Add collumn for subnet
authorPeer Dietzmann <dietzmann@brecht-schule.hamburg>
Mon, 1 Jun 2026 19:57:31 +0000 (21:57 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 2 Jun 2026 13:40:44 +0000 (13:40 +0000)
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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ovpnmain.cgi

index 35f6031e6c064ac19dfa294b25fd1fea684bd19d..3e6185ca6f4ffa05a9537f9dbe3d88c29fd8b8d1 100644 (file)
@@ -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