I've got some problems with a simple TOR project I'm actually working on.
My goal is to have TOR running on my Pi, so I can browse the web anonymously from another computer (on the same ethernet LAN) configured with the Pi as a proxy. Basically, that's an "Onion Pi" without the wireless part.
I'm running Raspbian on a 512 MB model B, with eth0 configured with '192.168.1.115'. Here is a step-by-step guide to what I've done...
First, I installed TOR:
sudo apt-get install tor
Then I edited the TOR config file "/etc/tor/torrc" with the following lines:
Log notice file /var/log/tor/notices.log VirtualAddrNetwork 10.192.0.0/10 AutomapHostsOnResolve 1 TransPort 9040 TransListenAddress 192.168.1.115 DNSPort 53 DNSListenAddress 192.168.1.115
I flushed my NAT table:
sudo iptables -F sudo iptables -t nat -F
Redirected the incoming DNS traffic:
sudo iptables -t nat -A PREROUTING -i eth0 -p udp --dport 53 -j REDIRECT --to-ports 53
And incoming TCP traffic:
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --syn -j REDIRECT --to-ports 9040
Finally, I restarted the TOR service:
sudo service tor restart
And checked that everything is alright in the logs:
Last thing I did was to configure a FireFox browser on another computer with my Pi as proxy:
Manual proxy configuration: HTTP proxy: 192.168.1.115 Port: 9040 SSL proxy: 192.168.1.115 Port: 9040 FTP proxy: 192.168.1.115 Port: 9040 SOCKS proxy: 192.168.1.115 Port: 9040
When I try to access the Web from this browser, I get a "proxy server is refusing connections" error...
Is anyone here has tried something similar? Could you please help me with this problem?
It's just a test, I do it for fun. I know there are many more precautions to be anonymous on the Web...