mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
THOR
This commit is contained in:
parent
017f3f4318
commit
fe9ef2b83a
2 changed files with 80 additions and 0 deletions
39
torhiddenservice.md
Normal file
39
torhiddenservice.md
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Using Yunohost as a Tor Hidden Service
|
||||
|
||||
See https://www.torproject.org/docs/tor-hidden-service.html.en
|
||||
|
||||
## Installing Tor
|
||||
|
||||
```bash
|
||||
apt-get install tor
|
||||
```
|
||||
|
||||
## Configuring our hidden service
|
||||
|
||||
Edit /ect/tor/torrc, and add these lines:
|
||||
|
||||
```
|
||||
HiddenServiceDir /var/lib/tor/hidden_service/
|
||||
HiddenServicePort 80 127.0.0.1:80
|
||||
HiddenServicePort 443 127.0.0.1:443
|
||||
```
|
||||
|
||||
## Restart Tor
|
||||
|
||||
```bash
|
||||
service tor restart
|
||||
```
|
||||
|
||||
## Get your Tor Hidden Service hostname
|
||||
|
||||
```bash
|
||||
cat /path/to/hidden_service/keys/hostname
|
||||
```
|
||||
|
||||
Your domain looks like *random123456789.onion*
|
||||
|
||||
## Add the .onion domain to Yunohost
|
||||
|
||||
```bash
|
||||
yunohost domain add random123456789.onion
|
||||
```
|
41
torhiddenservice_fr.md
Normal file
41
torhiddenservice_fr.md
Normal file
|
@ -0,0 +1,41 @@
|
|||
# Utiliser Yunohost comme un service caché Tor
|
||||
|
||||
Voir https://www.torproject.org/docs/tor-hidden-service.html.en (anglais)
|
||||
|
||||
## Installer Tor
|
||||
|
||||
```bash
|
||||
apt-get install tor
|
||||
```
|
||||
|
||||
## Configurer notre service caché
|
||||
|
||||
Editer le fichier /ect/tor/torrc, et ajouter ces lignes :
|
||||
|
||||
```
|
||||
HiddenServiceDir /var/lib/tor/hidden_service/
|
||||
HiddenServicePort 80 127.0.0.1:80
|
||||
HiddenServicePort 443 127.0.0.1:443
|
||||
```
|
||||
|
||||
## Redemarrer Tor
|
||||
|
||||
```bash
|
||||
service tor restart
|
||||
```
|
||||
|
||||
|
||||
## Obtenir l'adresse du service caché
|
||||
|
||||
```bash
|
||||
cat /path/to/hidden_service/keys/hostname
|
||||
```
|
||||
|
||||
Le domaine ressemble à *random123456789.onion*
|
||||
|
||||
## Ajouter le domaine .onion à Yunohost
|
||||
|
||||
```bash
|
||||
yunohost domain add random123456789.onion
|
||||
```
|
||||
|
Loading…
Add table
Reference in a new issue