Recherche de site Web

Configurer la navigation anonyme sur Internet sous Fedora Linux avec tor et privoxy


L’intention de cette configuration est de fournir des étapes simples à suivre sur la façon de configurer la navigation Internet anonyme sur Fedora Linux en utilisant privoxy et tor. Les deux services tor et privoxy sont des services autonomes, où tor fournit l’anonymat à l’aide de techniques de routage en oignon et privoxy est un serveur proxy avec filtrage de contenu et blocage des publicités.

Commençons par l’installation des deux services :


yum install privoxy tor

Après l’installation, démarrez tor :


service tor start
Redirecting to /bin/systemctl start  tor.service

Pour un démarrage persistant de tor après l’exécution du redémarrage :


systemctl enable tor
ln -s '/usr/lib/systemd/system/tor.service' '/etc/systemd/system/multi-user.target.wants/tor.service'

Assurez-vous que tor a démarré correctement :


service tor status
Redirecting to /bin/systemctl status  tor.service
tor.service - Anonymizing overlay network for TCP
   Loaded: loaded (/usr/lib/systemd/system/tor.service; disabled)
   Active: active (running) since Fri 2015-04-10 06:04:03 AEST; 21s ago
 Main PID: 13717 (tor)
   CGroup: /system.slice/tor.service
           └─13717 /usr/bin/tor --runasdaemon 0 --defaults-torrc /usr/share/tor/defaults-torrc -f /etc/tor/torrc

Apr 10 06:04:18 localhost.localdomain Tor[13717]: Bootstrapped 55%: Loading relay descriptors
Apr 10 06:04:19 localhost.localdomain Tor[13717]: Bootstrapped 60%: Loading relay descriptors
Apr 10 06:04:19 localhost.localdomain Tor[13717]: Bootstrapped 65%: Loading relay descriptors
Apr 10 06:04:19 localhost.localdomain Tor[13717]: Bootstrapped 70%: Loading relay descriptors
Apr 10 06:04:19 localhost.localdomain Tor[13717]: Bootstrapped 75%: Loading relay descriptors
Apr 10 06:04:20 localhost.localdomain Tor[13717]: We now have enough directory information to build circuits.
Apr 10 06:04:20 localhost.localdomain Tor[13717]: Bootstrapped 80%: Connecting to the Tor network
Apr 10 06:04:20 localhost.localdomain Tor[13717]: Bootstrapped 90%: Establishing a Tor circuit
Apr 10 06:04:22 localhost.localdomain Tor[13717]: Tor has successfully opened a circuit. Looks like client functionality is working.
Apr 10 06:04:22 localhost.localdomain Tor[13717]: Bootstrapped 100%: Done

Ensuite, éditez /etc/privoxy/config et décommentez la ligne :


forward-socks5   /               127.0.0.1:9050 .

Démarrez le serveur proxy privoxy :


service privoxy start
Redirecting to /bin/systemctl start  privoxy.service

Activez le démarrage de privoxy après le redémarrage :


systemctl enable privoxy
ln -s '/usr/lib/systemd/system/privoxy.service' '/etc/systemd/system/multi-user.target.wants/privoxy.service'

À ce stade, privoxy devrait être à l’écoute sur le port 8118 :


netstat -ant | grep 8118
tcp        0      0 127.0.0.1:8118          0.0.0.0:*               LISTEN

Ensuite, utilisez wget pour confirmer l’ensemble de la pile de confidentialité tor et privoxy en extrayant notre adresse IP externe :


export http_proxy="http://localhost:8118"
wget -q -O out http://www.ipchicken.com/; grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' out
85.214.11.209

Si le résultat ci-dessus affiche une adresse IP qui ne vous a pas été attribuée par votre fournisseur d’accès Internet, vous avez correctement configuré tor et privoxy. Il ne reste plus qu’à configurer votre navigateur pour utiliser le proxy :


HTTP Proxy: localhost
Port: 8118

pour commencer à naviguer anonymement.

Articles connexes: