I'm someone who has very little technical experience but became interested in the idea of a transparent Tor proxy. I'm well aware that this isn't a secure implementation but I thought I could learn a bit through this process. What I want to do is to combine the following two tutorials with my Pi Zero W.

Access point as WiFi repeater, optional with bridge


The first one works fine and is able to reliably pass my Wifi traffic forward to my router. I've followed the directions on the second one almost precisely, with two major exceptions. First, I've replaced /etc/tor/torrc with the following, as recommended by the Tor Project wiki.

AutomapHostsOnResolve 1


You might notice that I've replaced the address from to since the latter represents ap0 in the first tutorial. Neither address seems to make a difference though.

Second, I've also downloaded iptables-persistent and installed it onto my Pi.

The Pi is still able to pass my Wifi traffic forward perfectly well, but it seems to completely ignore my Tor set-up. Whenever I check my IP address it's the same as it was before. As someone who's a novice to all this, I'm curious as to what I've done wrong that causes my Pi to ignore my Tor installation.

  • You may have more luck asking this question on linux.stackexchange.com or security.stackexchange.com, as most of it has to do with Linux/Debian upon which Raspbian is based.
    – user96931
    Commented Jun 3, 2019 at 17:41

1 Answer 1


The tutorial for the WiFi repeater uses systemd-networkd. The second tutorial from adafruit to install the tor proxy doesn't respect sytemd-networkd and does it's own setup of the needed iptables rules. I think it's possible to combine this but it seems not to be an easy task. A better way in this combination is to use also systemd to extend the tor.service with the iptables rules. So it is not needed to install and configure additional software like iptables-persistent.

I have made a tested setup to configure a tor proxy as extention to my tutorial for an WiFi repeater. You will find it at How to make Raspberry Pi a Tor router with all kind of network setup using systemd-networkd. It fits exactly your needs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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