Hi everyone,
We’re building a Ricochet-inspired chat app, and there are situations where we want to create a new hidden service URL. On macOS and Linux we can send a SIGHUP to make Tor reload its config. What’s the best way to do this on Windows?
I found an old issue for this (https://gitlab.torproject.org/tpo/core/tor/-/issues/10052 https://gitlab.torproject.org/tpo/core/tor/-/issues/10052) but it looks like it never got addressed.
Thoughts?
Holmes
On Thu, Feb 18, 2021 at 10:59:34AM -0500, Holmes Wilson wrote:
We???re building a Ricochet-inspired chat app, and there are situations where we want to create a new hidden service URL. On macOS and Linux we can send a SIGHUP to make Tor reload its config. What???s the best way to do this on Windows?
Your best bet is to connect over the controlport and issue a 'signal reload' command.
My guess is that you will already be wanting a controller connection, for example to learn about Tor's bootstrap state or other warnings that Tor wants to give you, so hopefully this is an easy answer. :)
That said, how did you get into the situation where you want Tor to reload its config file? To me that sounds like you've made some weird UX choices like asking the user to go edit their torrc file, and maybe there are better choices -- for example, you could use setconf and saveconf over the control port to configure the onion service.
https://spec.torproject.org/control-spec
Hope that helps, --Roger
Thanks, this is helpful!
We were changing the .torrc file programmatically to add and remove hidden services and then sending a SIGHUP to get Tor to recognize the changes. We’ll try using the control port instead.
Thanks again,
-H
On Feb 18, 2021, at 1:04 PM, Roger Dingledine arma@torproject.org wrote:
On Thu, Feb 18, 2021 at 10:59:34AM -0500, Holmes Wilson wrote:
We???re building a Ricochet-inspired chat app, and there are situations where we want to create a new hidden service URL. On macOS and Linux we can send a SIGHUP to make Tor reload its config. What???s the best way to do this on Windows?
Your best bet is to connect over the controlport and issue a 'signal reload' command.
My guess is that you will already be wanting a controller connection, for example to learn about Tor's bootstrap state or other warnings that Tor wants to give you, so hopefully this is an easy answer. :)
That said, how did you get into the situation where you want Tor to reload its config file? To me that sounds like you've made some weird UX choices like asking the user to go edit their torrc file, and maybe there are better choices -- for example, you could use setconf and saveconf over the control port to configure the onion service.
https://spec.torproject.org/control-spec
Hope that helps, --Roger
tor-dev mailing list tor-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev
Well, perhaps this tool will be of use to you:
https://www.youtube.com/watch?v=Vpk6yvUWQqU
Something I made to help tor operators on Windows.
You can reconfigure tor (by the torrc file) with ease. Cheers. --Keifer
On Thu, Feb 18, 2021 at 9:59 AM Holmes Wilson h@zbay.llc wrote:
Hi everyone,
We’re building a Ricochet-inspired chat app, and there are situations where we want to create a new hidden service URL. On macOS and Linux we can send a SIGHUP to make Tor reload its config. What’s the best way to do this on Windows?
I found an old issue for this ( https://gitlab.torproject.org/tpo/core/tor/-/issues/10052) but it looks like it never got addressed.
Thoughts?
Holmes _______________________________________________ tor-dev mailing list tor-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev
thanks!
On Feb 18, 2021, at 5:30 PM, Keifer Bly keifer.bly@gmail.com wrote:
Well, perhaps this tool will be of use to you:
https://www.youtube.com/watch?v=Vpk6yvUWQqU https://www.youtube.com/watch?v=Vpk6yvUWQqU
Something I made to help tor operators on Windows.
You can reconfigure tor (by the torrc file) with ease. Cheers. --Keifer
On Thu, Feb 18, 2021 at 9:59 AM Holmes Wilson h@zbay.llc wrote: Hi everyone,
We’re building a Ricochet-inspired chat app, and there are situations where we want to create a new hidden service URL. On macOS and Linux we can send a SIGHUP to make Tor reload its config. What’s the best way to do this on Windows?
I found an old issue for this (https://gitlab.torproject.org/tpo/core/tor/-/issues/10052 https://gitlab.torproject.org/tpo/core/tor/-/issues/10052) but it looks like it never got addressed.
Thoughts?
Holmes _______________________________________________ tor-dev mailing list tor-dev@lists.torproject.org mailto:tor-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev _______________________________________________ tor-dev mailing list tor-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev