From patchwork Mon Oct 21 15:49:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Weismueller X-Patchwork-Id: 2534 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) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 46xh0356Bdz3yYK for ; Mon, 21 Oct 2019 15:49:23 +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) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 46xgzy4yqvz4Gv; Mon, 21 Oct 2019 15:49:18 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 46xgzy2bp2z2ydT; Mon, 21 Oct 2019 15:49:18 +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 46xgzx0gzKz2yfg for ; Mon, 21 Oct 2019 15:49:17 +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 46xgzw1RHhz4FS; Mon, 21 Oct 2019 15:49:16 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909ed25519; t=1571672956; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+xIcDFzByvEXX6T5utADgvFYRt/isJIxKUZsb7FhVYc=; b=JsfFBQ5T/ZAmURWtJyHmelN+PP21SiCbOG7tnW1sGV+1g6IJl7dyxzMSA+Qf5rg0hMbkkK rECCmBPbSOD0hHDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909rsa; t=1571672956; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+xIcDFzByvEXX6T5utADgvFYRt/isJIxKUZsb7FhVYc=; b=auQxqwqQkGrf9CsNZ4LWuXTscY+mly/LNXmu+AyNG5pPmY2ucMhoJck6ouEJgf6vL/vJKu 4FBz2daOwGs2gSK9E9csCZgyExPWAcLpton/VnZGfVbmuljFMJAteecZYwbV7rbiATBEHl O5bPOHHKgOm6nreAMPy0VXD5ZI974eIYw4PvzyjAFdIBzbMZnmDtGZQw5wuZXqo/WQer3n Q2GV2TKfFV4dIyriAxZXl/ZJpV4HB9I3ufUd8wrVMUE0q+34wg5MglX8Jn+Nu0eoKiTgn8 +BWqLNv42DvHyyNbZtSICpHr3+TzF/TmvE9ko5apIYuwJ2mQiwqfsY6CJ237zQ== From: =?utf-8?q?Daniel_Weism=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH 10/10] QoS: Use CONNMARK to mark connections in connection tracking Date: Mon, 21 Oct 2019 17:49:06 +0200 Message-Id: <20191021154906.24418-10-daniel.weismueller@ipfire.org> In-Reply-To: <20191021154906.24418-1-daniel.weismueller@ipfire.org> References: <20191021154906.24418-1-daniel.weismueller@ipfire.org> MIME-Version: 1.0 Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=dweismueller smtp.mailfrom=daniel.weismueller@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: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" This patch modifies the connection tracking in that ways that it sets a connection mark which will be retrieved when a packet is being redirected to the IFB interface. This way, we can use classification without having the packet being sent through iptables first. Signed-off-by: Michael Tremer Signed-off-by: Daniel Weismüller --- config/qos/makeqosscripts.pl | 40 ++++++++++------------------------------ 1 file changed, 10 insertions(+), 30 deletions(-) diff --git a/config/qos/makeqosscripts.pl b/config/qos/makeqosscripts.pl index 51d818699..1754c45fd 100644 --- a/config/qos/makeqosscripts.pl +++ b/config/qos/makeqosscripts.pl @@ -371,6 +371,7 @@ print <