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 🧅

  • TrollAccount69@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    6 hours ago

    Depending on what you’re trying to accomplish I’d recommend you not do that and instead use a package that gets lots of scrutiny like tor-browser.

    I been rolling your post around for a little while and I can’t think of any good reason to do what you’re suggesting, but it’s possible I don’t understand.

    What are you trying to accomplish?

  • istdaslol@feddit.org
    link
    fedilink
    arrow-up
    5
    ·
    13 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
    link
    fedilink
    English
    arrow-up
    4
    ·
    15 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
      link
      fedilink
      arrow-up
      5
      ·
      14 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
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        edit-2
        12 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.

  • dreamy (she/her)@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    14 hours ago

    It seems like you’re essentially trying to set up a private bridge?

    Check out this guide, and add this line to your torrc file:
    PublishServerDescription 0