Home

How to set up a TOR hidden service

I had no idea setting up a .onion TOR hidden service is so easy. If you want to do it on a raspberry pi, it’s:

  1. sudo apt install nginx
  2. sudo nano /var/www/html/index.nginx-debian.html
    • Paste your index.html contents
  3. sudo service nginx restart
  4. sudo apt install tor
  5. sudo nano /etc/tor/torrc
    • Uncomment:
      • RunAsDaemon 1
      • DataDirectory /var/lib/tor
      • HiddenServiceDir /var/lib/tor/http_hs/
      • HiddenServicePort 80 127.0.0.1:80
  6. sudo service tor restart
  7. Get the onion link
    • sudo cat /var/lib/tor/hidden_service/hostname

(I’m not saying this is safe or secure - I don’t know - I’m just surprised it’s this easy)

Home