Dec 29, 2020 07:29 AM
(This post was last modified: Dec 29, 2020 07:31 AM by guardian.)
A quick & dirty tutorial, showing you how to setup your first own hidden service
System: Debian 10
Before you start:
Make sure your hosting providers allows the usage of Tor. A lot of them do not and it might get you into trouble.
To begin, you first have to install tor
When tor has been installed, edit the torrc
In there, search for the lines starting with HiddenServiceDir and HiddenServicePort
Uncomment them by removing the # at the beginning of each line
It should then look something like this
![[Image: tor-dir.png]](https://i.ibb.co/wsvDSxm/tor-dir.png)
I set the port to 80 on localhost, so when I start a local service on port 80, it willl automatically be reachable through its hidden service address
Now restart the Tor service, so that changes can take effect
If we now cd into /var/lib/tor/hf_tutorial, we can see that the folder has been created and files have been put into it
![[Image: tor-files2.png]](https://i.ibb.co/Krc6ZZs/tor-files2.png)
The public key and the private key are saved in this directory, as they are needed for the encryption of the hidden service to function properly
authorized is a directory that can be used for client authorization, but this is not something we will go over in this tutorial
Finally, the hostname.
This file contains your onion address, in this case v3.
We will now test our hidden service by running an nginx server and accessing from our onion address
After installing nginx and changing it's index file, we get the following, when accessing the .onion url from Tor Browser
![[Image: hs-result.png]](https://i.ibb.co/hWnYDvb/hs-result.png)
Congratulations, you just installed your own hidden service!
Of course there is a lot more to do, if you want it to be completely anonymous and bulletproof
But this tutorial should just present you the basics of how things work, hope you enjoyed it
System: Debian 10
Before you start:
Make sure your hosting providers allows the usage of Tor. A lot of them do not and it might get you into trouble.
To begin, you first have to install tor
Code
apt -y install torWhen tor has been installed, edit the torrc
Code
nano /etc/tor/torrcIn there, search for the lines starting with HiddenServiceDir and HiddenServicePort
Uncomment them by removing the # at the beginning of each line
It should then look something like this
![[Image: tor-dir.png]](https://i.ibb.co/wsvDSxm/tor-dir.png)
I set the port to 80 on localhost, so when I start a local service on port 80, it willl automatically be reachable through its hidden service address
Now restart the Tor service, so that changes can take effect
Code
sudo systemctl restart torIf we now cd into /var/lib/tor/hf_tutorial, we can see that the folder has been created and files have been put into it
![[Image: tor-files2.png]](https://i.ibb.co/Krc6ZZs/tor-files2.png)
The public key and the private key are saved in this directory, as they are needed for the encryption of the hidden service to function properly
authorized is a directory that can be used for client authorization, but this is not something we will go over in this tutorial
Finally, the hostname.
This file contains your onion address, in this case v3.
We will now test our hidden service by running an nginx server and accessing from our onion address
Code
apt -y install nginxAfter installing nginx and changing it's index file, we get the following, when accessing the .onion url from Tor Browser
![[Image: hs-result.png]](https://i.ibb.co/hWnYDvb/hs-result.png)
Congratulations, you just installed your own hidden service!
Of course there is a lot more to do, if you want it to be completely anonymous and bulletproof
But this tutorial should just present you the basics of how things work, hope you enjoyed it
All my answers/posts are for educational purposes only. I am not in any way responsible for the actions you perform with the acquired knowledge.
![[Image: ZjBA6fR.gif]](https://i.imgur.com/ZjBA6fR.gif)


