Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@UlisesGascon
Last active August 13, 2019 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UlisesGascon/fc08087fa46fcf3a6702faddd9e36be9 to your computer and use it in GitHub Desktop.
Save UlisesGascon/fc08087fa46fcf3a6702faddd9e36be9 to your computer and use it in GitHub Desktop.
Montar un hidden service en Tor

Montar un hidden service en Tor

Importante

Necesitamos tener previamente corriendo Tor en la maquina:

Pasos

  1. Creamos el servidor tor-server.js
  2. Lanzamos el servidor y vemos que esta en la web normal http://{{ip}}:3000
  3. Aseguramos el servicio con pm2
  4. Cambiamos los ajustes de tor en /etc/tor/torrc habilitando el servicio.
HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:3000
  1. Reiniciamos Tor sudo /etc/init.d/tor restart
  2. Miramos los ficheros generados por Tor cd /var/lib/tor/hidden_service/
  3. Sacamos la ruta de nuestro servicio Onion de cd /var/lib/tor/hidden_service/hostname
  4. Verificamos que el sistema esta corriendo
  5. Paso extras muy importantes
    • Conectarnos por SSH usando TOR
    • Configurar el Firewall
    • Aislamos el servidor del surface web, etc…

Recursos

const http = require('http');
http.createServer((req, res) => {
res.write('Hello Onions!');
res.end();
}).listen(3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment