4
submitted 9 hours ago* (last edited 8 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 🧅

CaffeinatedRacoon

0 post score
0 comment score
joined 3 days ago