mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-25 23:11:02 +08:00
translated
This commit is contained in:
parent
2ca82e18ef
commit
613744becc
@ -1,65 +1,63 @@
|
||||
translating---geekpi
|
||||
|
||||
Turn Tor socks to http
|
||||
将Tor socks转换成http
|
||||
================================================================================
|
||||
![](http://1426826955.rsc.cdn77.org/wp-content/uploads/2015/12/tor-593x445.jpg)
|
||||
|
||||
For using Tor service you can use diffrent tools like Tor browser, Foxyproxy and other things, some download managers such as Wget or Aria2 can’t get Tor socks directly and start downloading anonymously with that so we need some tools to change Tor socks to http and then download with that.
|
||||
使用tor服务你可以使用不同的工具像Tor浏览器、Foxyproxy和其他事情,有些下载管理器像wget和aria2不能直接直接使用tor socks开始匿名下载,因此我们需要一些工具来将tor socks转换成http代理这样就能用它来下载了。
|
||||
|
||||
**Note** : This tutorial is under Debian distrobutions and in other distrobutions may be diffrent so if your distro is Debian base and you have configured Tor correctly go a head !
|
||||
**注意**:本教程基于Debian下,其他发行版会有些不同,因此如果你的发行版是基于Debian的,就可以直接使用下面的配置了。
|
||||
|
||||
**Polipo** : This service uses 8123 Port and 127.0.0.1 IP, use following command to install Polipo on your computer :
|
||||
**Polipo** : 这个服务会使用8123端口和127.0.0.1的IP,使用下面的命令来在计算机上安装Polipo:
|
||||
|
||||
sudo apt install polipo
|
||||
|
||||
Now use this command to go in Polipo config file:
|
||||
现在使用这个命令打开Polipo的配置文件:
|
||||
|
||||
sudo nano /etc/polipo/config
|
||||
|
||||
Add the following lines to the end of the file :
|
||||
在文件最后加入下面的行:
|
||||
|
||||
proxyAddress = "::0"
|
||||
allowedClients = 192.168.1.0/24
|
||||
socksParentProxy = "localhost:9050"
|
||||
socksProxyType = socks5
|
||||
|
||||
Restart the Polipo service with this command :
|
||||
用下面的命令来重启Polipo:
|
||||
|
||||
sudo service polipo restart
|
||||
|
||||
Now Polipo is ready ! do what ever you like in anonymous world ! as example of how using it :
|
||||
现在Polipo已经安装好了!在匿名的世界里做你想做的吧!下面是使用的例子:
|
||||
|
||||
pdmt -l "link" -i 127.0.01 -p 8123
|
||||
|
||||
With command above, PDMT ( Persian Download Manager Terminal ) will download your file anonymously.
|
||||
用上面的命令PDMT(Persian下载器)会匿名地下载你的文件。
|
||||
|
||||
**Proxychains** : In this service you can set Tor or Lantern proxy to turn socks too but in usage it’s a little diffrent with Polipo and Privoxy because you don’t need to use any port ! for installing that use following command :
|
||||
**Proxychains** : 在此服务中你可以设置使用tor或者Lantern代理,但是在使用上它和Polipo和Privoxy有点不同,它不需要使用任何端口!使用下面的命令来安装:
|
||||
|
||||
sudo apt install proxychains
|
||||
|
||||
Open config file with this command :
|
||||
用这条命令来打开配置文件:
|
||||
|
||||
sudo nano /etc/proxychains.conf
|
||||
|
||||
Now add the following code to the end of text, this code is Tor port and Ip :
|
||||
现在添加下面的代码到文件底部,这里是tor的端口和IP:
|
||||
|
||||
socks5 127.0.0.1 9050
|
||||
|
||||
If you put “proxychains” word before a command in terminal and run it, it would run by Tor proxy :
|
||||
如果你在命令的前面加上“proxychains”并运行,它就能通过tor代理来运行:
|
||||
|
||||
proxychains firefoxt
|
||||
proxychains aria2c
|
||||
proxychains wget
|
||||
|
||||
**Privoxy** : Privoxy uses 8118 port and it’s easy to run first install privoxy package :
|
||||
**Privoxy** : Privoxy使用8118端口,并且首次可以很轻松地通过privoxy包来安装:
|
||||
|
||||
sudo apt install privoxy
|
||||
|
||||
We should change the config file now :
|
||||
我们现在要修改配置文件:
|
||||
|
||||
sudo nano /etc/pivoxy/config
|
||||
|
||||
Add the following lines to end of the file :
|
||||
在文件底部加入下面的行:
|
||||
|
||||
forward-socks5 / 127.0.0.1:9050 .
|
||||
forward-socks4a / 127.0.0.1:9050 .
|
||||
@ -69,18 +67,18 @@ Add the following lines to end of the file :
|
||||
forward 127.*.*.*/ .
|
||||
forward localhost/ .
|
||||
|
||||
Restart the service :
|
||||
重启服务:
|
||||
|
||||
sudo service privoxy restart
|
||||
|
||||
Service is ready ! port is 8118 and Ip is 127.0.0.1 use it and enjoy from it !
|
||||
服务已经好了!端口是8118,IP是127.0.0.1,就尽情使用吧!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.unixmen.com/turn-tor-socks-http/
|
||||
|
||||
作者:[Hossein heydari][a]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
译者:[geekpi](https://github.com/geekpi)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
Loading…
Reference in New Issue
Block a user