From 8d48cb1b8aa8d4f430d1d05c0beaea4e389d1038 Mon Sep 17 00:00:00 2001 From: MasterMax13124 Date: Thu, 1 Jul 2021 18:34:57 +0200 Subject: Tor: Typos fixed, colons added --- tor.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tor.html') diff --git a/tor.html b/tor.html index bbe8147..eb7bad9 100644 --- a/tor.html +++ b/tor.html @@ -1,7 +1,7 @@ - Mirror your site over tor + Mirror your site over Tor @@ -22,24 +22,24 @@

Installing Tor

-

Firstly we need to add the tor repo's to have the latest up to date version or tor.

+

Firstly we need to add the Tor repos to our system to get the latest version of Tor:

apt install -y apt-transport-https gpg
 echo "deb https://deb.torproject.org/torproject.org buster main
 deb-src https://deb.torproject.org/torproject.org buster main" > /etc/apt/sources.list.d/tor.list
-

Then we need to add the gpg keys to our keyring

+

Then we need to add the gpg keys to our keyring:

curl -s https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --import
 gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -
-

Now update and install tor

+

Now update and install Tor:

apt update
 apt install tor deb.torproject.org-keyring

Enabling Tor

-

Then edit the file /etc/tor/torrc, uncommenting the following lines:

+

Next edit the file /etc/tor/torrc, uncommenting the following lines:

HiddenServiceDir /var/lib/tor/hidden_service/
 HiddenServicePort 80 127.0.0.1:80
-

Now start and enable tor at boot

+

Now start and enable Tor at boot:

 systemctl enable --now tor 

If the next command outputs active in green you're golden!

 systemctl status tor
-

Now you're server is on the dark web. The following command will give you your onion address:

+

Now your server is on the dark web. The following command will give you your onion address:

 cat /var/lib/tor/hidden_service/hostname

Adding the Nginx Config

From here, the steps are almost identical to setting up a normal website configuration file. - Follow the steps as if you were making a new website on the webserver + Follow the steps as if you were making a new website in the webserver tutorial up until the server block of code. Instead, paste this:

@@ -80,7 +80,7 @@ HiddenServicePort 80 127.0.0.1:80

The root line is the path to whichever website of yours you'd like to mirror.

- From here we are almost done, all we have to do is enable the site and reload nginx which is also covered in the webserver tutorial. + Now we are almost done, all we have to do is enable the site and reload nginx which, is also covered in the webserver tutorial.

Update regularly!

-- cgit v1.2.3