This page looks best with JavaScript enabled

Setting up Tor server for localhost

 ·  ☕ 1 min read

Tor is an open source implementation of second generation onion routing that provides free access to an anonymous proxy network. Its primary goal is to enable online anonymity1 by protecting against traffic analysis attacks. By using Tor you can access a blocked websites and Darknet’s .onion sites.

Installation

Tor server can be installed on most distros using its package manager. Here’s how to install it on Ubuntu/Debian:

sudo apt install tor

Configuration

By default Tor use configuration file /etc/tor/torrc. We are going to configure Tor server to work only with localhost.

Add/uncomment this lines in configuration file:

SOCKSPort 9050
SOCKSPolicy accept 127.0.0.1

Enable and start the daemon:

sudo systemctl enable tor
sudo systemctl start tor

Now you’re able to route traffic through Tor network via local port 9050 using SOCKS5 protocol.


  1. Please note, routing traffic through Tor doesn’t make you anomymous. For this purpose you should use Tor Browser↩︎

What's on this Page