From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH] Tor: Disable SOCKS port if unused Date: Thu, 10 Nov 2022 19:31:33 +0000 Message-ID: <7ebcbd8d-254b-f71f-54d5-8b4b40f50f0d@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4562583197371524029==" List-Id: --===============4562583197371524029== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Fixes: #11780 Signed-off-by: Peter M=C3=BCller --- html/cgi-bin/tor.cgi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/html/cgi-bin/tor.cgi b/html/cgi-bin/tor.cgi index 539a74343..96be35102 100644 --- a/html/cgi-bin/tor.cgi +++ b/html/cgi-bin/tor.cgi @@ -2,7 +2,7 @@ ############################################################################= ### # = # # IPFire.org - A linux based firewall = # -# Copyright (C) 2007-2021 IPFire Team = # +# Copyright (C) 2007-2022 IPFire Team = # # = # # This program is free software: you can redistribute it and/or modify = # # it under the terms of the GNU General Public License as published by = # @@ -796,7 +796,9 @@ sub BuildConfiguration() { if ($strict_nodes > 0) { print FILE "StrictNodes 1\n"; } - } + } else { + print FILE "SocksPort 0\n"; + } =20 if ($settings{'TOR_RELAY_ENABLED'} eq 'on') { # Reject access to private networks. --=20 2.35.3 --===============4562583197371524029==--