Tor

From ArchWiki

Jump to: navigation, search
Image:Tango-document-new.png This article is a stub.
It may be confusing, not contain enough information, or be a placeholder for an article to come. People are invited to expand it to full article status and remove this box.
Image:Tango-two-arrows.png This article is a candidate for merging.
It has been suggested that this page or section be merged with Proxy routing with Tor and Privoxy. (Discuss)

Contents

[edit] Introduction

Tor is a free implementation of 2nd generation onion routing - essentially, it is an anonymous proxy network. Its primary goal is to protect its users against traffic analysis attacks.

[edit] Installing necessary packages

pacman -S tsocks privoxy tor

[edit] Basic configuration

Edit /etc/privoxy/config

forward-socks4a / localhost:9050 .  # Don't forget the '.' at the end!

Privoxy's default configuration logs all GET, POST, and CONNECT HTTP requests. to disable, comment out.

#debug   1    # show each GET/POST/CONNECT request

Arch currently uses a newer version of libevent but Tor requires the old one.

$ ln -s /usr/lib/libevent-1.4.so.2.1.2 /usr/lib/libevent-1.3e.so.1

[edit] Binding Privoxy to the local network, eg.

listen-address  192.168.0.1:8118

[edit] Starting service on boot

Edit /etc/rc.conf

DAEMONS=(.. privoxy tor ..)

[edit] Starting service

/etc/rc.d/privoxy start
/etc/rc.d/tor start

[edit] Internet relay chat via irssi

torify irssi

[edit] Map address to hidden service

Edit /etc/tor/torrc

mapaddress  10.40.40.40  mejokbp2brhw4omd.onion # freenode

[edit] Connect to freenode's hidden service

torify irssi -c 10.40.40.40

[edit] Running a Tor Server

[edit] Basic configuration

You should at least share 20kb/s.

Nickname <tornickname>
ORPort 9001
BandwidthRate 20 KB            # Throttle traffic to 20KB/s
BandwidthBurst 50 KB           # But allow bursts up to 50KB/s

[edit] Allow irc ports 6660-6667 to exit from node

ExitPolicy accept *:6660-6667,reject *:* # allow irc ports but no more

[edit] Running Tor as an exit node

ExitPolicy accept *:119        # accept nntp as well as default exit policy

[edit] Running Tor as middleman

 ExitPolicy reject *:*
Personal tools