个人工具
登录
查看“UbuntuHelp:TOR”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:TOR”的源代码
来自Ubuntu中文
←
UbuntuHelp:TOR
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/TOR}} {{Languages|UbuntuHelp:TOR}} {|border="1" cellspacing="0" | {i} Tor is part of the [[UbuntuHelp:UserDocumentation|UserDocumentation]] series of index pages. Please read the [[UbuntuHelp:WikiGuide|WikiGuide]] prior to making changes. |} This page is a brief howto for running a Tor client and relay under Ubuntu 8.04 (Hardy Heron), 8.10 (Intrepid Ibex), and 9.04 (Jaunty Jackalope). Please also consult the [https://wiki.torproject.org/noreply/TheOnionRouter/TorOnDebian official Tor installation guide] until this page has been completely updated as [https://www.torproject.org/download#Warning it is crucial] to get everything right with a security application such as Tor. == Introduction == Tor or The Onion Router is a toolset used to help anonymize your traffic. From the Tor [http://www.torproject.org website]: Tor is a toolset for a wide range of organizations and people that want to improve their safety and security on the Internet. Using Tor can help you anonymize web browsing and publishing, instant messaging, IRC, SSH, and other applications that use the TCP protocol. Tor also provides a platform on which software developers can build new applications with built-in anonymity, safety, and privacy features. This guide is an adaptation of the official Tor installation method. It has been changed to reflect installation methods unique to Ubuntu, but may easily be used as a guide for other Debian based distros. == Installing Tor == See [https://wiki.torproject.org/noreply/TheOnionRouter/TorOnDebian Tor installation documentation] for the latest instructions. You will need to add the following repositories to your <code><nowiki>/etc/apt/sources.list</nowiki></code> file: * '''Ubuntu 8.04 (Hardy Heron):''' <pre><nowiki> deb http://mirror.noreply.org/pub/tor hardy main deb-src http://mirror.noreply.org/pub/tor hardy main</nowiki></pre> * '''Ubuntu 8.10 (Intrepid Ibex):''' <pre><nowiki> deb http://mirror.noreply.org/pub/tor intrepid main deb-src http://mirror.noreply.org/pub/tor intrepid main</nowiki></pre> * '''Ubuntu 9.04 (Jaunty Jackalope):''' <pre><nowiki> deb http://mirror.noreply.org/pub/tor jaunty main deb-src http://mirror.noreply.org/pub/tor jaunty main</nowiki></pre> This can be done by using nano, gedit or another text editor of your choosing. Or use the System --> Admin --> [[UbuntuHelp:Repositories/Ubuntu|Software|Sources GUI application]]. Before moving on be sure to get the PGP keys for the new repositories and do an update / upgrade using the following commands or use the authentication tab in the Software Sources GUI: <pre><nowiki> gpg --keyserver subkeys.pgp.net --recv 94C09C7F gpg --fingerprint 94C09C7F gpg --export 94C09C7F | sudo apt-key add - sudo apt-get update sudo apt-get upgrade</nowiki></pre> Then, we will install Tor by issuing the following command or use System --> Administration --> [[UbuntuHelp:SynapticHowto|Synaptic Package Manager]]: <pre><nowiki> sudo apt-get install tor </nowiki></pre> == Install Privoxy == Simply make sure you have universal repositories and then: <pre><nowiki> sudo apt-get install privoxy </nowiki></pre> === Configure Privoxy === Edit the file "/etc/privoxy/config" doing for example using nano: <pre><nowiki> sudo nano /etc/privoxy/config </nowiki></pre> Add the following line (anywhere in the file is fine): <pre><nowiki> forward-socks4a / localhost:9050 . </nowiki></pre> Save (Ctrl+O if in nano) and then exit (Ctrl+X if in nano). === Starting Services and Checking Status === <pre><nowiki> sudo /etc/init.d/tor start sudo /etc/init.d/privoxy start /* Check that the service is running on port 9050 */ netstat -a | grep 9050 /* You should see the following output: */ tcp 0 0 localhost:9050 *:* LISTEN </nowiki></pre> If you are interested in testing by connecting to a website try [https://check.torproject.org/ check.torproject.org] Thats it! === A Note On Local Logging === To be truly anonymous, you may want to turn off local logging for all your GET/POST/CONNECT request in privoxy's config file. For this edit the file "/etc/privoxy/config" doing for example using nano: <pre><nowiki> sudo nano /etc/privoxy/config Go to line 573 (approx) and comment the line like so: # debug 1 # show each GET/POST/CONNECT request debug 4096 # Startup banner and warnings debug 8192 # Errors - *we highly recommended enabling this* </nowiki></pre> Save (Ctrl+O if in nano) and then exit (Ctrl+X if in nano). You may also choose to enable SafeLogging in your Tor config. This can be done by opening the config file at <code><nowiki>/etc/tor/torrc</nowiki></code> and adding "SafeLogging 1" to the end of the file. See the [http://www.torproject.org/tor-manual Tor Manual] for more information. == Install Vidalia (Optional) == Vidalia is a controlling Graphical User Interface for Tor. Tor must be installed for Vidalia to work. Once you have installed Tor and Vidalia you can configure client and relay settings through Vidalia. To install, type the following command in a terminal: <pre><nowiki> sudo apt-get install vidalia </nowiki></pre> == Anonymizing Applications == What's the use of having Tor and Privoxy setup without enabling your new anonymous proxy in your common web applications? At this time Tor only supports HTTP and HTTPS traffic, but still recommends using Tor in your browser's proxy settings for all protocols as a hidden image link can give away your IP address if linked to an image on an FTP site. A complete list of supported applications can be found [http://wiki.noreply.org/noreply/TheOnionRouter/TorifyHOWTO#Howtotorifyseveralprograms here]. === Firefox === The Torbutton Add-on <ol><li>Go to Tools > Add-ons </li><li>Select Get add-ons in the top menu </li><li>Type torbutton in the search bar > Press ENTER </li><li>click the "Add to firefox" button </li><li>You will need to restart Firefox for the addon to take effect.</li></ol> '''Note''': Browsing through an anonymizing proxy will always slow down your connection. When using Tor Button, it appears to be necessary to first disable the proxy settings in Firefox's native options menu; otherwise Tor Button will be unable to disable Tor. === Gaim === <ol><li>Go to the Accounts, select your Account </li><li>Select Edit Account </li><li>Go to the Advanced Tab </li><li>Under Proxy Options select proxy type SOCKS v5</li></ol> * Enter 127.0.0.1 for the host * Enter 9050 for the port * Leave user/pass blank === Mozilla Thunderbird === Get the [https://addons.mozilla.org/firefox/2275 Tor Button] addon for Thunderbird, install and setup just like with Firefox. If you're using the same server name for receiving and sending mail but still want to receive mail through Tor, change your SMTP server's name to it's IP and exclude the IP from being proxied. This way, mail will be received from your mail server by it's name (and through Tor), but sent by the same server without Tor. === X-Chat === Settings-> Preferences -> Network -> Network setup -> Proxy server Use the following settings: <pre><nowiki> Hostname: 127.0.0.1 Port: 9050 Type: Socks5 </nowiki></pre> === Azureus (BitTorrent Client) === Again, pretty much all you really need to do here is to proxy tracker communications. There is an option for this under the connections pane in Azureus. Fill in 127.0.0.1 9050 for the SOCKS proxy for tracker data. The most common proxy settings under Proxy Options in Connection Tab of Options Menu: * Enable proxying of tracker communications (checked) * I have a SOCKS proxy (checked) * Host: 127.0.0.1 * Port: 9050 * Username and Password <none> * Enable proxying of peer communications (checked) * Inform tracker of limitation (unchecked) * SOCKS version V5 * Use same proxy settings for tracker and peer communications More information [http://azureus.sourceforge.net/doc/AnonBT/Tor/howto_0.5.htm here]. == References and More Information == * http://www.torproject.org/ * http://wiki.noreply.org/noreply/TheOnionRouter * http://gentoo-wiki.com/HOWTO_Anonymity_with_Tor_and_Privoxy * http://ubuntuforums.org/showthread.php?t=10825 ---- [[category:CategorySecurity]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:TOR
。