| Message ID | 20260601195732.32783-1-dietzmann@brecht-schule.hamburg |
|---|---|
| State | New |
| Headers |
Return-Path: <development+bounces-2220-patchwork=ipfire.org@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1 raw public key) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R12" (not verified)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4gTlBC35qwz3wbl for <patchwork@web04.haj.ipfire.org>; Mon, 01 Jun 2026 19:57:55 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [IPv6:2001:678:b28::201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail02.haj.ipfire.org", Issuer "E8" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 4gTlBC03Xrz6yZ for <patchwork@ipfire.org>; Mon, 01 Jun 2026 19:57:55 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4gTlBB6NJ0z2xVX for <patchwork@ipfire.org>; Mon, 01 Jun 2026 19:57:54 +0000 (UTC) X-Original-To: development@lists.ipfire.org Received: from mail01.ipfire.org (mail01.haj.ipfire.org [IPv6:2001:678:b28::25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1 raw public key) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R12" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4gTlB83Pqdz2xJk for <development@lists.ipfire.org>; Mon, 01 Jun 2026 19:57:52 +0000 (UTC) Received: from mail01.brechtschulen.de (regulus.brecht-schule.hamburg [84.46.83.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bit raw public key) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.brechtschulen.de", Issuer "R12" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 4gTlB22dRnz2Zx for <development@lists.ipfire.org>; Mon, 01 Jun 2026 19:57:46 +0000 (UTC) Authentication-Results: mail01.ipfire.org; dkim=pass header.d=brecht-schule.hamburg header.s=202101ed25519 header.b=JHNNCmW5; dkim=pass header.d=brecht-schule.hamburg header.s=202101rsa header.b="MxN//cp8"; dmarc=pass (policy=reject) header.from=brecht-schule.hamburg; spf=pass (mail01.ipfire.org: domain of dietzmann@brecht-schule.hamburg designates 84.46.83.131 as permitted sender) smtp.mailfrom=dietzmann@brecht-schule.hamburg ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1780343866; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=f3ktxdpjTAlNcwS/93nWLVjmrrjPSqSE5dGPQcV00fI=; b=l3E4wseqPyFFW7Xqdy3jxTszfmDDsWcDViibiAXg79WLfNy1frncvehd8s/usVYLClFM74 KD3LztUQmvFsj3pClLr9Rmd4nNPe8yhVHNDE4KURmfwuQjk+8gw51zpkRha/36Augr1HDf 9NLkW8Y3DxKGowj36SkZ4s4n72HsyhPpve+Yfyv5eaRN0Te8mbaHLdpl/icZo1uSILagTj skuuFevbNT1QYKfI6sMhOB4svD6diBD/iippQ00Vm/iLAXyPpBXWw5KdCeAatV9yBfhwAw jrOv1D9ncMBhkzZNvGyG4UdzvXrq9eUbRFXz+L0nTZnSGOZQQekWzDPU4zSOZw== ARC-Seal: i=1; a=rsa-sha256; d=lists.ipfire.org; s=202003rsa; cv=none; t=1780343866; b=Hz3c25lozSRRgoWQXp/XGC5E43010Z24NSKoGuqto992MJj5DqDFHbVKcdldaaBOV5u3+u dKPi3o143tJ43AMCXSgjJ2nsNjXjQ1jebaHbLebkwd1WhaSzqQ2RzGcs2PZS7hwA+wSHSB rvFz9JY1ldVVEtNF2JT8Pq0tXW6ukUytrDBQEhENmJud7VJlkIDiG5ogXuL7bMEb7M/46B 7Xj6cl76kQo9Ic4pGVYCZ774CfkqOnlsFmH8j3MfEDu6qWH0jMnLNwXSECiRwQ/ueudJEM vW9LBvwr11zdeiENrm8JMQjDUjxsglqqaqowDjQEHz+Hjnu5jCjcJuQgD/iyvw== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=brecht-schule.hamburg header.s=202101ed25519 header.b=JHNNCmW5; dkim=pass header.d=brecht-schule.hamburg header.s=202101rsa header.b="MxN//cp8"; dmarc=pass (policy=reject) header.from=brecht-schule.hamburg; spf=pass (mail01.ipfire.org: domain of dietzmann@brecht-schule.hamburg designates 84.46.83.131 as permitted sender) smtp.mailfrom=dietzmann@brecht-schule.hamburg Received: from PC-BIT-DTZM-LIN.brechtschulen.de (PC-BIT-DTZM-LIN.brechtschulen.de [192.168.5.13]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.brechtschulen.de (Postfix) with ESMTPSA id 4gTlB04ZJLz3wvS; Mon, 01 Jun 2026 21:57:44 +0200 (CEST) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=brecht-schule.hamburg; s=202101ed25519; t=1780343864; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=f3ktxdpjTAlNcwS/93nWLVjmrrjPSqSE5dGPQcV00fI=; b=JHNNCmW5K52+R8WQECydHBAwsv5RAgyMLr0ad+Ovl0dZcC31A1c7MO8A71T73K8IOJM4C/ xbEaT9Y3jiXgUSAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brecht-schule.hamburg; s=202101rsa; t=1780343864; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=f3ktxdpjTAlNcwS/93nWLVjmrrjPSqSE5dGPQcV00fI=; b=MxN//cp8Nn2nTjUU/TpWeCKgPUZJ0kIaO8PyW+OmCW1VuYpM++Df1sF6NIvaBBuLOAiPo4 1tIivYGLYB04inHvinB1U6wvQGqZPFU2DRabAHHVLyGUdMmsTHO6cA9PJjVYFvjUOwP7NL TR5QSwIf70PvyN7ZH24Qjmg05CHQDxZffEkQTSBov914I3fE8jekoYydRZcYQaF1PW39Nt 1o1OGUTXl6OhdFlXSeDaLrock1qlErx1X7xkFcoHcgp63oWhYsJ+bRn0bVPrmDmqS0zpXT +9SqXt2BNFaWDwGRwL3CosZq+m9Cf93bzRZWw3MT6Q4lprIV8e/FQQJRak/ZIg== From: Peer Dietzmann <dietzmann@brecht-schule.hamburg> To: development@lists.ipfire.org Cc: Peer Dietzmann <dietzmann@brecht-schule.hamburg> Subject: [PATCH] ovpnmain.cgi: Add collumn for subnet Date: Mon, 1 Jun 2026 21:57:31 +0200 Message-ID: <20260601195732.32783-1-dietzmann@brecht-schule.hamburg> Precedence: list List-Id: <development.lists.ipfire.org> List-Subscribe: <https://lists.ipfire.org/>, <mailto:development+subscribe@lists.ipfire.org?subject=subscribe> List-Unsubscribe: <https://lists.ipfire.org/>, <mailto:development+unsubscribe@lists.ipfire.org?subject=unsubscribe> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development+help@lists.ipfire.org?subject=help> Sender: <development@lists.ipfire.org> Mail-Followup-To: <development@lists.ipfire.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: mail01.haj.ipfire.org X-Rspamd-Queue-Id: 4gTlB22dRnz2Zx X-Rspamd-Action: no action X-Spamd-Result: default: False [-9.84 / 11.00]; BAYES_HAM(-3.00)[100.00%]; DWL_DNSWL_MED(-2.00)[brecht-schule.hamburg:dkim]; R_DKIM_ALLOW(-1.70)[brecht-schule.hamburg:s=202101ed25519,brecht-schule.hamburg:s=202101rsa]; IP_REPUTATION_HAM(-1.37)[asn: 15943(-0.39), country: DE(-0.01), ip: 84.46.83.131(-0.97)]; MID_CONTAINS_FROM(1.00)[]; SPF_REPUTATION_HAM(-0.98)[-0.97712856164533]; DKIM_REPUTATION(-0.98)[-0.97668881505195]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[brecht-schule.hamburg,reject]; R_MISSING_CHARSET(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:84.46.83.131:c]; ONCE_RECEIVED(0.20)[]; RCVD_IN_DNSWL_MED(-0.20)[84.46.83.131:from]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:15943, ipnet:84.46.0.0/17, country:DE]; RCVD_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[brecht-schule.hamburg:+]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[] |
| 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(+)
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