From 0f800a5eaf9be3c26ac0614593e605a57dcdaf5e Mon Sep 17 00:00:00 2001 From: mjfernez Date: Fri, 29 Oct 2021 19:31:09 -0400 Subject: Fix code tags --- tutorials/how-to-host-a-tor-hidden-service.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tutorials/how-to-host-a-tor-hidden-service.html') diff --git a/tutorials/how-to-host-a-tor-hidden-service.html b/tutorials/how-to-host-a-tor-hidden-service.html index cfba522..aebc21c 100644 --- a/tutorials/how-to-host-a-tor-hidden-service.html +++ b/tutorials/how-to-host-a-tor-hidden-service.html @@ -11,7 +11,7 @@

You may need to enable the service first. I think this is done by default now, but it doesn't hurt:

$ sudo systemctl enable tor.service

Configure Tor

-

You'll need to edit the file /etc/tor/torrc before your service can be available over Tor. Use vim, nano, or whatever you like to edit the file (as root!) and search for the following lines:

+

You'll need to edit the file "/etc/tor/torrc" before your service can be available over Tor. Use vim, nano, or whatever you like to edit the file (as root!) and search for the following lines:

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

Remove the '#' at the beginning oh each and change the port to 8000 like so:

@@ -29,6 +29,6 @@ HiddenServicePort 80 127.0.0.1:8000

Change into the directory and run Python's built-in http server:

$ cd files
 $ python3 -m http.server
-

You'll see the server is being hosted on port 8000, which is what we chose in the config file earlier. Just leave it running, or send it to the background with Ctrl+Z and run bg.

-

And that's it! You are now the proud owner of a tor hidden service. Take the hostname you copied down before and add .onion to the end and give it to your friends so they can browse the files in the directory through the Tor Browser.

+

You'll see the server is being hosted on port 8000, which is what we chose in the config file earlier. Just leave it running, or send it to the background with Ctrl+Z and run "bg".

+

And that's it! You are now the proud owner of a tor hidden service. Take the hostname you copied down before and add ".onion" to the end and give it to your friends so they can browse the files in the directory through the Tor Browser.

Be sure to watch the program log though... lest they get up to no good.

-- cgit v1.2.3