4
submitted 9 hours ago* (last edited 9 hours ago) by CaffeinatedRacoon@retrolemmy.com to c/linux@lemmy.ml

Hi,

Why on lemmy instead of Tor official forum ?

I wanted to post the following on the official Tor forum (that sadly use ~Discuss) but I'm confronted with

¯\(ツ)/¯



So I would like to turn a computer as a Tor gateway.

Meaning a client that set his TCP/IP gateway to that server will have all his traffic routed through Tor 😍

\

Where am I so far:

I see the DNS request going to client to the server. But it stopped there. It seem the client do not receive an answer.

/etc/nftables.conf extract of the server


table ip nat {
  chain prerouting {
    type nat hook prerouting priority -100; policy accept;
    tcp dport {443, 80} redirect to :7443
    udp dport 53 redirect to :753
  }
}

table ip Tip {

	chain chIN {
		type filter hook input priority 0; policy drop;

		ct state established,related accept

		meta l4proto tcp ct status dnat ct original proto-dst { 443, 80 } accept
		meta l4proto udp ct status dnat ct original proto-dst 53 log prefix "dns routed: "accept

	}
}

The port forwarding is enabled on the server

# sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1

extract of /etc/tor/torrc on the server

TransPort 7443
DNSPort 753

I didn't use masquerade on the server because it seems that with TransPort it's not necessary.

Have you

  • an idea ?
  • know lemmy community where I could cross-post ?
  • know a forum where I could find peer to help ?

Thanks 🧅

all 6 comments
sorted by: hot top new old
[-] istdaslol@feddit.org 5 points 5 hours ago

First: TOR is a low bandwidth network, routing the entire traffic isn’t the thing you’re normally supposed to do, as videos and downloads will slow others down.
Second: Normally you want a dynamic setup otherwise if you use the same entry node for a long time, you lose the privacy to TOR provides.

That’s why it’s highly recommended to exclusively use the TOR-Browser.

[-] hendrik@palaver.p3x.de 4 points 8 hours ago

Isn't the common way to use TOR, to install something like the TOR Browser bundle?!

If you're struggling to get the networking right, I'd advise you to use some ready-made solution. At least if your goal is privacy. If you don't really know what you're doing, you might misconfigure something and void the privacy aspect of it.

Might be alright for tinkering, though.

[-] FrostyPolicy@suppo.fi 3 points 6 hours ago

Isn’t the common way to use TOR, to install something like the TOR Browser bundle?!

That is the recommended way. This way everyone's web traffic and end device looks the same.

[-] Lemmert@reddthat.com 0 points 4 hours ago* (last edited 4 hours ago)

Who recommended that? The Tor network consists of volunteer-run relays. If everyone currently using the network actually did that, it would be unusable. Besides, if you're going to be logging into something like your Youtube account, you're already deanonymised.

If you want to hide what servers you're connecting to from your ISP and your IP from those servers, a trustworthy VPN is going to give you better results. You can still connect to Tor servers. The open proxy will be the starting point in that case.

It's fine for low-volume traffic for, like Hendrik mentioned, just tinkering around. But I'd definitely advise against running everything over it though.

[-] Washhouse0749@sh.itjust.works 2 points 7 hours ago

Are you looking for whonix?

this post was submitted on 05 Dec 2026
4 points (75.0% liked)

Linux

69010 readers
1396 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS