Skip to content

TOR

TOR

Configuration

Hidden services

  1. Enable HiddenServiceDir and at least one HiddenServicePort in /etc/tor/torrc.
  2. Then create the HiddenServiceDir and give it the proper permissions, for example:
    mkdir /var/lib/tor/hidden_service/
    chown debian-tor:debian-tor /var/lib/tor/hidden_service/
    chmod 0700 /var/lib/tor/hidden_service/
    
  3. Restart the tor service.

You can get the hostname (.onion) from HiddenServiceDir/hostname.

Custom onion hostname

To get a customized .onion url you can use Shallot.

Debug

Check if Tor is working from the command line

curl --socks5 localhost:9050 --socks5-hostname localhost:9050 -s https://check.torproject.org/ | cat | grep -m 1 Congratulations | xargs