Natan Felles


Creative Webmaster


TOR - Servidor e Navegador

Blog · seguranca

TOR - Servidor e Navegador

tor-hidden-service

sudo apt install tor torsocks tor-geoipdb

manpage

/etc/tor/torrc
HiddenServiceDir /var/lib/tor/hidden_service_name1/  
HiddenServicePort 80 #xxx.xxx.xxx.xxx:80 
sudo service tor restart
cd /var/lib/hidden_service_name1/
cat hostname
# base32-encoded-fingerprint.onion

lemp

/etc/nginx/nginx.conf
server_tokens off;
/etc/nginx/base32-encoded-fingerprint.onion.conf
autoindex off;
/var/www/base32-encoded-fingerprint.onion/public/index.php
<?= $_SERVER['REMOTE_ADDR'];

torbrowser

mkdir ~/.torbrowser
cd ~/.torbrowser
TBVERSION=7.0.8
wget https://www.torproject.org/dist/torbrowser/${TBVERSION}/tor-browser-linux64-${TBVERSION}_en-US.tar.xz
tar -xvJf tor-browser-linux64-${TBVERSION}_en-US.tar.xz
mv tor-browser_en-US/* .
rm -r tor-browser_en-US/
./start-tor-browser.desktop --register-app