From patchwork Sat Sep 25 07:08:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_M=C3=BCller?= X-Patchwork-Id: 4732 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 "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4HGg3y3CWSz3xWd for ; Sat, 25 Sep 2021 07:08:46 +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 4HGg3y0XMLz6mX; Sat, 25 Sep 2021 07:08:46 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4HGg3x6wfxz2yCW; Sat, 25 Sep 2021 07:08: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 "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4HGg3w0hdRz2xB7 for ; Sat, 25 Sep 2021 07:08:44 +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)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4HGg3v25Dhzks for ; Sat, 25 Sep 2021 07:08:43 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1632553723; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4tMsZy6Hu7a18E+ku0sQD0lFldKBYy4PDVYnhakgIUQ=; b=i3wnk9c9Y4xGTFuRj8ZqP3dFwB+okkItnX9OUyqH1l5pGV0sWYb45JWjJDAkOe53fwP+tw HL+ZMso1wlfzZ7Cg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1632553723; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4tMsZy6Hu7a18E+ku0sQD0lFldKBYy4PDVYnhakgIUQ=; b=hsPpH79NFPOCdJRE9BsQ6TwbOI4Adns8hNEC3nKQo2U5fyaeiRGyZKxt2Qt6tHzuzWTKrz vstMluz6RuW+9N5QAFR6N2Z+Ogv6bepiuzHqW9ExcTcYIuqbVXT7Mgl/cZuOdSCNJ6CpWB aq60ruzp13JwyNs47xCE+OwN6Fisvf1a1WeSPMal06NQ9En0yqn1vVM839vrJuCkupJYry afE+4TeNtOb6PYJgrcDc+DO/qcSbQ6us3BFELNLosmB3Jow2Yquft7gxepIugPCRKdjWwV mQyNxq53wRoeTfXmEpZZbD6yS40Wj5uFOH7C7Vg4HyFuyDESrVtCUcz2OoeMAg== Subject: [PATCH 3/4] Tor: Do not try to support IPv6 for Directory and OR ports To: development@lists.ipfire.org References: <37079e43-a5af-db04-086e-750f04151b75@ipfire.org> From: =?utf-8?q?Peter_M=C3=BCller?= Message-ID: <37a388ab-a01e-6628-f872-d5db530d7688@ipfire.org> Date: Sat, 25 Sep 2021 09:08:42 +0200 MIME-Version: 1.0 In-Reply-To: <37079e43-a5af-db04-086e-750f04151b75@ipfire.org> Content-Language: en-US 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" We currently don't have IPv6 in vanilla IPFire 2.x installations, hence there is no sense in letting Tor finding out IPv6 connectivity. Signed-off-by: Peter Müller --- html/cgi-bin/tor.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/cgi-bin/tor.cgi b/html/cgi-bin/tor.cgi index 2b0d93336..8ecef5d9c 100644 --- a/html/cgi-bin/tor.cgi +++ b/html/cgi-bin/tor.cgi @@ -802,10 +802,10 @@ sub BuildConfiguration() { # Reject access to private networks. print FILE "ExitPolicyRejectPrivate 1\n"; - print FILE "ORPort $settings{'TOR_RELAY_PORT'}\n"; + print FILE "ORPort $settings{'TOR_RELAY_PORT'} IPv4Only\n"; if ($settings{'TOR_RELAY_DIRPORT'} ne '0') { - print FILE "DirPort $settings{'TOR_RELAY_DIRPORT'}\n"; + print FILE "DirPort $settings{'TOR_RELAY_DIRPORT'} IPv4Only\n"; } if ($settings{'TOR_RELAY_ADDRESS'} ne '') {