Hi,
I’ve been following this guide to make tor work on Nixos (I’m using Nixos 20.03).
However, if I put in my configuration.nix
:
services.tor.enable = true;
sudo lsof -i -P -n | grep LISTEN
doesn’t show port 9050 open.
If I put:
services.tor.enable = true;
services.tor.client.enable = true;
then lsof shows both 9050 and 9063 open:
tor 23406 tor 6u IPv4 792647 0t0 TCP 127.0.0.1:9050 (LISTEN)
tor 23406 tor 7u IPv4 792648 0t0 TCP 127.0.0.1:9063 (LISTEN)
Why is that happening? Shouldn’t services.tor.enable
open port 9050 and services.tor.client.enable
open port 9063? Why do I need both lines?