Changes

How to Set Up a Tor Relay on CentOS 6

1,174 bytes added, 23:49, 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
###QQQ Create a Control Password (you'll use this later) by running ''sudo tor --hash-password <yourpasswordhere> > TempPassFile''###QQQ Delete the record of your Control Password from your History####QQQ Run ''history'' to see a numbered list of the commands you executed####QQQ Find the entry for ''sudo tor --hash-password <yourpasswordhere> > TempPassFile'' and note the <LineNumber>####QQQ Run ''history -d <LineNumber>'' to remove that line from your history###QQQ Open your ''TempPassFile'' with ''vi /path/to/TempPassFile''###QQQ Arrow down to the last line and "yank" (copy) the line by hitting''yy''###QQQ Open your ''/etc/tor/torrc'' from within vi by executing '':e /etc/tor/torrc''###QQQ Uncomment ''HashedControlPassword ...'' to use a password to secure the ControlPort###QQQ Hit ''p'' to "paste" the hashed password your yanked a few minutes ago. Erase the original long hash replacing it with your pasted hash. This now make the Control Password the one you typed in earlier.
###Uncomment ''ORPort 9001'' to enable the system as a Relay
###Uncomment ''ExitPolicy reject *:*'' to configure the Relay as a "common" Middle Relay
###Test the RPM signature: ''rpm --checksig arm-1.4.5.0-1.rpm''
###Install arm: ''sudo rpm -ivh arm-1.4.5.0-1.rpm.asc'' (''i'' = install, ''h'' = print progress bar, ''v'' = verbose)
###Add yourself to to the ''_tor'' group: ''sudo usermod -a -G _tor <username>'' so you can run ''arm'' and interact with ''tor'' properly. Logout and back in for the group modification to take effect.###You should now be able to run ''arm'' by typing ''arm'' at the command line. In addition, soon you should be able to find your relay at [https://atlas.torproject.org/ Atlas], [https://globe.torproject.org/ Globe], and [http://torstatus.blutmagie.de/ Tor Status]. Type your relay's ''Nickname'' into the search box in [https://atlas.torproject.org/ Atlas]and [https://globe.torproject.org/ Globe]. Do a "find" with your browser at [http://torstatus.blutmagie.de/ Tor Status].###Even though ''arm'' works it throws some warnings. Lets fix those now.####Edit ''/etc/tor/torrc''####Uncomment ''Log notice file /var/log/tor/notice.log'' (If you are having issue then, temporarily, uncomment the ''Log debug'' line)####Underneath ''DataDirectory /var/lib/tor'' add the following lines####*''<nowiki>##</nowiki> Path for a file tor writes containing its process id''####*''PidFile /var/run/tor/tor.pid''####Uncomment ''RunAsDaemon 1''####Underneath ''RunAsDaemon 1'' add the followign lines####*<nowiki>##</nowiki> UID for the process when started####*User _tor
*Resources