Project

General

Profile

Support #742

Updated by Daniel Curtis almost 9 years ago

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

 h2. Prepare the Environment 

 * Make sure the system is up to date: 
 <pre> 
 pkg update && pkg upgrade 
 </pre> 

 h2. Install TOR 

 * Install TOR: 
 <pre> 
 pkg install tor 
 </pre> 

 * Tor users are strongly advised to prevent traffic analysis that exploits sequential IP IDs by setting: 
 <pre> 
 sysctl net.inet.ip.random_id=1 
 </pre> 
 #* Reboot for it to take effect: 
 <pre> 
 reboot 
 </pre> 

 * Edit the TOR config file: 
 <pre> 
 vi /usr/local/etc/tor/torrc 
 </pre> 
 #* And add/modify the following lines: 
 <pre> 
 ORPort 9001 443 
 Nickname ExampleNode 
 RelayBandwidthRate 1024 KB 
 RelayBandwidthBurst 1024 KB 
 NickName exampleuser 
 ContactInfo Bob User <bob@example.com> bob@example.com 
 ExitPolicy reject *:* 
 </pre> 

 * Start and enable TOR at boot: 
 <pre> 
 echo 'tor_enable="YES"' >> /etc/rc.conf 
 service tor start 
 </pre> 

 h2. Resources 

 * http://www.bsdnow.tv/tutorials/tor 
 * https://www.torproject.org/docs/tor-doc-relay.html.en 
 * https://blog.torproject.org/running-exit-node

Back