<div dir="ltr">Hello.<div><br></div><div>The ultra-paranoid would comment that it is better to have dedicated machines / VM's for each instance, and that machine should do nothing more than be a relay. However sometimes that isn't an option so instead there is tor-instance-create.</div><div><br></div><div>It sounds like your problems are in a file at /usr/share/tor/tor-service-defaults-torrc. Even if in your /etc/tor/torrc file you dont enable the SOCKSport, control port etc, they will be enabled because of this service defaults file. I believe there will also be copies of this service-defaults in /use/share/tor for instances to use.</div><div><br></div><div>In the default configuration, tor-instance-create will end up with two relays trying to use SOCKSport 9050, enable control port at 9051 with cookie and a few other things (yet more race conditions) AND no logs so you have no idea what is happening.</div><div><br></div><div>Firstly, delete what you dont want from /usr/share/tor/tor-service-defaults-torrc file and its copies. Try to use /etc/tor/torr and /etc/tor/instances/instance_name/torrc for all options and it will be easier to manage.</div><div><br></div><div>Secondly, enable logs for all relays. You will have to change the default file from /var/log/tor/notices.log to notices_instance1.log or something for each instance. This will stop race conditions for the logs, you will have to follow the same logic for everything else (eg race to use port 9050)</div><div><br></div><div>Lastly, if you want to stop the "first/main" instance from running I use sudo service tor stop, but this will change depending on your machine / OS. </div><div><br></div><div>BTW if you delete /etc/tor/torrc apt-get will ask you displaying a screen that says "the package maintainer has shipped a new configuration file what you do want to do" with about 4/5 options. It will only (re-)install /etc/tor/torrc if you tell it to (the default option is no I think).</div><div><br></div><div>I hope that helps.</div><div><br></div><div>Thanks.</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 21 March 2018 at 05:43, Igor Mitrofanov <span dir="ltr"><<a href="mailto:igor.n.mitrofanov@gmail.com" target="_blank">igor.n.mitrofanov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I use tor-instance-create to spawn a number of relay instances.<br>
However, there seems to be one extra instance running - the default<br>
one that reads /etc/tor/torrc (and not<br>
/etc/tor/instances/INSTANCE/<wbr>torrc).<br>
<br>
How do I disable that default tor relay? It opens port 9050 and does<br>
who else knows what by default. I can delete /etc/tor/torrc and it<br>
seems to do the trick, however, I am not sure how permanent this<br>
change will be with automatic package updates.<br>
<br>
Thanks!<br>
______________________________<wbr>_________________<br>
tor-relays mailing list<br>
<a href="mailto:tor-relays@lists.torproject.org">tor-relays@lists.torproject.<wbr>org</a><br>
<a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays" rel="noreferrer" target="_blank">https://lists.torproject.org/<wbr>cgi-bin/mailman/listinfo/tor-<wbr>relays</a><br>
</blockquote></div><br></div></div>