Setup Tor Hidden Service on CentOS 7

Tor is provided by EPEL repository on CentOS 7. Install EPEL repo with command

Install tor

Edit tor config file

Uncomment or add following lines

Restart tor with command

Now your tor hidden service is ready to use. You need to run your web application on 127.0.0.1:80

To see URL of your tor hidden service, run

Make sure to make a backup of folder “/var/lib/tor/hidden_service/” as it comtains keys for this .onion domain. If you lost it, you will lose your domain name. So it is very important you keep the files safe.

To stop/start tor, run

See tor

Add a Comment

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