Project

General

Profile

Support #742

Install a TOR Relay on FreeBSD

Added by Daniel Curtis almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
The Onion Router (TOR)
Target version:
Start date:
02/07/2016
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:

Description

This is a simple guide for getting TOR setup as a relay on FreeBSD 10.2.

Prepare the Environment

  • Make sure the system is up to date:
    pkg update && pkg upgrade
    

Install TOR

  • Install TOR:
    pkg install tor
    
  • Tor users are strongly advised to prevent traffic analysis that exploits sequential IP IDs by setting:
    sysctl net.inet.ip.random_id=1
    
    • Reboot for it to take effect:
      reboot
      
  • Edit the TOR config file:
    vi /usr/local/etc/tor/torrc
    
    • And add/modify the following lines:
      ORPort 9001
      Nickname ExampleNode
      RelayBandwidthRate 1024 KB
      RelayBandwidthBurst 1024 KB
      ContactInfo Bob User <bob@example.com>
      ExitPolicy reject *:*
      
  • Start and enable TOR at boot:
    echo 'tor_enable="YES"' >> /etc/rc.conf
    service tor start
    

Resources

Also available in: Atom PDF