emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making package.el talk over Tor


From: Richard Stallman
Subject: Re: Making package.el talk over Tor
Date: Sat, 16 Dec 2023 22:21:14 -0500

[[[ 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)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]