Tor Hidden Service in Ubuntu/Debian

tor browser

To install tor on Ubuntu/Debian, run

Default configuration file for tor is /etc/tor/torrc

To enable hidden service, edit /etc/tor/torrc

uncomment lines

Create folder for your hidden service

You need to install Apache/Nginx etc.. to serve your web application. Make sure to configure web application listen on 127.0.0.0:80

Now restart tor with command

Ubuntu/Debian support multiple instances of tor. You can use command “/usr/sbin/tor-instance-create” to create new tor instance. Configuration for instanced tor available at /etc/tor/instances/INSTANCE_NAME/torrc

To see URL for your Hidden service, run

Example

You should be able to visit the application using .onion link in Tor Browser.

You need to take backup of tor folder (/var/lib/tor/hidden_service) as it contains your secret keys, this is needed to use the .onion domain name. If you lose this, you will lose the .onion url.

To start the service on boot, run

See Tor

Add a Comment

Your email address will not be published. Required fields are marked *