-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tor-hs: use named sections #21642
base: master
Are you sure you want to change the base?
tor-hs: use named sections #21642
Conversation
I also wanted to discuss how the tor config can be simplified. Here are current default configs:
The /tmp/torrc looks like
And the
It looks for me like too many of moving parts. Why would I need to edit the I created a topic Default folder for onion services where proposed to the Tor team to do that on their side. Also to create a standard location for hidden services. The tor-hs itself has a problem that the generated file is stored to |
Signed-off-by: Sergey Ponomarev <[email protected]>
Using substring instead of awk. It changes behaviour when only one port is specified. Previously: value="80" => public="80" local="" Now: value="80" => public="80" local="80" It simplifies configuration of one-to-one ports. Signed-off-by: Sergey Ponomarev <[email protected]>
I am not sure if @ja-pa continues using his Turris router together with tor, but to be safe about this. Let's also ping guys from @turris-cz, especially packagers (@paper42 , @miska), to look into it further because they could be interested in it. They do have Tor listed in reForis under package management: |
I tested on my Turris but I installed the tor from opkg. Now I enabled the Tor in packages but looks like nothing changed. How to check what exactly was installed? Currently the |
Also it may be better to introduce a new option |
Signed-off-by: Sergey Ponomarev <[email protected]>
The Name is used as a HS folder name and can't be empty. Signed-off-by: Sergey Ponomarev <[email protected]>
Replace boolean "true"/"false" with more frequently used 1/0. This may avoid configuration mistakes which is critical for Tor. The Luci app anyway will set it as 1/0. Make sections named. This is not required but again safes from mistakes when executing uci command. Uncomment sections but disable them by default. Then in a Luci app a user can quickly figure out what to change. Ideally a user may just enable the config and start using it. In the nextcloud config use a single 80 instead of 80;80. This simpler configuration is now supported. Instead of "Hidden service" the Tor team now uses "Onion service". Signed-off-by: Sergey Ponomarev <[email protected]>
I added 83e19fb to prevent error when Name is empty |
Let's ping anyone from @turris-cz to look into it. |
the changes are really minimal and can be reviewed just by eyes. The only questionable change is 83e19fb where onion services without a required Name are skipped. |
No one reviewed it yet and it seems like Turris guys are not interested in this anymore. I am not going to merge this unless I will or anyone else will review this. |
01472f3
to
3a243fd
Compare
Remove unused description. Quote variables. Use hostname_file variable. Remove unnecessary quotes around "common". Use echo -n to truncate a TORRC_FILE. Signed-off-by: Sergey Ponomarev <[email protected]>
Signed-off-by: Sergey Ponomarev <[email protected]>
I made additional cleanup and added validation. |
Signed-off-by: Sergey Ponomarev <[email protected]>
Previously the chown/chmod was performed each time even if the folder already existed. Signed-off-by: Sergey Ponomarev <[email protected]>
On each tor-hs service restart it generates a config file /etc/tor/torrc_generated. The /etc/ is stored on a disk and kills it and slow. Instead create a dedicated tor service Runtime Dir in the temp /var/run/. It will be accessible only to the tor user. Signed-off-by: Sergey Ponomarev <[email protected]>
Mark the /etc/tor folder to keep during sysupgrade. The folder contains hidden_services folder with keys. Signed-off-by: Sergey Ponomarev <[email protected]>
Add me as a second maintainer. Remove outdated README.md but put a link to a Wiki instead. Use Onion Service instead of Hidden Service. Signed-off-by: Sergey Ponomarev <[email protected]>
LGTM. Not sure if it's still required to squash commits, otherwise GTG. |
Because Jan seems no longer be involved in package, which he created and
added, feel free to retake maintainership.
Dne čt 8. 2. 2024 16:26 uživatel Stan Grishin ***@***.***>
napsal:
… LGTM. Not sure if it's still required to squash commits, otherwise GTG.
—
Reply to this email directly, view it on GitHub
<#21642 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7IDVAUZWXCYSSQUDFVOOLYSTVATAVCNFSM6AAAAAA2UWIPBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZUGM3DKMZUGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
In the 21bd809 I added myself as a second maintainer PKG_MAINTAINER:=Jan Pavlinec [email protected], Sergey Ponomarev [email protected] |
I know, but maybe we misunderstood each other. :) You dont need to be 2nd
maintainer as you seems to be using this package. So take maintainership
Dne čt 8. 2. 2024 16:39 uživatel Sergey Ponomarev ***@***.***>
napsal:
… In the 21bd809
<21bd809>
I added myself as a second maintainer
PKG_MAINTAINER:=Jan Pavlinec ***@***.***, Sergey Ponomarev
***@***.***
—
Reply to this email directly, view it on GitHub
<#21642 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7IDVEI26M4UKO53XJJKZLYSTWTRAVCNFSM6AAAAAA2UWIPBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZUGM4TGNBUGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I don't see any problem to have two maintainers |
Maintainer: @ja-pa
Compile tested: no
Run tested: TurrisOS 6.3.3
Description: minor changes to improve usability, see commit messages.