Qtox: How does Tox over Tor work?

Created on 8 Feb 2017  路  20Comments  路  Source: qTox/qTox

I'm a bit confused because the whole concept of Tox is p2p which connects directly to the other person. How is it possible to run Tox over Tor then? Does it help in order to "hide" your IP?

C-question M-docs

All 20 comments

My understanding is that Tox doesn't register onion addresses. Instead, it keeps the TCP connection to some of the seed hosts, and gets notifications and calls this way. 2 Tox instances in the tor VMs can connect to each other using the seed host as a proxy. Without the onion addresses there is no way to connect directly.

Practically speaking though, I am not convinced Tox doesn't leak your IP address when the proxy is used. I saw somebody claiming it leaks IP.

If it leaks the IP address even using Tor it is not a solution for me.

I saw somebody claiming it leaks IP.

Yes, internet is full of people who don't know what they're talking about.

Yes, internet is full of people who don't know what they're talking about.

So I do not have to worry? Well I'm still a noob and wanted to ask. :)

@Mattel88 If you want to be 100% sure, like with all other networking software, you should run Tox from the virtual machine connected to Tor. This minimizes the exposure to any potential bugs of this nature. Install Whonix on top of VirtualBox - this will do the trick. Tox works fine this way, even though without using onion addresses it often has to use the third host, which is inefficient.

I just did a simple experiment. With 'Enable UDP'=off, 'Proxy type'=SOCKS5, 'Proxy address'=localhost I looked at system calls it makes, and found this:

73692: socket(PF_INET,SOCK_DGRAM|SOCK_CLOEXEC,17) = 38 (0x26)
73692: connect(38,{ AF_INET 104.156.104.15:1 },16) = 0 (0x0)

This is the UDP socket for the clearnet IP 104.156.104.15. So Tox does leak IP despite the proxy setting.

With the above network settings all connections should go through the proxy, no UDP should be attempted. No IPs besides 127.0.0.1 should appear in the log.

So you should use Whonix to filter these things.

ISP knows your IP and usually most of websites you visit normally every day, if you really fear IP leak then do not add friends in Tox who you do not know. yurivict: file bug raport about that UDP off

No, you are wrong. ISP doesn't know what user does over Tor.

The leaks I have seen are caused by bad user configuration.
1) Disable IPv6
2) Disable UDP
3) Set proxy.
4) Still leaks DNS queries, per bug yurvict mentioned, but not other traffic.

Failing to do this, you will definitely leak over IPv6 and UDP.

What @g4jc wrote should be added to the user manual / FAQ.

@yurivict can you pls test with https://github.com/rofl0r/proxychains-ng?

@soredake qTox seems to work fine with proxychains-ng on FreeBSD.

@yurivict no dns leaks?

I don't see DNS leaks with proxychains-ng.

So it's worth mention in user manual or FAQ.

Yes, as a workaround.

g4jc commented 5 days ago

The leaks I have seen are caused by bad user configuration.

Disable IPv6
Disable UDP
Set proxy.
Still leaks DNS queries, per bug yurvict mentioned, but not other traffic.

Failing to do this, you will definitely leak over IPv6 and UDP.

Sorry for that but, I didn't understand, disable the UDP result in IP leak or keeping the UDP result in the leak?

This is still a Tox problem, it shouldn't allow UDP when not available.

Seems question is answered. Thus closing

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tox-user picture tox-user  路  4Comments

akhilman picture akhilman  路  7Comments

Tcll picture Tcll  路  3Comments

ovalseven8 picture ovalseven8  路  6Comments

ghost picture ghost  路  4Comments