From: "Ludovic Courtès" <ludo@gnu.org>
To: Nigko Yerden <nigko.yerden@gmail.com>
Cc: Maxim Cournoyer <maxim.cournoyer@gmail.com>,
Florian Pelz <pelzflorian@pelzflorian.de>,
70341@debbugs.gnu.org, Matthew Trzcinski <matt@excalamus.com>
Subject: [bug#70341] [PATCH v7] services: tor: Add support for pluggable transports.
Date: Wed, 04 Sep 2024 16:08:03 +0200 [thread overview]
Message-ID: <87ed5zcy0s.fsf@gnu.org> (raw)
In-Reply-To: <6bcd7fab071edaf6c8ffbbfd86fef286ee7e38e7.1723194927.git.nigko.yerden@gmail.com> (Nigko Yerden's message of "Fri, 9 Aug 2024 14:15:27 +0500")
Hi Nigko,
Nigko Yerden <nigko.yerden@gmail.com> skribis:
> Pluggable transports are programs that disguise Tor traffic, which
> can be useful in case Tor is censored. Pluggable transports
> cannot be configured by #:config-file file exclusively because Tor
> process is run via 'least-authority-wrapper' and cannot have access
> to transport plugin, which is a separate executable (Bug#70302,
> Bug#70332).
>
> Example configuration snippet to be appended to
> operation-system services
> (see https://bridges.torproject.org/ to get
> full bridge's lines):
>
> (service tor-service-type
> (tor-configuration
> (config-file (plain-file "torrc"
> "\
> UseBridges 1
> Bridge obfs4 ...
> Bridge obfs4 ..."))
> (transport-plugins
> (list (tor-transport-plugin
> (path-to-binary
> (file-append
> go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-lyrebird
> "/bin/lyrebird")))))))
>
> * doc/guix.texi (Networking Services): Document 'tor-transport-plugin'
> data type and 'transport-plugins' option for 'tor-configuration.
> * gnu/services/networking.scm: Export
> 'tor-configuration-transport-plugins', 'tor-transport-plugin',
> 'tor-transport-plugin?', 'tor-transport-plugin-role',
> 'tor-transport-plugin-protocol', and 'tor-transport-plugin-path'.
> (<tor-configuration>): Add 'transport-plugins' field.
> (<tor-transport-plugin>): New variable.
> (tor-configuration->torrc): Add content to 'torrc' computed-file.
> (tor-shepherd-service): Add file-system-mapping(s).
>
> Change-Id: I1b0319358778c7aee650bc843e021a6803a1cf3a
[...]
> +Each transport plugin corresponds either to
> +``ClientTransportPlugin ...'' or to
> +``ServerTransportPlugin ...'' line in the default
Maybe use @code{…} instead of quotes above.
Could you perhaps move the example from the commit log to doc/guix.texi,
enclosed in @lisp, and with one or two sentences explaining what it
does?
> +configuration file, see the @code{man tor}.
Rather: “see @command{man tor}.”
> +(define-record-type* <tor-transport-plugin>
> + tor-transport-plugin make-tor-transport-plugin
> + tor-transport-plugin?
> + (role tor-transport-plugin-role
> + (default 'client)
> + (sanitize (lambda (value)
> + (if (memq value '(client server))
> + value
> + (configuration-field-error #f 'role value)))))
> + (protocol tor-transport-plugin-protocol
> + (default "obfs4"))
> + (path-to-binary tor-transport-plugin-path))
Rather: (program tor-plugin-program)
The doc needs to be updated as well.
(By convention, in Guix and GNU, “path” refers to “search paths” like
$PATH or $PYTHONPATH; to avoid the ambiguity, we use the term “file
name” or something along these lines.)
Apart from that it looks great to me.
Could you send an updated patch?
Thanks, and apologies for the delay!
Ludo’.
next prev parent reply other threads:[~2024-09-04 14:09 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-11 14:48 [bug#70341] [PATCH] gnu: Add support for pluggable transports to tor-service-type Nigko Yerden
2024-04-20 14:43 ` [bug#70341] [PATCH v2] services: tor: Add support for pluggable transports Nigko Yerden
2024-04-22 3:58 ` [bug#70341] [PATCH v3] " Nigko Yerden
2024-04-24 21:11 ` bug#70302: " André Batista
2024-04-25 6:08 ` Nigko Yerden
2024-04-30 9:13 ` Nigko Yerden
2024-05-10 8:32 ` [bug#70341] [PATCH v4] " Nigko Yerden
2024-05-23 21:49 ` André Batista
2024-05-31 5:43 ` [bug#70341] [PATCH v5] " Nigko Yerden
2024-07-11 13:27 ` [bug#70341] [PATCH v6] " Nigko Yerden
2024-08-09 9:15 ` [bug#70341] [PATCH v7] " Nigko Yerden
2024-09-04 14:08 ` Ludovic Courtès [this message]
2024-09-17 13:11 ` [bug#70341] [PATCH v8] " Nigko Yerden
2024-10-06 17:39 ` [bug#70341] [PATCH v9] " Nigko Yerden
2024-10-14 11:41 ` bug#70341: " Ludovic Courtès
2024-10-14 16:36 ` [bug#70341] " Nigko Yerden
2024-10-15 6:26 ` Nigko Yerden
2024-10-15 15:43 ` Ludovic Courtès
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=87ed5zcy0s.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=70341@debbugs.gnu.org \
--cc=matt@excalamus.com \
--cc=maxim.cournoyer@gmail.com \
--cc=nigko.yerden@gmail.com \
--cc=pelzflorian@pelzflorian.de \
/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.