From 73ced75cda933f43113e3262d5171311c68bbfaf Mon Sep 17 00:00:00 2001 From: el3ctr0lyte <69082962+el3ctr0lyte@users.noreply.github.com> Date: Thu, 1 Jul 2021 09:10:05 +0200 Subject: Updated tor guide --- tor.html | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'tor.html') diff --git a/tor.html b/tor.html index 0d54b5f..52941ed 100644 --- a/tor.html +++ b/tor.html @@ -25,9 +25,20 @@

Setting up Tor

-

First, install tor. On Debian it's as simple as:

+

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

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

Then we need to add the gpg keys to our keyring

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

Now update and install tor

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

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

        HiddenServiceDir /var/lib/tor/hidden_service/
@@ -72,6 +83,10 @@
         

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.

+

Also make sure to update tor on a regular basis by running

+
apt update
+
apt install tor
+ Contributor - tomfasano.xyz -- cgit v1.2.3 From 49f45ee59d713b53c96e77cf93ecc05b8a016037 Mon Sep 17 00:00:00 2001 From: el3ctr0lyte <69082962+el3ctr0lyte@users.noreply.github.com> Date: Thu, 1 Jul 2021 09:15:11 +0200 Subject: Update tor.html --- tor.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tor.html') diff --git a/tor.html b/tor.html index 52941ed..fb8c896 100644 --- a/tor.html +++ b/tor.html @@ -26,7 +26,7 @@

Setting up Tor

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

- +
apt install apt-transport-https
echo "deb https://deb.torproject.org/torproject.org buster main" > /etc/apt/sources.list.d/
echo "deb-src https://deb.torproject.org/torproject.org buster main" >> /etc/apt/sources.list.d/
-- cgit v1.2.3 From eb18006d34821e3309acc8fd48633762cee301a4 Mon Sep 17 00:00:00 2001 From: el3ctr0lyte <69082962+el3ctr0lyte@users.noreply.github.com> Date: Thu, 1 Jul 2021 09:33:53 +0200 Subject: Update tor.html --- tor.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tor.html') diff --git a/tor.html b/tor.html index fb8c896..5b5aa41 100644 --- a/tor.html +++ b/tor.html @@ -27,8 +27,8 @@

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

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

Then we need to add the gpg keys to our keyring

-- cgit v1.2.3 From 0f329b39023b3db4b849818596cc689b5267a79f Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 1 Jul 2021 07:14:21 -0400 Subject: fix tor screw-ups --- tor.html | 48 +++++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 23 deletions(-) (limited to 'tor.html') diff --git a/tor.html b/tor.html index 5b5aa41..bbe8147 100644 --- a/tor.html +++ b/tor.html @@ -17,32 +17,31 @@

Now that you have a website, why not offer it on a private alternative such as the onion network?

-

Setting up Tor

+

Installing Tor

+

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

-
apt install apt-transport-https
-
echo "deb https://deb.torproject.org/torproject.org buster main" > /etc/apt/sources.list.d/tor
-
echo "deb-src https://deb.torproject.org/torproject.org buster main" >> /etc/apt/sources.list.d/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

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

Now update and install tor

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

Enabling Tor

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

-
        HiddenServiceDir /var/lib/tor/hidden_service/
-        HiddenServicePort 80 127.0.0.1:80
+
HiddenServiceDir /var/lib/tor/hidden_service/
+HiddenServicePort 80 127.0.0.1:80
HiddenServiceDir line.

-

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