I want to serve a website through tor, so that I don’t have to pay a hosting service or provide my ip to the users.
I’ve followed the steps on Arch Wiki and torproject.org:
Step 0: Get a working Tor
$ yay -S tor
$ sudo systemctl enable --now tor.service
Step 1: Get a web server working
$ cd ~/code/go/stash-box
$ ./stash-box --host 127.0.0.1 --port 9998 &
Step 2: Configure your Tor Onion Service
Added this lines to /etc/tor/torrc
HiddenServiceDir /var/lib/tor/media_wiki/
HiddenServicePort 9998 127.0.0.1:9998
Step 3: Restart Tor and check that it worked
$ sudo systemctl restart tor
Step 4: Test that your Onion Service works
When I visit the address in /var/lib/tor/media_wiki/hostname
with the Tor Browser I see an Unable to connect
message.
What else do I have to do?
Tags: linux arch-linux manjaro tor
i believe
HiddenServicePort 9998 127.0.0.1:9998
means that, in order to access it, you will need to browse to<hostname>:9998
in the Tor Browser.if you just want the default http port, you can try
HiddenServicePort 80 127.0.0.1:9998
i believe?edit: i’ve never actually setup an onion service, i’m just going off what the docs are saying.
You were right, thanks. This was super simple. I thought setting this up would be much more complex.