You are not logged in.

#1 2012-11-02 18:50:21

angelfalls
Member
Registered: 2012-03-26
Posts: 139

[SOLVED] Unable config elinks using tor/privoxy

Hi everyone, these days i am trying to config tor and privoxy to surf anonymous network using elinks. I read tor/privoxy wiki but i can't recognise what i've done wrong. I added "forward-socks5 / localhost:9050 ." to /etc/privoxy/config file and modify .elinks/elinks.conf as follow:

.....................
set protocol.http.proxy.host = "localhost:8118"
set protocol.https.proxy.host = "localhost:8118"

restarted tor/privoxy service (am using systemd)
and the result when i open elinks with check.torproject.org is a message notices that forwarding is failure.

Forwarding failure
Privoxy was unable to socks5-forward your request http:..... through 127.0.0.1: SOCKS5 TTL expired
....blah..blah...

Any suggestion?. Thanks in advanced!

Last edited by angelfalls (2012-11-08 03:25:08)

Offline

#2 2012-11-03 05:24:41

angelfalls
Member
Registered: 2012-03-26
Posts: 139

Re: [SOLVED] Unable config elinks using tor/privoxy

anyone?

Offline

#3 2012-11-03 08:24:08

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Re: [SOLVED] Unable config elinks using tor/privoxy

Double check that:

forward-socks5 / localhost:9050 .

Realy is at the end of /etc/privoxy/config

Then stop both tor.service and privoxy.service

systemctl stop tor.service
systemctl stop privoxy.service

... kind of off topic... but also edit the tor.service file to send KillSignal=SIGINT otherwise it will waite 30sec to stop each time. i.e. it will add 30sec's to your shutdown time which sucks...
/usr/lib/systemd/system/tor.service

[Unit]
Description=Anonymizing Overlay Network

[Service]
Type=forking
GuessMainPID=yes
EnvironmentFile=/etc/conf.d/tor
ExecStart=/usr/bin/tor -f $TOR_CONF $TOR_ARGS
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=SIGINT

[Install]
WantedBy=multi-user.target

Open another terminal, or screen (if your using screen), and tail the journal so you can see tor connect

journalctl -f

Now start tor.service

systemctl start tor.service

It can take a min or two to make a full connectoin to the Tor network.

After tor is complete, start privoxy.service

systemctl start privoxy.service

Now, try to use the privoxy "HTTP" proxy on port "8118"... Yes, privoxy is an "HTTP" proxy not SOCKS proxy. If you must use a SOCKS proxy then you can connect to the Tor proxy itself on 9050, which is a SOCKS proxy.

elinks may not be the best choice for secure Tor browsing. I am not sure if elinks leaks DNS or not. You may want to watch wireshark to make sure.

I would sugjest Firefox and go to about:config and togle: network.proxy.socks_remote_dns to TRUE

Then install plugins: NoScript, CS Lite (i.e. cookie safe lite, for White Listing cookies), HTTPS-Everywhere (from the EFF), and Ad BlockPluss

Last edited by hunterthomson (2012-11-03 11:57:04)


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

#4 2012-11-08 03:24:41

angelfalls
Member
Registered: 2012-03-26
Posts: 139

Re: [SOLVED] Unable config elinks using tor/privoxy

Ok, i got that. My system time does not set to localtime while i have /etc/adjtime exist in the system. So i set my time manually use timedatectl command and set RTC time to UTC time (this is known to fix some issues). tks for reply hunterthomson.

Offline

Board footer

Powered by FluxBB