From patchwork Mon May 25 09:17:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 3128 Return-Path: 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 (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 49Vs2357z9z43x9 for ; Mon, 25 May 2020 09:17:47 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 49Vs220yQBz37W; Mon, 25 May 2020 09:17:46 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 49Vs212TVqz2yr5; Mon, 25 May 2020 09:17:45 +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 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 49Vs1y4ZqYz2y3W for ; Mon, 25 May 2020 09:17:42 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 49Vs1y2sLgz29W; Mon, 25 May 2020 09:17:42 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1590398262; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:in-reply-to:in-reply-to:references:references; bh=PlnRvVZkFI12TEby9WRY2fcjrhGaoWOc/ptGzGOOTOE=; b=fYN1P2ivsIVVlmBvLoQKBG9XY+W6xR3p43EhiA4m8nFSPD1qPYlntArrU+RYFDMAlt9ssd QHQSLbhpT1aYxnBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1590398262; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:in-reply-to:in-reply-to:references:references; bh=PlnRvVZkFI12TEby9WRY2fcjrhGaoWOc/ptGzGOOTOE=; b=LytX390qwxjdbHEPKaZCw3sksExZwS2VwQjAyp7j/Nl5iBL9OoGTGW96xqxNcqNZLuII1g pMC9NQC4u+ZqUKl08HcCoHcv0zbkT2bh029sSZ2oMo01OYaqZn8J3CPTFCvTzhDtqe+z+D WSdaCUVLjDjl2evkyzLFsFuLpK3COAqXWlxZp6jwX9IK/WATwRTpkfn5U9bkbDktqMcwe/ 4tSQh3rDwNdMbTgIUpDyWRrTHNjtuehZhVGcEneUUZvf+XmVitHkKgkGnsxBaXYprc43Ed q7J0HH23gRsRWl/TKBggfEgsw2yn13L5qFdEddCFqoGhCzSLmtC2dmHbFGX18Q== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 2/2] core145: Enable OpenVPN metrics collection Date: Mon, 25 May 2020 10:17:30 +0100 Message-Id: <20200525091730.4059-2-michael.tremer@ipfire.org> In-Reply-To: <20200525091730.4059-1-michael.tremer@ipfire.org> References: <20200525091730.4059-1-michael.tremer@ipfire.org> Authentication-Results: mail01.ipfire.org; auth=pass smtp.mailfrom=michael.tremer@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Michael Tremer --- config/rootfiles/core/145/update.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/rootfiles/core/145/update.sh b/config/rootfiles/core/145/update.sh index 5f5394f78..9ff64f7f9 100644 --- a/config/rootfiles/core/145/update.sh +++ b/config/rootfiles/core/145/update.sh @@ -73,6 +73,13 @@ for package in perl-DBI perl-DBD-SQLite; do rm -f /opt/pakfire/db/rootfiles/$package done +# Enable OpenVPN metrics collection +cat <> /var/ipfire/ovpn/server.conf +# Log clients connecting/disconnecting +client-connect "/usr/sbin/openvpn-metrics client-connect" +client-disconnect "/usr/sbin/openvpn-metrics client-disconnect" +EOF + # Start services /etc/init.d/vnstat start /etc/init.d/unbound restart