Changes between Initial Version and Version 4 of Ticket #20007


Ignore:
Timestamp:
Sep 8, 2016, 11:41:00 AM (3 years ago)
Author:
segfault
Comment:

What happens when you turn sandbox off and hidden service auth on?

Without the sandbox it works as expected. I updated the description to include this case.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20007

    • Property Cc asn added
    • Property Component changed from - Select a component to Core Tor/Tor
  • Ticket #20007 – Description

    initial v4  
    33Steps to reproduce:
    44
    5 Start Tor with a hidden service:
     5  Start Tor with a hidden service:
    66
    77{{{
    8 /usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc --RunAsDaemon 0 --Log debug --CookieAuthentication 0  --Sandbox 1 --HiddenServiceDir /var/lib/tor/hidden_service/ --HiddenServicePort 80 > tor.log
     8/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc --RunAsDaemon 0 --Log debug --CookieAuthentication 0  --Sandbox 1 --HiddenServiceDir /var/lib/tor/hidden_service/ --HiddenServicePort 80
    99}}}
    10 
    11 Try setting HidServAuth via the control port:
     10  Try setting HidServAuth via the control port:
    1211
    1312{{{
     
    1514SETCONF HidServAuth=\"prkszpeygn2a3kxo.onion iGwsXkMwZEHuq/0YCD6IGQ\"" | nc -U /var/run/tor/control
    1615}}}
    17 
    18 Output:
     16  Output:
    1917
    2018{{{
     
    2220513 Unacceptable option value: Failed to configure rendezvous options. See logs for details.
    2321}}}
    24 
    25 Log:
     22  Log:
    2623
    2724{{{
     
    2926Aug 27 15:31:55.000 [warn] Controller gave us config lines that didn't validate: Failed to configure rendezvous options. See logs for details.
    3027}}}
     28If we start Tor without a hidden service or without the sandbox, it works without errors:
    3129
    32 If we start Tor without a hidden service, it works without errors:
     30  Without hidden service:
    3331
    3432{{{
    35 /usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc --RunAsDaemon 0 --Log debug --CookieAuthentication 0  --Sandbox 1 > tor.log
     33/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc --RunAsDaemon 0 --Log debug --CookieAuthentication 0  --Sandbox 1
    3634}}}
     35  or without sandbox:
    3736
    38 Set HidServAuth via the control port:
     37{{{
     38/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc --RunAsDaemon 0 --Log debug --CookieAuthentication 0  --Sandbox 0 --HiddenServiceDir /var/lib/tor/hidden_service/ --HiddenServicePort 80
     39}}}
     40  Set HidServAuth via the control port:
    3941
    4042{{{
     
    4244SETCONF HidServAuth=\"prkszpeygn2a3kxo.onion iGwsXkMwZEHuq/0YCD6IGQ\"" | nc -U /var/run/tor/control
    4345}}}
    44 
    45 Output:
     46  Output:
    4647
    4748{{{