torrc.bridge.in 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. ## Configuration file for a typical Tor user
  2. ## Last updated 16 July 2009 for Tor 0.2.2.1-alpha.
  3. ## (May or may not work for much older or much newer versions of Tor.)
  4. ##
  5. ## Lines that begin with "## " try to explain what's going on. Lines
  6. ## that begin with just "#" are disabled commands: you can enable them
  7. ## by removing the "#" symbol.
  8. ##
  9. ## See 'man tor', or https://www.torproject.org/docs/tor-manual.html,
  10. ## for more options you can use in this file.
  11. ##
  12. ## Tor will look for this file in various places based on your platform:
  13. ## https://www.torproject.org/docs/faq#torrc
  14. ## Replace this with "SocksPort 0" if you plan to run Tor only as a
  15. ## relay, and not make any local application connections yourself.
  16. SocksPort 9050 # what port to open for local application connections
  17. SocksListenAddress 127.0.0.1 # accept connections only from localhost
  18. #SocksListenAddress 192.168.0.1:9100 # listen on this IP:port also
  19. ## Entry policies to allow/deny SOCKS requests based on IP address.
  20. ## First entry that matches wins. If no SocksPolicy is set, we accept
  21. ## all (and only) requests from SocksListenAddress.
  22. #SocksPolicy accept 192.168.0.0/16
  23. #SocksPolicy reject *
  24. ## Logs go to stdout at level "notice" unless redirected by something
  25. ## else, like one of the below lines. You can have as many Log lines as
  26. ## you want.
  27. ##
  28. ## We advise using "notice" in most cases, since anything more verbose
  29. ## may provide sensitive information to an attacker who obtains the logs.
  30. ##
  31. ## Send all messages of level 'notice' or higher to @LOCALSTATEDIR@/log/tor/notices.log
  32. #Log notice file @LOCALSTATEDIR@/log/tor/notices.log
  33. ## Send every possible message to @LOCALSTATEDIR@/log/tor/debug.log
  34. #Log debug file @LOCALSTATEDIR@/log/tor/debug.log
  35. ## Use the system log instead of Tor's logfiles
  36. #Log notice syslog
  37. ## To send all messages to stderr:
  38. #Log debug stderr
  39. ## Uncomment this to start the process in the background... or use
  40. ## --runasdaemon 1 on the command line. This is ignored on Windows;
  41. ## see the FAQ entry if you want Tor to run as an NT service.
  42. #RunAsDaemon 1
  43. ## The directory for keeping all the keys/etc. By default, we store
  44. ## things in $HOME/.tor on Unix, and in Application Data\tor on Windows.
  45. #DataDirectory @LOCALSTATEDIR@/lib/tor
  46. ## The port on which Tor will listen for local connections from Tor
  47. ## controller applications, as documented in control-spec.txt.
  48. #ControlPort 9051
  49. ## If you enable the controlport, be sure to enable one of these
  50. ## authentication methods, to prevent attackers from accessing it.
  51. #HashedControlPassword 16:872860B76453A77D60CA2BB8C1A7042072093276A3D701AD684053EC4C
  52. #CookieAuthentication 1
  53. ############### This section is just for location-hidden services ###
  54. ## Once you have configured a hidden service, you can look at the
  55. ## contents of the file ".../hidden_service/hostname" for the address
  56. ## to tell people.
  57. ##
  58. ## HiddenServicePort x y:z says to redirect requests on port x to the
  59. ## address y:z.
  60. #HiddenServiceDir @LOCALSTATEDIR@/lib/tor/hidden_service/
  61. #HiddenServicePort 80 127.0.0.1:80
  62. #HiddenServiceDir @LOCALSTATEDIR@/lib/tor/other_hidden_service/
  63. #HiddenServicePort 80 127.0.0.1:80
  64. #HiddenServicePort 22 127.0.0.1:22
  65. ################ This section is just for relays #####################
  66. #
  67. ## See https://www.torproject.org/docs/tor-doc-relay for details.
  68. ## Required: what port to advertise for incoming Tor connections.
  69. ORPort 9001
  70. ## If you want to listen on a port other than the one advertised
  71. ## in ORPort (e.g. to advertise 443 but bind to 9090), uncomment the
  72. ## line below too. You'll need to do ipchains or other port forwarding
  73. ## yourself to make this work.
  74. #ORListenAddress 0.0.0.0:9090
  75. ## A handle for your relay, so people don't have to refer to it by key.
  76. Nickname Unnamed
  77. ## The IP address or full DNS name for your relay. Leave commented out
  78. ## and Tor will guess.
  79. #Address noname.example.com
  80. ## Define these to limit how much relayed traffic you will allow. Your
  81. ## own traffic is still unthrottled. Note that RelayBandwidthRate must
  82. ## be at least 20 KB.
  83. ## Note that units for these config options are bytes per second, not bits
  84. ## per second, and that prefixes are binary prefixes, i.e. 2^10, 2^20, etc.
  85. #RelayBandwidthRate 100 KB # Throttle traffic to 100KB/s (800Kbps)
  86. #RelayBandwidthBurst 200 KB # But allow bursts up to 200KB/s (1600Kbps)
  87. RelayBandwidthBurst 10485760
  88. RelayBandwidthRate 5242880
  89. ## Use these to restrict the maximum traffic per day, week, or month.
  90. ## Note that this threshold applies to sent _and_ to received bytes,
  91. ## not to their sum: Setting "4 GB" may allow up to 8 GB
  92. ## total before hibernating.
  93. ##
  94. ## Set a maximum of 4 gigabytes each way per period.
  95. #AccountingMax 4 GB
  96. ## Each period starts daily at midnight (AccountingMax is per day)
  97. #AccountingStart day 00:00
  98. ## Each period starts on the 3rd of the month at 15:00 (AccountingMax
  99. ## is per month)
  100. #AccountingStart month 3 15:00
  101. ## Contact info to be published in the directory, so we can contact you
  102. ## if your relay is misconfigured or something else goes wrong. Google
  103. ## indexes this, so spammers might also collect it.
  104. #ContactInfo Random Person <nobody AT example dot com>
  105. ## You might also include your PGP or GPG fingerprint if you have one:
  106. #ContactInfo 1234D/FFFFFFFF Random Person <nobody AT example dot com>
  107. ## Uncomment this to mirror directory information for others. Please do
  108. ## if you have enough bandwidth.
  109. DirPort 9030 # what port to advertise for directory connections
  110. ## If you want to listen on a port other than the one advertised
  111. ## in DirPort (e.g. to advertise 80 but bind to 9091), uncomment the line
  112. ## below too. You'll need to do ipchains or other port forwarding yourself
  113. ## to make this work.
  114. #DirListenAddress 0.0.0.0:9091
  115. ## Uncomment to return an arbitrary blob of html on your DirPort. Now you
  116. ## can explain what Tor is if anybody wonders why your IP address is
  117. ## contacting them. See contrib/tor-exit-notice.html in Tor's source
  118. ## distribution for a sample.
  119. #DirPortFrontPage @CONFDIR@/tor-exit-notice.html
  120. ## Uncomment this if you run more than one Tor relay, and add the identity
  121. ## key fingerprint of each Tor relay you control, even if they're on
  122. ## different networks. You declare it here so Tor clients can avoid
  123. ## using more than one of your relays in a single circuit. See
  124. ## https://wiki.torproject.org/noreply/TheOnionRouter/TorFAQ#MultipleServers
  125. ## However, you should never include a bridge's fingerprint here, as it would
  126. ## break its concealability and potentionally reveal its IP/TCP address.
  127. #MyFamily $keyid,$keyid,...
  128. ## A comma-separated list of exit policies. They're considered first
  129. ## to last, and the first match wins. If you want to _replace_
  130. ## the default exit policy, end this with either a reject *:* or an
  131. ## accept *:*. Otherwise, you're _augmenting_ (prepending to) the
  132. ## default exit policy. Leave commented to just use the default, which is
  133. ## described in the man page or at
  134. ## https://www.torproject.org/documentation.html
  135. ##
  136. ## Look at https://www.torproject.org/faq-abuse.html#TypicalAbuses
  137. ## for issues you might encounter if you use the default exit policy.
  138. ##
  139. ## If certain IPs and ports are blocked externally, e.g. by your firewall,
  140. ## you should update your exit policy to reflect this -- otherwise Tor
  141. ## users will be told that those destinations are down.
  142. ##
  143. #ExitPolicy accept *:6660-6667,reject *:* # allow irc ports but no more
  144. #ExitPolicy accept *:119 # accept nntp as well as default exit policy
  145. #ExitPolicy reject *:* # no exits allowed
  146. #
  147. ## Bridge relays (or "bridges") are Tor relays that aren't listed in the
  148. ## main directory. Since there is no complete public list of them, even if an
  149. ## ISP is filtering connections to all the known Tor relays, they probably
  150. ## won't be able to block all the bridges. Also, websites won't treat you
  151. ## differently because they won't know you're running Tor. If you can
  152. ## be a real relay, please do; but if not, be a bridge!
  153. BridgeRelay 1
  154. ExitPolicy reject *:*