0

I have 2 hidden services hosted on seperate debian servers, they both work perfectly. I'm looking at using my first hidden service as a reverse proxy to access the second one.

So basically if I access my first onion it'll display the second one.

How do I go about this? I've tried socat which I can run perfectly on V2 onions but for some reason not V3 which is what I need.

I'm using debian

Any help is greatly appreciated.

7
  • What's the goal of this setup? Is it supposed to go Client --- 6 hops --- First onion service --- 6 hops --- Second onion service? And what does reverse proxy mean in this context?
    – Steve
    Jan 27 at 21:07
  • my main onion is the second hidden service, I want other people to be able to access my website through my first hidden service as well as the second. So the first website is a proxy to the second if that makes sense Jan 27 at 22:13
  • So you do want 12 relays between the client and server? Or can the first service know the IP address of the second service?
    – Steve
    Jan 27 at 22:24
  • Doesn't matter really its just to ease the load. I basically want the second hidden service to be accessed by the first hidden service. Jan 27 at 22:28
  • So anyone accessing the first hidden service will reach the second hidden service as though they'd accesed it by the second hidden services onion. So client accesses Hidden Service 1 and it then proxies hidden service 2 as though they'd accessed it by hidden service 2's onion address Jan 27 at 22:30
0

As far as I understand, you have two servers. One runs the web server, and you want both servers to run onion services that can access the web server.

An issue with running the onion service on one server and the web server on another is that the onion service will remove all of Tor's encryption, so you don't want to just send the plaintext traffic across the network to the web server.

One option for sending the traffic between two servers might be an SSH tunnel. For example if server A is running the web server and you want to securely send traffic from an onion service on server B, you could run ssh -N -L 8080:127.0.0.1:8080 serverA on server B to set up a tunnel, and on server B also set up an onion service on port 8080 (example: HiddenServicePort 80 127.0.0.1:8080). Any onion service traffic will then be tunneled through SSH to the web server on port 8080 on server A. All you need for this to work is to have SSH access from server B to server A.

If the SSH tunnel solution works fine, then you probably want something more permanent. In that case a Wireguard VPN would probably work better than an SSH tunnel.

2
  • Great thanks, so "ServerA" is that an onion address or an ip address I need to insert here? Jan 28 at 0:18
  • That's an IP address.
    – Steve
    Jan 28 at 0:45

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.