# cat /etc/redhat-release CentOS release 6.7 (Final) # yum -y install tor.x86_64 # rpm -ql tor.x86_64 /etc/logrotate.d/tor /etc/rc.d/init.d/tor /etc/tor /etc/tor/torrc /usr/bin/tor /usr/bin/tor-gencert /usr/bin/tor-resolve /usr/bin/torctl /usr/bin/torify /usr/share/doc/tor-0.2.7.6 /usr/share/doc/tor-0.2.7.6/ChangeLog /usr/share/doc/tor-0.2.7.6/HACKING /usr/share/doc/tor-0.2.7.6/LICENSE /usr/share/doc/tor-0.2.7.6/README /usr/share/doc/tor-0.2.7.6/ReleaseNotes /usr/share/doc/tor-0.2.7.6/tor-gencert.html /usr/share/doc/tor-0.2.7.6/tor-resolve.html /usr/share/doc/tor-0.2.7.6/tor.html /usr/share/doc/tor-0.2.7.6/torify.html /usr/share/man/man1/tor-gencert.1.gz /usr/share/man/man1/tor-resolve.1.gz /usr/share/man/man1/tor.1.gz /usr/share/man/man1/torify.1.gz /usr/share/tor /usr/share/tor/defaults-torrc /usr/share/tor/geoip /usr/share/tor/geoip6 /var/lib/tor /var/log/tor /var/run/tor # egrep -v '^#|^$' /etc/tor/torrc ControlSocket /var/run/tor/control CookieAuthentication 1 CookieAuthFile /var/run/tor/control.authcookie # grep -i Hidden /etc/tor/torrc ############### This section is just for location-hidden services ### ## Once you have configured a hidden service, you can look at the ## contents of the file ".../hidden_service/hostname" for the address ## HiddenServicePort x y:z says to redirect requests on port x to the #HiddenServiceDir /var/lib/tor/hidden_service/ #HiddenServicePort 80 127.0.0.1:80 #HiddenServiceDir /var/lib/tor/other_hidden_service/ #HiddenServicePort 80 127.0.0.1:80 #HiddenServicePort 22 127.0.0.1:22 # /etc/init.d/tor status tor is not running # /etc/init.d/tor start Raising maximum number of filedescriptors (ulimit -n) to 32768. Starting tor: Jan 13 14:33:06.189 [notice] Tor v0.2.7.6 running on Linux with Libevent 1.4.13-stable, OpenSSL 1.0.1e-fips and Zlib 1.2.3. Jan 13 14:33:06.189 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning Jan 13 14:33:06.189 [notice] Read configuration file "/usr/share/tor/defaults-torrc". Jan 13 14:33:06.189 [notice] Read configuration file "/etc/tor/torrc". Jan 13 14:33:06.196 [notice] Opening Socks listener on 127.0.0.1:9050 [ OK ] # chkconfig --list | grep ^tor tor 0:off 1:off 2:off 3:off 4:off 5:off 6:off # /etc/init.d/tor status tor is running (pid: 29731) # /etc/init.d/tor stop Stopping tor: [ OK ]