LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-21-2023, 05:34 AM   #1
Jason.nix
Member
 
Registered: Feb 2023
Posts: 569

Rep: Reputation: 10
Post Tor behind a server


Hello,
Is it possible to put the Tor proxy behind on another server?
Something like:
Code:
Tor Server ---> Another Server --> Internet
You can protect an Apache web server by reverse proxy. For this scenario, should I use port forwarding?


Thank you.
 
Old 08-21-2023, 11:28 AM   #2
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 808

Rep: Reputation: 259Reputation: 259Reputation: 259
You're probably going to have to forward some ports, too. https://tor.stackexchange.com/questi...ind-http-proxy
 
Old 08-29-2023, 02:12 AM   #3
Jason.nix
Member
 
Registered: Feb 2023
Posts: 569

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by jayjwa View Post
You're probably going to have to forward some ports, too. https://tor.stackexchange.com/questi...ind-http-proxy
Hello,
Thank you so much for your reply.
But, Another Server is just a normal Linux box and not an HTTP or HTTPS server. Should I set up such a server?
 
Old 08-29-2023, 03:03 AM   #4
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,387
Blog Entries: 3

Rep: Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776
Quote:
Originally Posted by Jason.nix View Post
Hello,
Is it possible to put the Tor proxy behind on another server?
Yes. If you are using Tor to provide an Onion service, no special networking or port forwarding is needed. If you are not planning to provide an Onion service, then please provide a little more information about your planned use-case.
 
Old 09-05-2023, 05:17 AM   #5
Jason.nix
Member
 
Registered: Feb 2023
Posts: 569

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by Turbocapitalist View Post
Yes. If you are using Tor to provide an Onion service, no special networking or port forwarding is needed. If you are not planning to provide an Onion service, then please provide a little more information about your planned use-case.
Hello,
Thank you so much for your reply.
What is the usage of Reverse proxy? You can hide the existence and characteristics of an origin server or servers.
I want to upgrade the security of the Tor server by placing it behind another server. Instead of the Tor server being directly connected to the internet, it has to go through another server to connect to the internet:
Code:
Tor Server ---> Intermediate Server ---> Internet
What should be the intermediate server configuration?
 
Old 09-05-2023, 01:48 PM   #6
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,387
Blog Entries: 3

Rep: Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776
Quote:
Originally Posted by Jason.nix View Post
What should be the intermediate server configuration?
The Intermediate server only needs to allow outgoing Internet connections from the system with Tor. Incoming new connections, like for a normal server, are not needed.

Or if you have something more complicated in mind, please elaborate.
 
1 members found this post helpful.
Old 09-08-2023, 05:44 AM   #7
Jason.nix
Member
 
Registered: Feb 2023
Posts: 569

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by Turbocapitalist View Post
The Intermediate server only needs to allow outgoing Internet connections from the system with Tor. Incoming new connections, like for a normal server, are not needed.

Or if you have something more complicated in mind, please elaborate.
Hello,
Thank you so much for your reply.
So, an HTTP server like TinyProxy or Squid-cache is not necessary?
How can Tor use the internet of this intermediate server? Via iptables?
 
Old 09-08-2023, 07:33 AM   #8
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,387
Blog Entries: 3

Rep: Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776
I presume the intermediate server has been set up to relay connections from the network interface connected to the LAN on which the Tor server is installed. If so, then nothing further needs to be done. If not, then forwarding needs to be set up on the intermediate server using NFTables (iptables is being retired) and the details of that depend a lot on the details of your outgoing network connection.
 
Old 09-16-2023, 12:29 PM   #9
Jason.nix
Member
 
Registered: Feb 2023
Posts: 569

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by Turbocapitalist View Post
I presume the intermediate server has been set up to relay connections from the network interface connected to the LAN on which the Tor server is installed. If so, then nothing further needs to be done. If not, then forwarding needs to be set up on the intermediate server using NFTables (iptables is being retired) and the details of that depend a lot on the details of your outgoing network connection.
Hello,
Thank you so much for your reply.
Why not TinyProxy or Squid-cache?
 
Old 09-16-2023, 12:47 PM   #10
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,387
Blog Entries: 3

Rep: Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776Reputation: 3776
Quote:
Originally Posted by Jason.nix View Post
Why not TinyProxy or Squid-cache?
Because they are HTTP / HTTPS proxies and Tor is a SOCKS proxy.

With enough effort you could set up Squid so that it exits through Tor, but that is going to be of dubious benefit. What are you trying to do?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Set Up A TOR Middlebox Routing All VirtualBox Virtual Machine Traffic Over The TOR Netw LXer Syndicated Linux News 0 02-08-2012 11:30 AM
LXer: Tor Browser Bundle-Tor Goes Portable LXer Syndicated Linux News 1 09-02-2011 02:29 AM
TOR: traffic between my workstation TOR entry point really not encrypted..? john99 Incognito 3 11-11-2009 01:06 AM
TOR-there seems to be no tor.pkg- what now? me-$-on Slackware 5 06-06-2008 11:08 AM
Computers behind router behind computer behind router remi Linux - Networking 1 05-05-2005 05:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration