From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YI/mM6y42WKrWAEAbAwnHQ (envelope-from ) for ; Thu, 21 Jul 2022 22:35:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AEHSMqy42WLlhAEAG6o9tA (envelope-from ) for ; Thu, 21 Jul 2022 22:35:56 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 84B531C644 for ; Thu, 21 Jul 2022 22:35:56 +0200 (CEST) Received: from localhost ([::1]:43714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEctn-0004j0-AP for larch@yhetil.org; Thu, 21 Jul 2022 16:35:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEctU-0004is-6E for help-guix@gnu.org; Thu, 21 Jul 2022 16:35:36 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:34074) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEctR-0004Oc-CS for help-guix@gnu.org; Thu, 21 Jul 2022 16:35:35 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 734fa8d3; Thu, 21 Jul 2022 20:35:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=dkim; bh=jWQ/Z2F2qvHk zL8MobYv62nujP7YmuOeikpCDDgpvHY=; b=HmqhluPgllVREkBqeMisoo1UUbTq b7CapegY+v5xZuXUfpjQ7nEMCXLaL1k8+Lnv1e8UeLdy4KNSGEA9uqId/hJfLn64 qL1aUz6n3+2m0hsoG/JM2Xo5B8wS8/JdTZ4SmoZm5e9YCZ1u6J4+6m9xK5ukFFiG g8/bDmcaw+tu1v/CU4UEorJwfwTgQw2zRMpYyKAs3d0zwk0IKDtn/qyAYbBOxwrL y2eLkvyo1577AJEdtBeE17NhZzCZDLYc6JSKYKYm3YDoKWsDMtowFgTMa0ZwLiLp Bt9v6VTTT/mzBNS266kqK4LTVZYlXieEPCCTehjW4XGpgv5Q+QxMbAN/7A== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 3d704c64 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 21 Jul 2022 20:35:30 +0000 (UTC) Date: Thu, 21 Jul 2022 22:35:29 +0200 From: Julien Lepiller To: Gottfried Cc: help-guix@gnu.org Subject: Re: how can I use "tor" Message-ID: <20220721223524.533171ed@sybil.lepiller.eu> In-Reply-To: <3037daa5-ff14-5090-b740-8a06d671e759@posteo.de> References: <3037daa5-ff14-5090-b740-8a06d671e759@posteo.de> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658435756; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=D9TMn9Ff9fMhmfssYRZ5XkkNmjw6Dtxqsm0gysaYbRY=; b=Bp5TatKL3Ne/r6i8cV1HoYlQ7gY6IkJ4u/f2sL0AQziKdPEPjjIGETjRKIGoq2ChSs8Qv/ B7r0obcIp1XcGZPWM3VV6Xl6If30e2yjirFZvAzldJqNr1UUu3FcL8O3sJ95xonAD7KQqe Oh6PNAqcRLs7GOZab5Qy0gEmQYh1A58vrJNds+YYuurgf6W4ieZ46C4mcTN582qPzbptEO sA/t0LQgoLs8J52T+uewR9MwtKnQOdD0dL7WBqaXkV0o01Ea1RrA142a+18hEXEC/9xAhz 84USs77134Pcb1c3VLsnSZNbhVogBzlGU7w7mTqR/BzVRFiDnR5KBt7u21nwkw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658435756; a=rsa-sha256; cv=none; b=k85GZ6LtGePuiSRAP0u5YTMTgA3eTuZD8j96hEsfgdWHD6CygPl2DPxUx5caXY6eGhvYfo PUPrwvY4OcQ5OMJES9r94p8pcuwFT0IR4qLAIrgHPz3C3ucu4IvsvRRANU+vA8da/9F69A 0bQk23XI11iC2+y8owI2ts5cBBA6RJ1jMk96lDJqGq4MO4xPJNKkJA/h3Hf8T4L4UQGyI7 CrNTFEcc+eAlIvFOiMV4d+gHHV/BGS6QSQXSZYLGlq9RJuQWRxu80YCCkQqvlqw5aMOqt+ 8S1xp8lHh9M2jmc5026Cj2Na45mbqCoulsMy9ZwRzhWZE9M6fI5NAy5X/lXnGA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=HmqhluPg; dmarc=pass (policy=none) header.from=lepiller.eu; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.34 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=HmqhluPg; dmarc=pass (policy=none) header.from=lepiller.eu; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 84B531C644 X-Spam-Score: -5.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4x1390yi1ERW Hi Gottfried, you don't have to install tor or run it manually. The service is already running tor for you. To use Tor, you need to use a socks proxy to localhost:9050. You can configure icecat to connect to that proxy (and then check that you're actually connected through tor: https://check.torproject.org/ should say "Congratulations"). For other apps, you can use torsocks to proxy traffic through them, eg: torsocks wget \ http://c25o7knygjm3m67jy27yuynvv4pkfi25naucscmh4ubq2ggiig3v57ad.onion/ (that's my home page) Or, if they support it, you can configure the socks proxy directly in their configuration. HTH! Le Thu, 21 Jul 2022 17:49:29 +0000, Gottfried a =C3=A9crit : > Hi Guixers, >=20 > I installed "tor, tor-client, torsocks". and > also I have "tor-service-type" in my config.scm. >=20 > Nevertheless it doesn't appear anywhere. >=20 > I would like to use the Tor server separately, not in Firefox, as Tor=20 > Website proposed. >=20 > gfp@Tuxedo ~$ tor > Jul 21 19:30:24.097 [notice] Tor 0.4.7.8 running on Linux with > Libevent 2.1.12-stable, OpenSSL 1.1.1q, Zlib 1.2.11, Liblzma 5.2.5, > Libzstd 1.5.0 and Glibc 2.33 as libc. > Jul 21 19:30:24.097 [notice] Tor can't help you if you use it wrong!=20 > Learn how to be safe at=20 > https://support.torproject.org/faq/staying-anonymous/ > Jul 21 19:30:24.098 [notice] Configuration file=20 > "/gnu/store/11azs9lmx363vi1vnz59aim5yp1rv2b9-tor-client-0.4.7.8/etc/tor/t= orrc"=20 > not present, using reasonable defaults. > Jul 21 19:30:24.106 [notice] Opening Socks listener on 127.0.0.1:9050 > Jul 21 19:30:24.106 [warn] Could not bind to 127.0.0.1:9050: Address=20 > already in use. Is Tor already running? > Jul 21 19:30:24.106 [warn] Failed to parse/validate config: Failed to=20 > bind one of the listener ports. > Jul 21 19:30:24.106 [err] Reading config failed--see warnings above. >=20 > I guess, I have to set up other things as well, but I don't know what=20 > and how. >=20 > I didn't find enough information in the manual that makes it clear to > me. I found that in the manual: >=20 > 10.8.4 Networking Services >=20 > Scheme Variable: tor-service-type > This is the type for a service that runs the Tor anonymous networking=20 > daemon. The service is configured using a record. > By default, the Tor daemon runs as the tor unprivileged user, which > is a member of the tor group. >=20 > Data Type: tor-configuration > tor (default: tor) >=20 > The package that provides the Tor daemon. This package is expected to=20 > provide the daemon at bin/tor relative to its output directory. The=20 > default package is the Tor Project=E2=80=99s implementation. >=20 > config-file (default: (plain-file "empty" "")) > The configuration file to use. It will be appended to a default=20 > configuration file, and the final configuration file will be passed > to tor via its -f option. This may be any =E2=80=9Cfile-like=E2=80=9D obj= ect (see > file-like objects). See man tor for details on the configuration file > syntax. >=20 > hidden-services (default: '()) > The list of records to use. For any hidden service > you include in this list, appropriate configuration to enable the > hidden service will be automatically added to the default > configuration file. You may conveniently create > records using the tor-hidden-service procedure described below. >=20 > socks-socket-type (default: 'tcp) > The default socket type that Tor should use for its SOCKS socket. > This must be either 'tcp or 'unix. If it is 'tcp, then by default Tor > will listen on TCP port 9050 on the loopback interface (i.e., > localhost). If it is 'unix, then Tor will listen on the UNIX domain > socket /var/run/tor/socks-sock, which will be made writable by > members of the tor group. > If you want to customize the SOCKS socket in more detail, leave=20 > socks-socket-type at its default value of 'tcp and use config-file to=20 > override the default by providing your own SocksPort option. >=20 > control-socket? (default: #f) > Whether or not to provide a =E2=80=9Ccontrol socket=E2=80=9D by which Tor= can be=20 > controlled to, for instance, dynamically instantiate tor onion > services. If #t, Tor will listen for control commands on the UNIX > domain socket /var/run/tor/control-sock, which will be made writable > by members of the tor group. >=20 > Scheme Procedure: tor-hidden-service name mapping >=20 > Define a new Tor hidden service called name and implementing mapping.=20 > mapping is a list of port/host tuples, such as: >=20 > '((22 "127.0.0.1:22") > (80 "127.0.0.1:8080")) >=20 > In this example, port 22 of the hidden service is mapped to local > port 22, and port 80 is mapped to local port 8080. >=20 > This creates a /var/lib/tor/hidden-services/name directory, where the=20 > hostname file contains the .onion host name for the hidden service. >=20 > See the Tor project=E2=80=99s documentation for more information. >=20 >=20 > I read several emails in the guix-help archive about Tor from 2019, > but I don't know how to put that into practice. >=20 > Could somebody help me? >=20 > Gottfried >=20