hello i have a tiny problem, i followd some tutorials, everything is working over the created wlan hotspot but i want change it thaht everything will goes over Lan, like the Raspi act as normal Router(i add the ip in the network settings of the device i want tunnel), i have no problem doing this with openvpn but on tor i failed

i tryt to change my currently comands to Eth0 but after i cant login to pi, so its seems not working

-A PREROUTING -i wlan0 -p tcp -m tcp --dport 22 -j REDIRECT --to-ports 22
-A PREROUTING -i wlan0 -p udp -m udp --dport 53 -j REDIRECT --to-ports 53
-A PREROUTING -i wlan0 -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -j REDIRECT --to-ports 9040

so my target is

Device->my local home network-> Raspberry in over eth0 -> Tor tunnel -> go out over eth0


okay the solution was easyer then i was think

put this into /etc/tor/torrc

 Log notice file /var/log/tor/tor-notices.log
    AutomapHostsSuffixes .onion,.exit
    AutomapHostsOnResolve 1
    TransPort 9040
    DNSPort 53

the ip is my raspberryip

echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -s -i eth0 -p tcp --syn -j REDIRECT --to-ports 9040

i have to route only one linux device though tor so this enough for me

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.