Skip to main content

How to Host Your Own Tor Hidden Service

This is a tutorial on how to securely host and run your own Tor hidden service.

First thing that's required is your own web server and secondly you need to  configure the server in such a way as to prevent any possible information leaks (most importantly your location!).

This tutorial makes use of whonix, which means any accidental leaks (DNS, IP etc.) are highly unlikely. For even better security consider using a dedicated machine for running your web server.

So go ahead, download Whonix Workstation + Gateway. Download VirtualBox,  import the .ova files and fire up your machines. 

On the Whonix Gateway
sudo nano /etc/tor/torrc
#make sure to add the following 2 lines to file, save and exit
HiddenServiceDir /var/lib/tor/hidden_service/ 
HiddenServicePort 80 10.152.152.11:80
How to Host Your Own TOR Hidden Service Restart Tor
sudo service tor@default reload
A a hostname (e.g. 123xuadfuhqwer.onion) has been created! You can obtain it by displaying the contents of the  "hostname" file.
sudo cat /var/lib/tor/hidden_service/hostname
Now that you are done with configuring the Whonix Gateway, switch over to the Whonix Workstation, where we will install our Linux web server. I recommend using lighttpd an open-source web server which has an especially low memory footprint.
sudo apt-get update
sudo apt-get install lighttpd
Browsing to your .onion address will now result in the default lighttpd "placeholder"  and you may proceed to get your content up and running. 
How to Host Your Own tor Hidden Service

Comments

  1. this is great! thank you.

    ReplyDelete
  2. Is there really no port forwarding required?, I did everything as you put down, and it won't work.

    ReplyDelete
  3. You should check your firewall settings, or maybe some other software is using the configured port.

    ReplyDelete
  4. ... or .Onion is blocked by ISP

    ReplyDelete
  5. Onion is blocked by isp

    ReplyDelete

Post a Comment

Popular posts from this blog

OsmocomBB - Hardware and Software Setup - Tutorial (Motorola C118)

OsmocomBB is an Open Source GSM Baseband software implementation. By using the sofware on a compatible phone (e.g. Motorola C118), you are able to make and receive phone calls, send and receive SMS, etc. based on Free Software only.       Hardware PL2303HX USB Serial To RS232 TTL Chip 2.5 mm audio jack Motorola C118 (E88) This is a typical pin-out of a 2.5 mm audio jack: L (Left Signal) Tip 1 Green R (Right Signal) Ring 2 Red GND (Ground) Sleeve 3 Bare Copper You need to soldier the 2.5mm audio jack to the USB Serial To RS232 TTL Chip, whereas TxD is at the tip of the plug RxD is at the middle contact GND is the outer contact  Software Connect the phone to your PC and check if it is being recognized. dmesg | grep tty user@user:~$ dmesg | grep tty [    0.000000] console [tty0] enabled [ 6522.143379] usb 3-2: pl2303 converter now attached to ttyUSB0 To make sure everything is working, install cu and c

Scid vs PC installation guide - Ubuntu (Mint, Debian etc.)

Scid vs PC Scid vs PC is definitely the best and most comprehensive chess software for Linux.  Unfortunately I struggled quite a bit to get it up and running. Before I start: You might prefer to watch the video. Otherwise keep on reading. Open a terminal and execute the following commands sudo apt-get install auto-apt build-essential sudo auto-apt update-local sudo auto-apt update sudo auto-apt updatedb Now make sure you got both tcl8.5-dev and tk8.5-dev installed sudo apt-get install tcl8.5-dev tcl8.5 sudo apt-get install tk8.5-dev tk8.5 Some users are reporting problems on Ubuntu 14.04. sudo apt-get install tcl8.6-dev tcl8.6 sudo apt-get install tk8.6-dev tk8.6 libgcj15-dev The 'x' refers to the current release: e.g. 4.9.tgz download scid vs pc: http://sourceforge.net/projects/scidvspc/files/source/scid_vs_pc-4.9.tgz/download tar -xzf scid_vs_pc-4.xx.tgz cd scid_vs_pc-4.x sudo auto-apt run ./configure sudo auto-apt run make sudo auto-apt run make install

Banana Pi: Temperature Sensor (DS18B20) - Tutorial

Requirements --> Banana Pi running Raspbian for Banana Pi --> Breadboard --> Jumper Wires --> DS18b20 --> 4.7K Ohm resistor --> Breakout cobbler   Hardware Setup Refer to the graphic for the correct wiring. Make sure the Banana Pi is switched off to prevent any possible damage. Software Setup Double check the wiring and boot the device. In order to be able to access the temperature data, we need to make some minor adjustments to the script.bin file , which is a binary configuration file used by Allwinner SOC. sudo apt-get install git git clone https://github.com/linux-sunxi/sunxi-tools cd sunxi-tools make #location of the script.bin file cd /boot/bananapi/ #get the fex file sudo /home/bananapi/sunxi-tools/bin2fex script.bin bananapi.fex #edit the fex file sudo nano bananapi.fex #add the following at the end, save (CTRL + O) and close [w1_para] gpio = 4 #.fex back to .bin sudo /home/bananapi/sunxi-tools/fex2bin bananapi.fex script.bin sud