Troubleshooting Tor 0.2.7.1+ ephemeral hidden services

I'm trying to add support for ephemeral hidden services to OnionShare. They'll solve a wide variety of problems related to OnionShare using a system Tor instead of Tor browser, and running in environments like Tails or Whonix. I'd rather never write the hidden service info to disk anyway. I noticed that Tor Browser 5.5a2 comes with Tor 0.2.7.2-alpha, so it's easy to test. But so far I'm not having any success, at least with using stem. Before I open a bug report, either against stem or against tor, am I doing this right? I've made a simple test project: https://github.com/micahflee/ephemeral-hs-test It successfully appears to create the hidden service, but it never succeeds in connecting to itself. I also can't connect to it using Tor Browser. -- Micah Lee

Hi Micah, on first glance looks fine. For what it's worth here's the example I got working a while back... https://stem.torproject.org/tutorials/over_the_river.html#ephemeral-hidden-s... Cheers! -Damian On Tue, Sep 8, 2015 at 4:58 PM, Micah Lee <micah@micahflee.com> wrote:
I'm trying to add support for ephemeral hidden services to OnionShare. They'll solve a wide variety of problems related to OnionShare using a system Tor instead of Tor browser, and running in environments like Tails or Whonix. I'd rather never write the hidden service info to disk anyway.
I noticed that Tor Browser 5.5a2 comes with Tor 0.2.7.2-alpha, so it's easy to test. But so far I'm not having any success, at least with using stem.
Before I open a bug report, either against stem or against tor, am I doing this right? I've made a simple test project:
https://github.com/micahflee/ephemeral-hs-test
It successfully appears to create the hidden service, but it never succeeds in connecting to itself. I also can't connect to it using Tor Browser.
-- Micah Lee
_______________________________________________ tor-dev mailing list tor-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev

On 09/08/2015 05:04 PM, Damian Johnson wrote:
Hi Micah, on first glance looks fine. For what it's worth here's the example I got working a while back...
https://stem.torproject.org/tutorials/over_the_river.html#ephemeral-hidden-s...
Cheers! -Damian
Doh, I figured out what I did wrong. I was calling: res = c.create_ephemeral_hidden_service(WEB_PORT) When I should have been calling: res = c.create_ephemeral_hidden_service({ 80: WEB_PORT }, await_publication = True) The await_publication flag is great, too. Thanks, it's working for me now. -- Micah Lee
participants (2)
-
Damian Johnson
-
Micah Lee