mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2025-12-19 04:54:18 +01:00
tor_hidden_service_example update with v2 address
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
## Create a Tor Hidden Service
|
||||
A simple example of creating and using a Tor Hidden Service.
|
||||
|
||||
Using ThunderHub as an example.
|
||||
Using ThunderHub as an example, use anyother name to be change the directory name.
|
||||
|
||||
* Install Tor:
|
||||
```
|
||||
@@ -11,16 +11,33 @@ $ sudo apt install tor
|
||||
```
|
||||
$ sudo nano /etc/tor/torrc
|
||||
```
|
||||
* add:
|
||||
* add for a v3 onion address:
|
||||
```
|
||||
HiddenServiceDir /var/lib/tor/thunderhub/
|
||||
HiddenServiceVersion 3
|
||||
HiddenServicePort 80 127.0.0.1:3010
|
||||
```
|
||||
* add for a v2 onion address:
|
||||
```
|
||||
HiddenServiceDir /var/lib/tor/thunderhub/
|
||||
HiddenServiceVersion 2
|
||||
HiddenServicePort 80 127.0.0.1:3010
|
||||
```
|
||||
* restart Tor:
|
||||
```
|
||||
sudo systemctl restart tor
|
||||
```
|
||||
|
||||
* list the files in the directory
|
||||
```
|
||||
$ sudo ls -la /mnt/hdd/tor/lndrpc10009/
|
||||
total 12
|
||||
drwx------ 1 debian-tor debian-tor 136 Jan 30 07:09 .
|
||||
drwx------ 1 debian-tor debian-tor 826 Jan 31 00:00 ..
|
||||
drwx------ 1 debian-tor debian-tor 0 Feb 11 2020 authorized_clients
|
||||
-rw------- 1 debian-tor debian-tor 63 Jan 30 07:09 hostname
|
||||
-rwx------ 1 debian-tor debian-tor 64 Feb 11 2020 hs_ed25519_public_key
|
||||
-rwx------ 1 debian-tor debian-tor 96 Feb 11 2020 hs_ed25519_secret_key
|
||||
```
|
||||
* note the Hidden Service address:
|
||||
```
|
||||
sudo cat /var/lib/tor/thunderhub/hostname
|
||||
|
||||
Reference in New Issue
Block a user