如何使用不同的退出 IP 一次运行多个 Tor 进程? [英] How to run multiple Tor processes at once with different exit IPs?

查看:19
本文介绍了如何使用不同的退出 IP 一次运行多个 Tor 进程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Tor 的新手,我觉得应该考虑多个 Tor.我这里提到的多个tors不仅是多个实例,而且每个实例都使用不同的代理端口,就像这里所做的一样http://www.howtoforge.com/ultimate-security-proxy-with-tor)

I am brand new to Tor and I feel like multiple Tors should be considered. The multiple tors I mentioned here are not only multiple instances, but also using different proxy ports for each, like what has been done here http://www.howtoforge.com/ultimate-security-proxy-with-tor)

我正在尝试开始使用 4 Tors.但是,本教程仅适用于 Arch Linux,我使用的是无头 EC2 ubuntu 64 位.经历 Arch 和 Ubuntu 之间的差异真的很痛苦.在这里,我想知道是否有人可以提供一些帮助来简单地实现我的想法.

I am trying to get started with 4 Tors. However, the tutorial applies only to Arch Linux and I am using a headless EC2 ubuntu 64bits. It is really a pain going through the differences between Arch and Ubuntu. And here I am wondering is there anyone could offer some help to implement my idea simplicitly.

  1. 四个 Tors 同时运行,每个 Tors 都有一个单独的端口,privoxy 或 polipo 或任何一旦工作就可以了.喜欢:8118 <- 隐私 <- TOR <- 90508129 <- 隐私 <- TOR <- 91508230 <- 隐私 <- TOR <- 92508321 <- 隐私 <- TOR <- 9350

  1. Four Tors running at the same time each with an individual port, privoxy or polipo or whatever are ok once it works. Like: 8118 <- Privoxy <- TOR <- 9050 8129 <- Privoxy <- TOR <- 9150 8230 <- Privoxy <- TOR <- 9250 8321 <- Privoxy <- TOR <- 9350

这样,如果我尝试返回127.0.0.1:8118、8129、8230和8321的ip,它们应该返回四个不同的ip,这说明有四个不同的Tor同时运行.然后,几分钟后,再次检查,他们四个应该都有一个新的ips.

In this way, if I try to return the ip of 127.0.0.1:8118, 8129, 8230 and 8321, they should return four different ips, which indicates there are four different Tors running at the same time. Then, a few minutes later, check again, all four of them should have a new ips again.

我知道我的简单梦想"可以在很多方面实现,然而......我不仅是 Tor 的新手,而且对 bash 和 python 也是如此......这就是我来这里看看是否有一些你可以点亮我.

I know my simple 'dream' could come true in many ways, however... I am not only new to Tor, but even also to bash and python... That is why I come here and see whether some of you could light me up.

这些链接可能有用:

http://blog.databigbang.com/distributed-scraping-with-multiple-Tor电路/https://www.torservers.net/wiki/setup/server#multiple_tor_processes最好的,

顺便说一句,如果我跑<代码>$ ps -A |grep 'tor'我在那里有几个实例,但是?"在 tty 列下,这是什么意思,因为我知道 tty 表示终端?

btw, if I run $ ps -A | grep 'tor' i have several instances there, however with "?" under the tty column, what does that mean since I know tty means terminals?

推荐答案

创建四个torrc文件,比如/etc/tor/torrc.1.4.

Create four torrc files, say /etc/tor/torrc.1 to .4.

在每个文件中,编辑行:

In each file, edit the lines:

SocksPort 9050
ControlPort 9051
DataDirectory /var/lib/tor

为每个 torrc 文件使用不同的资源,例如对于 torrc.1:

to use different resources for each torrc file, e.g. for for torrc.1:

SocksPort 9060
ControlPort 9061
DataDirectory /var/lib/tor1

对于torrc.2,

SocksPort 9062
ControlPort 9063
DataDirectory /var/lib/tor2

等等.

仅包含以上几行的配置文件将起作用:如果您愿意,可以从默认模板中删除所有其他行.

A configuration file containing only the above lines will work: you can delete every other line from the default template if you feel like it.

DataDirectory 也可以相对于启动 tor 的当前目录,例如:

DataDirectory can also be relative to the current directory where tor is launched, e.g.:

DataDirectory d1

然后像这样开始:

tor -f /etc/tor/torrc.1  
tor -f /etc/tor/torrc.2

其他两个文件依此类推.

and so on for the other two files.

这将在四个端口上创建四个不同的 Socks5 服务器.每个人都会打开不同的电路,这就是你想要的.

This will create four different Socks5 servers on the four ports. Each one will open a different circuit, which is what you want.

这篇关于如何使用不同的退出 IP 一次运行多个 Tor 进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆