Cant host my own Debian in Dark web
Hello, i have kali linux it is based on Debian, here is my steps for host my computer in the dark web
first of all i have installed tor: sudo apt-get install tor
then i have edit torrc file located in /etc/tor/torrc uncomment two lines :
HiddenServiceDir /var/lib/tor/hidden_service/ HiddenServicePort 80 127.0.0.1:80
so the hostname file private and public keys were created, then i have just simply start services: sudo service nginx start sudo service tor start
but there is no connection to nginx server, when i am trying to connect with my onion url to web server it always gives me an error
so i have done some research and found this: tor -f /etc/tor/torrc
here was an output:
Feb 26 22:59:44.018 [notice] Read configuration file "/etc/tor/torrc". Feb 26 22:59:44.019 [warn] Directory /var/lib/tor/hidden_service/ cannot be read: Permission denied Feb 26 22:59:44.019 [warn] Failed to parse/validate config: Failed to configure rendezvous options. See logs for details. Feb 26 22:59:44.019 [err] Reading config failed--see warnings above.
so i did again research and found this :
sudo chown debian-tor -R /var/lib/tor/hidden_service/ and sudo chmod 700 -R /var/lib/tor/hidden_service/
but still can not connect to webserver and the output of this command "tor -f /etc/tor/torrc " still did not changed
so can you help me please?
Trac:
Username: karencho