From patchwork Tue Oct 22 15:48:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 2551 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 46yHwW2X4Bz3yqX for ; Tue, 22 Oct 2019 15:48:27 +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 46yHwV0B11z2pR; Tue, 22 Oct 2019 15:48:26 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 46yHwT4zqdz2yWt; Tue, 22 Oct 2019 15:48:25 +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) 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 mail02.haj.ipfire.org (Postfix) with ESMTPS id 46yHwS2Sxkz2yC5 for ; Tue, 22 Oct 2019 15:48:24 +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 46yHwR5fpTz2pR; Tue, 22 Oct 2019 15:48:23 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909ed25519; t=1571759304; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=rVnm/Mz0hxui5zkjolIfAedVFR8l3zX3539jyk9AnA0=; b=NFLvwcKn+SoyCoNVQX+6RI45scPo6Y8j9oA5+lXs75hQkNAM8RC4gJE5uPbEbrlYvJG659 V9FYipYjv4x5e3Bw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909rsa; t=1571759304; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=rVnm/Mz0hxui5zkjolIfAedVFR8l3zX3539jyk9AnA0=; b=lUfEnwZQ6tisZrZH7oVOm1kpjv/PHpLpQwJgXpmhkL/rioYjYJvbOSvcRUbAqBD6g5oMvx pWpaB2KcM2oNcMJk2PqYabk5URjRqNefBaIMqo9B4GAxYlkd1U9zxKhrj0sdqwAXe1MaBT pja0qhUjAURdn/g1GCuAtvxOZmpusWv9AA5x8hkmOqAMej+fS+vSSbFWcCHrQDXxy8EVSY d4sdH/+dAdXnHOaK3Aq41ZOafkTBYoR4gdf5s9dvRigh3emsdq9rjAcNaYwJ5nDsImSYqv chaAi21C3EmbbOKGoR1cY+oWeepBH2546Np4/VyZMK4GBFUsnAuDxOIIun82kQ== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH] QoS: Do no classify as default when L7 filter isn't done Date: Tue, 22 Oct 2019 17:48:14 +0200 Message-Id: <20191022154814.10388-1-michael.tremer@ipfire.org> Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=ms 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" We need to allow some more packets to pass through the mangle chains so that the layer 7 filter can determine what protocol it finds. If L7 filter decides that a connection is of type "unknown", we mark it as default, or it is marked with the correct class. Signed-off-by: Michael Tremer --- config/qos/makeqosscripts.pl | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/config/qos/makeqosscripts.pl b/config/qos/makeqosscripts.pl index 1a5d01d52..cbbbf70f8 100644 --- a/config/qos/makeqosscripts.pl +++ b/config/qos/makeqosscripts.pl @@ -205,9 +205,6 @@ foreach $classentry (sort @classes) } print </dev/null 2>&1 iptables -t mangle --flush QOS-INC >/dev/null 2>&1 iptables -t mangle --delete-chain QOS-INC >/dev/null 2>&1 - # remove l7-filter - iptables -t mangle --delete PREROUTING -m layer7 --l7proto unset rmmod sch_htb >/dev/null 2>&1