Tox over Tor

With the ever increasing need for anonymity online, Toxcore now supports TCP-only communications to be used through services such as Tor. Tunneling Tox over Tor allows the user to still communicate with non-Tor contacts, unlike I2P, providing the best of both worlds. The following guide will explain how to setup ToT with the various Tox clients.

 Example of the Tor network

Installing Tor

Tor must be installed prior to tunneling Tox. To keep resource usage low, we recommend installing just Tor itself, and avoiding the use of the Tor Browser Bundle. You may use the TBB if you wish, but the following directions are how to install Tor itself as a tunnel only.

Debian, Ubuntu, Knoppix, etc.

  1. Install Tor by running sudo apt-get install tor.
  2. Start Tor by running sudo service tor start.

Fedora, CentOS, RHEL, etc.

  1. Paste the following into /etc/yum.repos.d/torproject.repo:
    [tor]
    name=Tor repo
    enabled=1
    baseurl=http://deb.torproject.org/torproject.org/rpm/DISTRIBUTION/$basearch/
    gpgcheck=1
    gpgkey=http://deb.torproject.org/torproject.org/rpm/RPM-GPG-KEY-torproject.org.asc
    
    [tor-source]
    name=Tor source repo
    enabled=1
    autorefresh=0
    baseurl=http://deb.torproject.org/torproject.org/rpm/DISTRIBUTION/SRPMS
    gpgcheck=1
    gpgkey=http://deb.torproject.org/torproject.org/rpm/RPM-GPG-KEY-torproject.org.asc

Running Tor from the Tor Expert Bundle on Windows

  1. Confirm the GPG repo key: 3B9E EEB9 7B1E 827B CF0A 0D96 8AF5 653C 5AC0 01F1
  2. Run sudo yum install tor to install Tor
  3. Start Tor by running sudo service tor start

Windows

Download the Tor Expert Bundle and install, located here.

When you run Tor, you should see a window similar to the one shown on the right.

Take note of the line saying

Opening Socks listener on Address:Port

Tunneling

 Using Toxic with Tor on Linux

Tunneling aka routing your Tox data over the Tor network.

Linux

Toxic

  1. Verify Tor is running
  2. Run toxic –force-tcp –SOCKS5-proxy 127.0.0.1 9050

Windows

qTox

  1. Verify Tor is running.
  2. Launch qTox, and navigate to settings by clicking on the cogwheel in the lower left-hand corner.
  3. Look under the General tab in settings and scroll down to the bottom to, Connection Settings.
  4. Uncheck UDP option to set it off.
  5. Uncheck IPv6 option to set it off.
  6. Set the Proxy type to SOCKS5.
  7. Address to 127.0.0.1 and Port 9050 (Port 9150 if you use Tor Browser).
  8. If you don't connect to the Tox network immediately, restart qTox and it should automatically connect to the Tox network via Tor.

 Using uTox with Tor

µTox

  1. Verify Tor is running
  2. Launch uTox, and navigate to settings by clicking on the cogwheel in the lower left-hand corner
  3. Switch to the Network tab
  4. Set the IPv6 option to no
  5. Set the UDP option to no
  6. Set the Proxy to “Always Use”, and input the value 127.0.0.1 for the IP and 9050 for the port (9150 if you use Tor Browser).
  7. If you don't connect to the Tox network immediately, restart uTox and it should automatically connect to the Tox network via Tor.
Print/export