From patchwork Tue Mar 2 10:07:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 3917 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 "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4DqXrS4sMSz3wwh for ; Tue, 2 Mar 2021 10:08:08 +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 "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4DqXrR5FMbz13Z; Tue, 2 Mar 2021 10:08:07 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4DqXrR47YRz2y4C; Tue, 2 Mar 2021 10:08:07 +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 "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4DqXrQ3s0Gz2xKk for ; Tue, 2 Mar 2021 10:08:06 +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) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4DqXrP5pJXzZN; Tue, 2 Mar 2021 10:08:05 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1614679685; 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; bh=kksPu9LHiYHxPq4MyyPsZT4BexlJuKIt8RzIjR0fQj8=; b=zsK8nIr/7WvscQaVh3fh4PtPMUt0BbDXxU/+zQ3lWlcSTTgPFnJOblix7IWkOJiDeJCtCD yyKfjqcOLzge+PBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1614679685; 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; bh=kksPu9LHiYHxPq4MyyPsZT4BexlJuKIt8RzIjR0fQj8=; b=Pm2VGjUNjGlVMZvgdHEEcnGf9KGjJy6Rk9ZnepuxYNggZKgVoxBaDVpsXz9UrMttEp58Lh Up29Oz2dvZb9/An0hpQsDMV+vezKjdCHGkLfwmwgUr7mIJeW98FdvXvYUWZDgQAPMmLhFm oma7ZgNQecTq7edywwosPjmTlWUayib4ahXuEbGvwuOx6+u4UhmahoHA3M9W/H10z98mYq AfmbXBGMqx4K/OuJY4bWvWsyZJSxEFZGqIzgn0+FP5dimm73smHU2Iyb+xqSIdXETnRbR8 X5sghO34JTdxk6l7E0s85PEjm6dXHzKHfmWaDp+4cITMll61n1tUDb/LL2FrTA== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH] firewall: Disable all connection tracking helpers by default Date: Tue, 2 Mar 2021 10:07:59 +0000 Message-Id: <20210302100759.7823-1-michael.tremer@ipfire.org> MIME-Version: 1.0 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" This will mitigate exploiting networks secured by IPFire using NAT Slipstreaming: https://lists.ipfire.org/pipermail/development/2021-February/009303.html Suggested-by: Peter Müller Signed-off-by: Stefan Schantl Signed-off-by: Michael Tremer --- lfs/configroot | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lfs/configroot b/lfs/configroot index bc8c0283f..a3e474d70 100644 --- a/lfs/configroot +++ b/lfs/configroot @@ -139,12 +139,7 @@ $(TARGET) : cp $(DIR_SRC)/config/suricata/convert-ids-modifysids-file /usr/sbin/convert-ids-modifysids-file # Add conntrack helper default settings - for proto in FTP H323 IRC SIP TFTP; do \ - echo "CONNTRACK_$${proto}=on" >> $(CONFIG_ROOT)/optionsfw/settings; \ - done - - # Do not enable these by default because these are broken - for proto in AMANDA PPTP; do \ + for proto in AMANDA FTP H323 IRC PPTP SIP TFTP; do \ echo "CONNTRACK_$${proto}=off" >> $(CONFIG_ROOT)/optionsfw/settings; \ done