Tor Logo

Tor Relay

Installation

Install the tor package:

$ opgk update
$ opkg install tor tor-fw-helper tor-geoip

Configuration

Edit /etc/tor/torrc:

 1 SocksPort 192.0.2.1:9100
 2 SocksPolicy accept 192.0.2.0/24
 3 SocksPolicy reject *
 4 Log notice file /var/log/tor/notices.log
 5 RunAsDaemon 1
 6 DataDirectory /var/lib/tor
 7 ORPort 110
 8 OutboundBindAddress 192.0.2.1
 9 Nickname Example
10 RelayBandwidthRate  12500 KB # Throttle traffic to 12.5 MB/s (100 Mbps)
11 RelayBandwidthBurst 25000 KB # But allow bursts up to 25 MB/s (200 Mbps)
12 DirPort 9030 # what port to advertise for directory connections
13 ExitPolicy reject *:* # no exits allowed
14 User tor

Allow access to the data directory:

$ chmod +x /var /var/lib

(Re-)Start

$ /etc/init.d/tor start

Reference