0

I am running the latest TailsOS and would like to run and access a web service locally for myself. Just opening the index.html file in the TOR browser does not work, so I need some minimal web server hosting my app directory.

I tried both busybox httpd and the node http server with no success. Whenever I try to open localhost:8000 or 127.0.0.1:8080 (both services are exposed on these ports respectively), I get nothing in my TOR browser. I also tried starting nginx but the service fails to start after installation (which should automatically start an nginx service).

I assume all of the above issues are firewall issues, but can't figure out why I wouldn't be able to access such services locally as I anyway do not plan to expose them to the internet. Any pointers how to make that work would help!

  • Do I understand you right that you want to run an Onion Service or do you just want to display a static HTML file? Do you have configured Tor to run an Onion Service? If so, how did you set it up? – Jens Kubieziel Apr 15 at 21:05
  • @JensKubieziel I just want to display a HTML file. But File -> Open does not work as some components won't run when just loading static HTML files so I need to serve that as a local webserver. No need to run an Onion Service (unless that makes it easier). – SCBuergel.eth Apr 17 at 10:15
  • So in that case it might be sufficient to create a new directory, change into it and run python3 -m http.server 34343. Now you place a HTML file into that directory and point your browser to 127.0.0.1:34343 – Jens Kubieziel Apr 17 at 20:22
  • Thank you @JensKubieziel I just tried exactly that with a minimal HTML file in a separate folder, went into that folder to start python3 -m http.server 34343 and then opened http://127.0.0.1:34343 as well as http://0.0.0.0:34343 but the Tor Browser simply says Unable to connect. Firefox can't establish a connection to the server at 0.0.0.0:34343. – SCBuergel.eth Apr 19 at 9:10
  • This doesn't work in Tor Browser. You can't connect to localhost. You'll need another browser. – Jens Kubieziel Apr 19 at 15:56
0

In tails, there is an option to use Unsafe Browser. It should be available in your version of Tails out of the box.

The Unsafe Browser is run by a separate clearnet user, wich is allowed to make TCP connections to any port, and UDP DNS queries; access to local services like Tor etc. are blocked so it cannot interfere with them if compromised. Restricting the TCP ports to HTTP(S) and DNS only is not done since some captive portals use non-standard ports. Port restrictions are a pretty weak defense any way since just one open port is enough to do anything.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.