mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
Update torhiddenservice_fr.md
This commit is contained in:
parent
1a97e690cb
commit
19c0c60e9d
1 changed files with 10 additions and 18 deletions
|
@ -1,16 +1,14 @@
|
||||||
# Utiliser YunoHost comme un service caché Tor
|
## Utiliser YunoHost comme un service caché Tor
|
||||||
|
|
||||||
Voir https://www.torproject.org/docs/tor-hidden-service.html.en (anglais)
|
Voir https://www.torproject.org/docs/tor-hidden-service.html.en (anglais)
|
||||||
|
|
||||||
## Installer Tor
|
### Installer Tor
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo apt-get install tor
|
sudo apt-get install tor
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configurer notre service caché
|
### Configurer notre service caché
|
||||||
|
Éditer le fichier `/etc/tor/torrc`, et ajouter ces lignes :
|
||||||
Éditer le fichier /etc/tor/torrc, et ajouter ces lignes :
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
HiddenServiceDir /var/lib/tor/hidden_service/
|
HiddenServiceDir /var/lib/tor/hidden_service/
|
||||||
|
@ -18,37 +16,31 @@ HiddenServicePort 80 127.0.0.1:80
|
||||||
HiddenServicePort 443 127.0.0.1:443
|
HiddenServicePort 443 127.0.0.1:443
|
||||||
```
|
```
|
||||||
|
|
||||||
## Redémarrer Tor
|
### Redémarrer Tor
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
service tor restart
|
service tor restart
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Obtenir l’adresse du service caché
|
||||||
## Obtenir l’adresse du service caché
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cat /var/lib/tor/hidden_service/hostname
|
cat /var/lib/tor/hidden_service/hostname
|
||||||
```
|
```
|
||||||
|
|
||||||
Le domaine ressemble à *random123456789.onion*
|
Le nom de domaine ressemble à *random123456789.onion*
|
||||||
|
|
||||||
## Ajouter le domaine .onion à YunoHost
|
|
||||||
|
|
||||||
|
### Ajouter le domaine .onion à YunoHost
|
||||||
```bash
|
```bash
|
||||||
yunohost domain add random123456789.onion
|
yunohost domain add random123456789.onion
|
||||||
```
|
```
|
||||||
|
|
||||||
## Éviter la redirection vers le SSO (optionnel)
|
### Éviter la redirection vers le SSO (optionnel)
|
||||||
|
|
||||||
Si vous voulez éviter d’être redirigé vers le portail à la connexion pour des raisons de traçabilité, vous pouvez désactiver SSOwat pour le domaine, en éditant le fichier `/etc/nginx/conf.d/random123456789.onion.conf` et en commentant la ligne suivante (elle apparaît deux fois dans le fichier) :
|
Si vous voulez éviter d’être redirigé vers le portail à la connexion pour des raisons de traçabilité, vous pouvez désactiver SSOwat pour le domaine, en éditant le fichier `/etc/nginx/conf.d/random123456789.onion.conf` et en commentant la ligne suivante (elle apparaît deux fois dans le fichier) :
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#access_by_lua_file /usr/share/ssowat/access.lua;
|
#access_by_lua_file /usr/share/ssowat/access.lua;
|
||||||
```
|
```
|
||||||
|
|
||||||
## Rédémarrer nginx
|
### Rédémarrer nginx
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
service nginx restart
|
service nginx restart
|
||||||
```
|
```
|
Loading…
Add table
Reference in a new issue