Internet2Tor Proxy


3 weeks ago
Is it possible to make server redirect all traffic (to specific udp and tcp ports) to another server through tor? I mean that we start a hidden service on the 2nd server. Then all traffic coming to the 1st server is redirected to the 2nd server by using .onion link but not IP address.

3 weeks ago
Of course, https://onion.to/

3 weeks ago
Tor2Web service is not what I am looking for. They redirect only web traffic.

3 weeks ago
I am not sure if I understood you right, but I assume your "2nd server" is usual .onion service. That means it has one tcp-port (probably http/s) exposed through Tor network. Only ONE port. If you try to expose another port, you will end up with another .onion address. And so and so on. Even if all these ports will physically exist on your 2nd server, from Tor it will look like several different .onion services.

So, your question is how to forward all ports on server 1 (both TCP and UDP) to the same TCP port of server 2. This makes no sense to me. Please explain what is your final goal.

3 weeks ago
The final goal is to make the IP address of the 2nd server "hidden" from the 1st server

3 weeks ago
Yes, this can be done via Tor, but, like I said before, one .onion address corresponds to pair IP:Port, not just IP. So, to "hide" all 65535 ports of 2nd server you need to create 65535 .onion addresses, which is crazy. Leave only several ports that you really want to use, and create .onion services only for them.

3 weeks ago
Okay, for example I need only 5 ports and I will create 5 .onion addresses. So how to do this?

3 weeks ago
Add these lines to your torrc file:
    HiddenServiceDir /home/myself/tor/onion80
    HiddenServicePort 80 127.0.0.1:80
    HiddenServiceDir /home/myself/tor/onion22
    HiddenServicePort 22 127.0.0.1:22


Then restart Tor. It will create folders tor/onion22, tor/onion80 and so on, and inside each folder you'll find newly created .onion address for corresponding port.

3 weeks ago
I know how to start hidden services :) I am asking how to route incoming traffic from 1st server to 2nd server using .onion address?

3 weeks ago
For example, the traffic is coming to the 1st server on port 53100 tcp (the application protocol is private, it is not http/s). I start hidden service on the 2nd server on port 53100. For example, the generated .onion is blablabla.onion. So the question is how to route traffic from 1st server port 53100 tcp to blablabla.onion using iptables PREROUTING rule, nginx, tunnel or something else (I don't know exactly what)?

3 weeks ago
Tor Hacker, you are wrong. There's no need to setup multiple onions, you can put several HiddenServicePort to same .onion address:
HiddenServiceDir /path/to/hostname/dir
HiddenServicePort 80 127.0.0.1:80
HiddenServicePort 22 127.0.0.1:22
HiddenServicePort 8080 127.0.0.1:8080
...

Ionny, you need to set up tcp proxy server on server1, that listens on 53100 and forwards incoming connections to blablabla.onion:53100 via another proxy - 127.0.0.1:9050 (Tor). Tor should be installed on both server 1 and server 2.

There are hundreds of tcp-proxies, but you need to find one that could work via another socks proxy. I don't know any. Google for it, maybe you're lucky. Another option is to install usual tcp-proxy server and then 'socksify' it with external program, but this also will need some luck. At worst case, hire somebody (maybe me :) to write small python script that performs that kind of tcp->socks->tcp forwarding.


3 weeks ago
sakiri, how can I contact you?


2 weeks ago
netcat can work via Tor.
-x localhost:9050 -X 4

Reply

You are not logged in. Login or register to reply on this thread.