Opened 2 years ago

Closed 2 years ago

#25967 closed defect (duplicate)

v3 onion keep working without the HiddenServiceVersion 3 line

Reported by: cypherpunks Owned by:
Priority: Medium Milestone: Tor: 0.3.4.x-final
Component: Core Tor/Tor Version: Tor:
Severity: Normal Keywords: tor-hs, prop224, 033-must-maybe, 032-backport, 033-backport
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


I started by defining a v3 hidden service in torrc and running tor, thus creating a v3 private key.

Then I commented out the HiddenServiceVersion 3 line and sent the tor process a sighup using kill -HUP processid.

The v2 private key and hostname were generated, but the v3 address kept working the v2 address did not work.

I then sent sighup again, and this time both the v2 and v3 addresses worked.

Child Tickets

Change History (6)

comment:1 Changed 2 years ago by Dbryrtfbcbhgf

  1. when you comment out HiddenServiceVersion 3 make sure you save the new torrc
  2. Try restarting the Tor service using systemctl restart tor@default this works on Ubuntu Linux.
Last edited 2 years ago by Dbryrtfbcbhgf (previous) (diff)

comment:2 Changed 2 years ago by Dbryrtfbcbhgf

Component: - Select a componentCore Tor/Tor

comment:3 Changed 2 years ago by cypherpunks

Hasty typing + bad english = Confusion.
Sorry about that.

I started off this experiment with an empty HiddenServiceDir folder, and yes I did save the torrc before doing kill -HUP. Otherwise the v2 onion private key wouldn't have been created.

The point is, in the end, BOTH v2 and v3 ended up working and running using a single HiddenServiceDir block with no HiddenServiceVersion 3 line.

The hostname file content eventually had the v2 address only. It did show the v3 address before I commented out the version line as expected.

comment:4 Changed 2 years ago by teor

Keywords: tor-hs prop224 033-must-maybe 032-backport 033-backport added
Milestone: Tor: 0.3.4.x-final
Version: Tor:

comment:5 Changed 2 years ago by cypherpunks

Hi again, I did some further testing and found out that you can enable BOTH v2 and v3 onions by starting with v3, then comment out the version line and SIGHUP, then reinstate the version line and SIGHUP.

Final hostname is the v3 onion, but both v2 and v3 will work.

I ran these tests using 2 tor instances on different socksport, one to create the hidden service, and the other as a client to access the hidden service. I stopped and started the second tor to make sure that there was no dns caching or stale circuits lying around.

comment:6 Changed 2 years ago by dgoulet

Resolution: duplicate
Status: newclosed

Duplicate #25761.

Note: See TracTickets for help on using tickets.