Try
Step 1: Add Tor Repository
Firstly we need to add tor yum repository in our system. To create tor repository create file /etc/yum.repos.d/tor.repo and add following content on basis of your system.
Следующие основные пакеты будут автоматически также установлены :
Использование torsocks:
torsocks (like a torify) is an improved wrapper that explictly rejects UDP, safely resolves DNS lookups and properly socksifies your TCP connections.
Debian-like
sudo apt-get update sudo apt-get install tor tor-geoipdb
Fedora
sudo yum install torIf you get fault, let's do next:
Step 1: Add Tor Repository
Firstly we need to add tor yum repository in our system. To create tor repository create file /etc/yum.repos.d/tor.repo and add following content on basis of your system.
For CentOS/RHEL 6
[Tor] name=Tor Project Repo baseurl=http://deb.torproject.org/torproject.org/rpm/el/6/$basearch/ gpgcheck=1 enabled=1 gpgkey=http://deb.torproject.org/torproject.org/rpm/RPM-GPG-KEY-torproject.org.asc
For Fedora 20
[Tor] name=Tor Project Repo baseurl=http://deb.torproject.org/torproject.org/rpm/fc/20/$basearch/ gpgcheck=1 enabled=1 gpgkey=http://deb.torproject.org/torproject.org/rpm/RPM-GPG-KEY-torproject.org.asc
Step 2: Install Tor
yum install tor
Start Tor
tor or sudo /etc/init.d/tor start sudo /etc/init.d/privoxy start or sudo /etc/init.d/torsocks start
Следующие основные пакеты будут автоматически также установлены :
tor Анонимизирующая сеть для TCP tor-geoipdb GeoIP база данных для Tor torsocks Упрощает использование SOCKS-совместимых приложений с Tor
Использование torsocks:
torsocks (like a torify) is an improved wrapper that explictly rejects UDP, safely resolves DNS lookups and properly socksifies your TCP connections.
torsocks wget -q -O - ip.appspot.com or torify ssh user@hostThe configuration file of Privoxy is located in /etc/privoxy/config
# Generally, this file goes in /etc/privoxy/config # # Tor listens as a SOCKS4a proxy here: forward-socks4a / 127.0.0.1:9050 . confdir /etc/privoxy logdir /var/log/privoxy # actionsfile standard # Internal purpose, recommended actionsfile default.action # Main actions file actionsfile user.action # User customizations filterfile default.filter # Don't log interesting things, only startup messages, warnings and errors logfile logfile #jarfile jarfile #debug 0 # show each GET/POST/CONNECT request debug 4096 # Startup banner and warnings debug 8192 # Errors - *we highly recommended enabling this* user-manual /usr/share/doc/privoxy/user-manual listen-address 127.0.0.1:8118 toggle 1 enable-remote-toggle 0 enable-edit-actions 0 enable-remote-http-toggle 0 buffer-limit 4096If you got any problems with torsocks, you need to install and configure it by manually. In my case I had to patch torsocks to prevent arriving errors. https://code.google.com/p/torsocks/issues/detail?id=3
[Tor]
ОтветитьУдалитьname=Tor Project Repo
baseurl=http://rpm.torproject.org/centos/7/$basearch
gpgcheck=1
enabled=1
gpgkey=http://rpm.torproject.org/centos/public_gpg.key