首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

Linux下安装tor、stem、Privoxy

For this program it'snecessary install in a one Linux distribution (in this case the author has usedLinux Mind) the next tools:

-Tor

-Stem:is a Python controllerlibrary for tor.

-Privoxy:is a non-caching webproxy with advanced filtering capabilities for enhancing privacy, modifying webpage data and HTTP headers, controlling access, and removing ads and otherobnoxious Internet junk. Privoxy has a flexible configuration and can becustomized to suit individual needs and tastes. It has application for bothstand-alone systems and multi-user networks.

Tor

Install Tor.

the socks listener is on port9050.

Next, do the following:

·Enable theControlPort listener for Tor to listen on port 9051, as this is the port towhich Tor will listen for any communication from applications talking to theTor controller.

·Hash a newpassword that prevents random access to the port by outside agents.

·Implementcookie authentication as well.

You can create a hashedpassword out of your password using:

In this case i put1234proof password. The hashpassword generated is:

Then, update the/etc/tor/torrc with the port, hashed password, and cookie authentication.

Restart Tor again to theconfiguration changes are applied.

if you have any problems, youcan enable control port using --controlport flag as follows:

python-stem

Installpython-stemwhich is aPython-based module used to interact with the Tor Controller, letting us sendand receive commands to and from the Tor Control port programmatically.

privoxy

Tor itself is not a httpproxy. So in order to get access to the Tor Network, useprivoxyas an http-proxy thoughsocks5.

Installprivoxyvia the followingcommand:

Now, tellprivoxyto use TOR by routingall traffic through the SOCKS servers at localhost port 9050.

and enableforward-socks5as follows:

Restartprivoxyafter making the changeto the configuration file.

  • 发表于:
  • 原文链接https://kuaibao.qq.com/s/20181103G1ME1W00?refer=cp_1026
  • 腾讯「腾讯云开发者社区」是腾讯内容开放平台帐号(企鹅号)传播渠道之一,根据《腾讯内容开放平台服务协议》转载发布内容。
  • 如有侵权,请联系 cloudcommunity@tencent.com 删除。

扫码

添加站长 进交流群

领取专属 10元无门槛券

私享最新 技术干货

扫码加入开发者社群
领券