From Fedora Project Wiki
Jamielinux (talk | contribs) (Created page with "{{QA/Test_Case |description=This testcase will check whether Tor be run as a public relay. |setup= # Ensure the {{package|tor}} package is installed. # The <code>/etc/tor/torr...") |
Jamielinux (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
# Ensure the {{package|tor}} package is installed. | # Ensure the {{package|tor}} package is installed. | ||
# The <code>/etc/tor/torrc</code> configuration file should be the default one included with the package. | # The <code>/etc/tor/torrc</code> configuration file should be the default one included with the package. | ||
# Append these lines to <code>/etc/tor/torrc</code>: | # Append these three lines to <code>/etc/tor/torrc</code>: | ||
<pre> | <pre> | ||
Log notice file /var/log/tor/notices.log | Log notice file /var/log/tor/notices.log | ||
Line 14: | Line 14: | ||
# <code>sudo tail -f /var/log/tor/notices.log</code> | # <code>sudo tail -f /var/log/tor/notices.log</code> | ||
|results= | |results= | ||
The <code>/var/log/tor/notices.log</code> file should contain all | The <code>/var/log/tor/notices.log</code> file should contain all five of these lines: | ||
<pre> | <pre> | ||
Mar 05 15:21:18.000 [notice] Tor has successfully opened a circuit. Looks like client functionality is working. | |||
Mar 05 15:21:18.000 [notice] Bootstrapped 100%: Done. | |||
Mar 05 15:21:18.000 [notice] Now checking whether ORPort 12.34.56.78:9001 is reachable... (this may take up to 20 minutes -- look for log messages indicating success) | Mar 05 15:21:18.000 [notice] Now checking whether ORPort 12.34.56.78:9001 is reachable... (this may take up to 20 minutes -- look for log messages indicating success) | ||
Mar 05 15:21:21.000 [notice] Self-testing indicates your ORPort is reachable from the outside. Excellent. Publishing server descriptor. | Mar 05 15:21:21.000 [notice] Self-testing indicates your ORPort is reachable from the outside. Excellent. Publishing server descriptor. |
Latest revision as of 15:30, 5 March 2013
Description
This testcase will check whether Tor be run as a public relay.
Setup
- Ensure the
tor
package is installed. - The
/etc/tor/torrc
configuration file should be the default one included with the package. - Append these three lines to
/etc/tor/torrc
:
Log notice file /var/log/tor/notices.log ORPort 9001 ExitPolicy reject *:*
How to test
sudo systemctl start tor.service
sudo tail -f /var/log/tor/notices.log
Expected Results
The /var/log/tor/notices.log
file should contain all five of these lines:
Mar 05 15:21:18.000 [notice] Tor has successfully opened a circuit. Looks like client functionality is working. Mar 05 15:21:18.000 [notice] Bootstrapped 100%: Done. Mar 05 15:21:18.000 [notice] Now checking whether ORPort 12.34.56.78:9001 is reachable... (this may take up to 20 minutes -- look for log messages indicating success) Mar 05 15:21:21.000 [notice] Self-testing indicates your ORPort is reachable from the outside. Excellent. Publishing server descriptor. Mar 05 15:21:23.000 [notice] Performing bandwidth self-test...done.
NB: The bandwidth self-test can sometimes take a minute or two.