logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in  RSS Apache Lounge  


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.


Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Reverse proxy a .onion (Tor) website
Author
r00ter



Joined: 02 Aug 2021
Posts: 9

PostPosted: Thu 12 Aug '21 20:43    Post subject: Reverse proxy a .onion (Tor) website Reply with quote

Hello everyone, I was wondering how it would be possible for me to reverse proxy a Tor hidden website using Apache2? I've already set up a reverse proxy for clear net websites but I don't have a clue on how I would do this for Tor hidden sites.

Thanks
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6998
Location: Germany, Next to Hamburg

PostPosted: Mon 16 Aug '21 19:17    Post subject: Reply with quote

You can, if you install Tor (not Tor browser) on your computer.

There is a tutorial how to install tor for that on windows https://bitstobytes.org/tor/
Back to top
r00ter



Joined: 02 Aug 2021
Posts: 9

PostPosted: Mon 16 Aug '21 20:36    Post subject: Reply with quote

Hi yes, I am running Debian buster and have Tor running as a daemon. Though I would like to know how I could make Apache actually proxy the .onion's? So I guess I'd have to make Apache listen under the Tor SOCKS5 proxy? Though I am not entirely sure.

Just setting the tor url in "ProxyPass" and "ProxyPassReverse" gives me a "502 Proxy Error"

Code:
Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request

Reason: DNS lookup failure for: (imagine a tor V2 or V3 url here).onion
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6998
Location: Germany, Next to Hamburg

PostPosted: Tue 17 Aug '21 9:38    Post subject: Reply with quote

it can be done via WebSocket. I have to say that I never tried that

http://173.208.235.138/blog/post/placing-apache-reverse-proxy-front-security-onion
Back to top
r00ter



Joined: 02 Aug 2021
Posts: 9

PostPosted: Tue 17 Aug '21 10:52    Post subject: Reply with quote

I don't understand, what is "security onion"?
Back to top


Reply to topic   Topic: Reverse proxy a .onion (Tor) website View previous topic :: View next topic
Post new topic   Forum Index -> Apache