Opened 13 years ago

Last modified 7 years ago

#278 closed defect (Works for me)

Register multiple hidden services using Tor Controller

Reported by: arma Owned by:
Priority: Low Milestone: 0.1.1.x-final
Component: Core Tor/Tor Version: 0.1.1.16-rc
Severity: Keywords:
Cc: arma Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Reported by Karsten Loesing <karsten.loesing@…>

How can I configure multiple hidden services using Tor Controller?

My first approach was to set the hidden service options one after the
other using TorControlConnection.setConf(List). The result is that after
I registered two hidden services, only the second is running. It appears
to overwrite the settings of the first service.

The second approach was to set both hidden services using one option
list. Then the controller complains when the second part of the options
is parsed, that the directory of the first hidden service cannot be written.

Configuring multiple hidden service using a config file works. But I
need to dynamically add hidden services during runtime.

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (3)

comment:1 Changed 13 years ago by arma

I just tried the following:
$ telnet localhost 9051
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
authenticate
250 OK
setconf hiddenservicedir=/tmp/hidde hiddenserviceport="80 127.0.0.1:80" hiddenservicedir=/tmp/hid2 hiddenserviceport="80 127.0.0.1:80"
250 OK

And it worked and created both hidden service directories.
Is this how you're trying to do it?

comment:2 Changed 13 years ago by arma

flyspray2trac: bug closed.
User error.

comment:3 Changed 7 years ago by nickm

Component: Tor ClientTor
Note: See TracTickets for help on using tickets.