Changes

How to Set Up a Tor Relay on CentOS 6

544 bytes added, 14:01, 28 June 2014
no edit summary
##At this point you can reboot your system and hit ''Esc'' after entering your ''HDD Encryption Password'' and watch for ''ntpd'' and ''tor'' to start toward the end of the boot process if you want.
##Configure ''Tor'' to act as a Relay
###Create a Control Password (you'll use this later) by running ''sudo tor --hash-password <yourpasswordhere> > TempPassFile''
###Edit ''/etc/tor/torrc''
###Uncomment ''ORPort 9001'' to enable the system as a Relay
###Uncomment ''HashedControlPassword ...'' to use a password to secure the ControlPort. We will setup this password later
###Uncomment ''RelayBandwidthRate'' and ''RelayBandwidthBurst'' and set them to something suitable for your connection. I recommend running a [http://www.speedtest.net/ speedtest] and taking half of the upload value. Keep in mind that the configuration is in KiloBytes. This particular speedtest returns results in MegaBits. This means you must take the Mb result from the speedtest, multiply by 1000 (to convert to Kb) and then divide by 8 (to convert to KB). Then divide by 2 to get half of this value.
###Save and exit your editor##Setup any Firewalls to pass your 9001 ORPort(and possibly 9051 ControlPort)
###Router: [http://www.dd-wrt.com/site/index DD-WRT]
####I use [http://www.dd-wrt.com/site/index DD-WRT] for my Router Firmware. It allows me to run multiple PCs on my network and direct traffic to the correct computer based on Port. We will need to give the Tor Relay Server a static IP and ensure that Tor traffic is forwarded to that machine. If you use another router you can learn more about port forwarding [http://portforward.com/english/routers/port_forwarding/ here].
####If you want to be able to monitor your relay remotely using ''arm'' (instead of only at the console) add the following line as well.
####*''-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 9051 -j ACCEPT''
####Run ''sudo service iptables restart'' to force your new rules to take effect
##Setup [https://www.atagar.com/arm/ Arm]
###Arm is a nice "graphical" command line program that can give you status information on your Tor Relay. It is a lot more fun to look at than log files ;)
###
*#https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sect-Date_and_Time_Configuration-Command_Line_Configuration-Network_Time_Protocol.html
*#http://wiki.centos.org/HowTos/SELinux
*#http://blog.stalkr.net/2013/01/tor-relay-and-transparent-routing.html