From: "Ludovic Courtès" <ludo@gnu.org>
To: Tobias Geerinckx-Rice <me@tobias.gr>,
54370@debbugs.gnu.org, poiNt_3D <point4d@gmail.com>,
Evgeny Pisemsky <evgeny@pisemsky.com>,
Maxime Devos <maximedevos@telenet.be>
Subject: bug#54370: guix.gnu.org is inaccessible from Russia
Date: Sat, 19 Mar 2022 12:04:45 +0100 [thread overview]
Message-ID: <87y216mcdu.fsf_-_@gnu.org> (raw)
In-Reply-To: <87bky7przs.fsf@gnu.org> ("Ludovic Courtès"'s message of "Tue, 15 Mar 2022 08:57:59 +0100")
Hi,
I updated the onion address in the section of the cookbook that explains
how to get substitutes from ci.guix over Tor:
https://guix.gnu.org/cookbook/en/html_node/Getting-substitutes-from-Tor.html
Copying the text inline below.
Next step is to publish an Onion service for the web site.
HTH,
Ludo’.
3.8 Getting substitutes from Tor
================================
Guix daemon can use a HTTP proxy to get substitutes, here we are
configuring it to get them via Tor.
Warning: _Not all_ Guix daemon’s traffic will go through Tor! Only
HTTP/HTTPS will get proxied; FTP, Git protocol, SSH, etc
connections will still go through the clearnet. Again, this
configuration isn’t foolproof some of your traffic won’t get routed
by Tor at all. Use it at your own risk.
Also note that the procedure described here applies only to package
substitution. When you update your guix distribution with ‘guix
pull’, you still need to use ‘torsocks’ if you want to route the
connection to guix’s git repository servers through Tor.
Guix’s substitute server is available as a Onion service, if you want
to use it to get your substitutes through Tor configure your system as
follow:
(use-modules (gnu))
(use-service-module base networking)
(operating-system
…
(services
(cons
(service tor-service-type
(tor-configuration
(config-file (plain-file "tor-config"
"HTTPTunnelPort 127.0.0.1:9250"))))
(modify-services %base-services
(guix-service-type
config => (guix-configuration
(inherit config)
;; ci.guix.gnu.org's Onion service
(substitute-urls
"https://4zwzi66wwdaalbhgnix55ea3ab4pvvw66ll2ow53kjub6se4q2bclcyd.onion")
(http-proxy "http://localhost:9250")))))))
This will keep a tor process running that provides a HTTP CONNECT
tunnel which will be used by ‘guix-daemon’. The daemon can use other
protocols than HTTP(S) to get remote resources, request using those
protocols won’t go through Tor since we are only setting a HTTP tunnel
here. Note that ‘substitutes-urls’ is using HTTPS and not HTTP or it
won’t work, that’s a limitation of Tor’s tunnel; you may want to use
‘privoxy’ instead to avoid such limitations.
If you don’t want to always get substitutes through Tor but using it
just some of the times, then skip the ‘guix-configuration’. When you
want to get a substitute from the Tor tunnel run:
sudo herd set-http-proxy guix-daemon http://localhost:9250
guix build \
--substitute-urls=https://4zwzi66wwdaalbhgnix55ea3ab4pvvw66ll2ow53kjub6se4q2bclcyd.onion ...
next prev parent reply other threads:[~2022-03-19 11:05 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-13 6:14 bug#54370: network problem or intentional blocking? poiNt_3D
2022-03-13 9:05 ` bug#54370: Guix in Russia Evgeny Pisemsky
2022-03-13 11:43 ` bug#54370: network problem or intentional blocking? Tobias Geerinckx-Rice via Bug reports for GNU Guix
2022-03-13 12:15 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2022-03-13 12:36 ` Christopher Baines
2022-03-13 14:30 ` Ludovic Courtès
2022-03-13 15:30 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2022-03-13 20:03 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
[not found] ` <3F8ECF7D-4C80-4D03-B7A1-60EBAD3EE206@tobias.gr>
[not found] ` <CAOT6rO__s7aLsK_ZOE-RO49CyJ=VptAJBf79F=bE8pJ2XHcEOA@mail.gmail.com>
2022-03-13 19:50 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2022-03-13 20:36 ` Maxime Devos
2022-03-15 7:57 ` Ludovic Courtès
2022-03-19 11:04 ` Ludovic Courtès [this message]
2023-02-07 15:33 ` Christopher Baines
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y216mcdu.fsf_-_@gnu.org \
--to=ludo@gnu.org \
--cc=54370@debbugs.gnu.org \
--cc=evgeny@pisemsky.com \
--cc=maximedevos@telenet.be \
--cc=me@tobias.gr \
--cc=point4d@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.