From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4jgTkQ6vGCz2xZv for ; Thu, 03 Dec 2026 22:26:38 +0000 (UTC) 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) (Client CN "mail01.haj.ipfire.org", Issuer "YR1" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4jgTkQ6Y0Pz2xZB for ; Thu, 03 Dec 2026 22:26:38 +0000 (UTC) Received: from people01.haj.ipfire.org (people01.haj.ipfire.org [IPv6:2001:678:b28::161]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "people01.haj.ipfire.org", Issuer "YE1" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 4jgTkQ1tN7z4kf for ; Thu, 03 Dec 2026 22:26:38 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1796336798; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc; bh=5OL97rCZeR9moiuPPpLfDHj/L6Ukrbwi/GNf4SXVGZY=; b=6ik4+glQUGPYbUuXMEjjIFfBo1kxZ4Cm8+FKri0HGMyLA4OkKFnRBsY1N/m36ko0u1n77A vPU/JMf0zl2AEgBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1796336798; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc; bh=5OL97rCZeR9moiuPPpLfDHj/L6Ukrbwi/GNf4SXVGZY=; b=D95S/O1XOtyw0dsUK8rBa1eXnC+WqXgWd2W1zOgdNKzMnTlVha/G9L5QC3Uct1hurKCLnu SqsGrUuGgdIOINkrB8TTYH6dgj98fEJxEcxtPDKqSqzbnyzfViQcfcGyb4doXAp0PWi5Il TQ5WDbZDeBJV2O7XIqfe19pR4YFfzRhScW/J5hRy+VMTqoxWouT0h5KhEyxxhapKYlv9hW sEVoWIAaQE9icRxeZlJqXiyVtsoDQfzYhogFSU9WXtgrJqEgE3zHMx2UmveVm4nUWnOCBn klaKLGc9kgCPK0EnBSk4sGBslqDgDTf9nGeF8/Yr/yI+SQHtGBrKIpxtGK4XmQ== Received: by people01.haj.ipfire.org (Postfix, from userid 1000) id 4jgTkQ0MPTz2xlt; Thu, 03 Dec 2026 22:26:38 +0000 (UTC) To: ipfire-scm@lists.ipfire.org Subject: [git.ipfire.org] IPFire 2.x development tree branch, master, updated. 9230f5a122ed5f405af2c622ef83dd60b019adda X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 68c2394eaf44fa3c0e84061c2d49411bddc2587d X-Git-Newrev: 9230f5a122ed5f405af2c622ef83dd60b019adda Message-Id: <4jgTkQ0MPTz2xlt@people01.haj.ipfire.org> Date: Thu, 03 Dec 2026 22:26:37 +0000 (UTC) From: Michael Tremer Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree". The branch, master has been updated via 9230f5a122ed5f405af2c622ef83dd60b019adda (commit) from 68c2394eaf44fa3c0e84061c2d49411bddc2587d (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 9230f5a122ed5f405af2c622ef83dd60b019adda Author: Michael Tremer Date: Thu Dec 3 22:26:36 2026 +0000 wio: Fetch the state of N2N connections from the management socket The management interface of N2N connections has been moved from a TCP port on localhost to a UNIX socket in /var/run/openvpn, so WIO could no longer show whether a connection was up. Bug: #14969 Signed-off-by: Michael Tremer ----------------------------------------------------------------------- Summary of changes: html/cgi-bin/wio.cgi | 12 ++++++++---- lfs/wio | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) Difference in files: diff --git a/html/cgi-bin/wio.cgi b/html/cgi-bin/wio.cgi index dfa9827fc..4130276e8 100755 --- a/html/cgi-bin/wio.cgi +++ b/html/cgi-bin/wio.cgi @@ -44,6 +44,7 @@ use Socket; use POSIX qw(strftime); use File::Copy; use Fatal qw/ open /; +use IO::Socket::UNIX; use Net::Telnet; require '/var/ipfire/general-functions.pl'; @@ -1351,11 +1352,14 @@ foreach $key (keys %ovpnconfighash) { if ($ovpnconfighash{$key}[3] eq 'net') { if (-e "/var/run/$ovpnconfighash{$key}[1]n2n.pid") { my ( @output, @tustate ) = ''; - my $tport = $ovpnconfighash{$key}[22]; - my $tnet = new Net::Telnet (Timeout=>5, Errmode=>'return', Port=>$tport); - if ($tport ne '') { - $tnet->open('127.0.0.1'); + my $tsocket = IO::Socket::UNIX->new( + Type => SOCK_STREAM, + Peer => "/var/run/openvpn/$ovpnconfighash{$key}[1]-n2n.sock", + ); + if ($tsocket) { + my $tnet = new Net::Telnet (Fhopen=>$tsocket, Telnetmode=>0, Timeout=>5, Errmode=>'return'); @output = $tnet->cmd(String => 'state', Prompt => '/(END.*\n|ERROR:.*\n)/'); + $tnet->close(); @tustate = split(/\,/, $output[1]); $ovpntime = &WIO::contime(scalar localtime($tustate[0]), "ovpn"); $ovpncheck = strftime("%d.%m.%Y - %H:%M:%S", localtime); diff --git a/lfs/wio b/lfs/wio index 35aa6531c..955c2ee61 100644 --- a/lfs/wio +++ b/lfs/wio @@ -32,7 +32,7 @@ THISAPP = wio-$(VER) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = wio -PAK_VER = 22 +PAK_VER = 23 DEPS = hooks/post-receive -- IPFire 2.x development tree