ctektas
Posts: 1
Joined: Sat Dec 22, 2018 10:46 am

Everything working but onion sites

Sat Dec 22, 2018 11:00 am

Hi,
I have configured my raspberry pi 3 b+ as both vpn and tor routers. I have two wifis. One of them is built in and the other one is usb device.

I have configured a openvpn tunnel for the wlan1.

I have configured a transparent tor proxy over openvpn tunnel for the wlan0.

If I want to connect to openvpn, I connect to wlan1.
If I want to connect to tor over vpn tunnel, I connect to wlan0.

wlan1 is working good. When I connect wlan1, ipleaks.net shows my vpn server exit IP.
wlan0 is working a bit wrong. when I connect wlan0, ipleaks.net show my tor exit IP and check.torproject.org says my browser is configured to use tor. My problem is that i can not connect any hidden onion services.

need your help.
best regards.

raspi-user.france
Posts: 15
Joined: Mon Jan 09, 2017 11:31 am

Re: Everything working but onion sites

Sat Jan 05, 2019 8:37 am

Maybe first check if you set up tor correctly. In your torrc there should be something like the following:

Code: Select all

AutomapHostsOnResolve 1
AutomapHostsSuffixes .onion,.exit
VirtualAddrNetworkIPv4 10.192.0.0/10
Then just check for the IPs returned from tor for an .onion URL (Linux shell command line):

Code: Select all

host abc.onion
which should return an IP address in the range of 10.192.0.0/10 with the torrc config above (can be anything else, just as configured).

If you should be using Firefox - be aware that Firefox is blocking .onion sites by standard (seems like Mozilla doesn't like Tor at all). Go to about:config and change "network.dns.blockDotOnion" to "false" (double-click on it).

Not required but if you should be using Firefox you might also want to install two add-ons: "Privacy Pass" and "uBlock Origin".

This one might be helpful as well to get some general ideas (although the intend and setup is a bit different): https://www.spaetzle.info/tor-wlan-with-raspberry-pi-3/

Return to “Raspberry Pi OS”