From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Making package.el talk over Tor Date: Sat, 16 Dec 2023 22:21:14 -0500 Message-ID: References: <8734ybkqf4.fsf@disroot.org> <87sf54q2t8.fsf@posteo.net> <83o7fql10t.fsf@gnu.org> <83y1e3ygah.fsf@gnu.org> <87sf45m0n2.fsf@posteo.net> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26958"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 17 04:22:14 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rEhjJ-0006of-8S for ged-emacs-devel@m.gmane-mx.org; Sun, 17 Dec 2023 04:22:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rEhiP-0006J4-JR; Sat, 16 Dec 2023 22:21:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rEhiN-0006IL-17 for emacs-devel@gnu.org; Sat, 16 Dec 2023 22:21:15 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rEhiM-0008Bd-PS; Sat, 16 Dec 2023 22:21:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=syqsIeijiCMXJ6rLaER1NMBP31oPL3i4+0NNgxBT5Pw=; b=GfKMeW1e3ZfU kKmDrcBHHG6lfbIM14GNDfTRSOpTdlEMYrhcYMpfYGlII8AwxbWE0tjz6GQ2SzPwFfxUHHbWWCrKQ 8PyIy3n82HnhWh8EzrZcRjWU3T6WmbLogfiBrMC+g1AL5w0BrPS5UAl7qvHPTWiHx/ew8OPx2nliP fyXT73BX6aBwDvtiVDCO7XfOqfuCGt4qmgizue/8qtdzvvAo6ul1X0k2GYms4IPo1tkY6csb1t2Xp b6VdZC4jz5u49XV4qbabXiaO/KVnMt9XbQFFiMdGu76Io77kVGxVkQdGUlTRP2dbAWminxeyOWT/b XnV2D4FeCQtJ975wwP4oQw==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rEhiM-00026O-C4; Sat, 16 Dec 2023 22:21:14 -0500 In-Reply-To: <87sf45m0n2.fsf@posteo.net> (message from Philip Kaludercic on Thu, 14 Dec 2023 12:25:37 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:313898 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > If you have a Tor daemon running on your system, it should provide a > SOCKS proxy by default, I believe it does that. meaning that you can configure every package > that uses url.el to go through this proxy (unless I have misunderstood > something): Maybe that is possible. But I know very little about sockets or how to use them. I would appreciate precise advice about what I should do to tell package.el to connect using Tor. You sent this code (let ((conn (open-network-stream "test" (current-buffer) "gnu.org" "http" :type 'shell :shell-command "torsocks nc %s %p"))) (process-send-string conn "GET / HTTP/1.0\r\n\r\n")) but I don't think that is a solution ready to use. It looks like a proposed approach for designing that solution. Also, the end of your message MAY mean that this approach is not applicable to package.el. > If you have a Tor daemon running on your system, it should provide a > SOCKS proxy by default, meaning that you can configure every package > that uses url.el to go through this proxy (unless I have misunderstood > something): > --8<---------------cut here---------------start------------->8--- > (setq url-gateway-method 'socks > socks-server '("Tor" "localhost" 9050 5)) > --8<---------------cut here---------------end--------------->8--- > That being said, while testing I noticed that when connecting to a > server I have access to, I always receive two requests, one from a Tor > exit node and one from my current IP address. Unless I missed something > obvious, that might be a bug. I await word about further progress. When I know enough to be able to do it, I will add a feature to package.el for a user option to tell it to go through Tor always. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)