privoxy does not work

Asked by BlauesEi

Hi,
the privoxy is under ubuntu 12.04 not working.
(in ubuntu 11.04 it works fine)
the web-filter "B-Filter" works )

Below I have already some informations
I would be very pleased if someone could solve this

++++++++++++++++++++++++++++++++++++

privoxy:
  Installed: 3.0.19-1
  Candidate: 3.0.19-1
  Version table:
 *** 3.0.19-1 0

-----------------------------------------------------
sudo lsof -nPi | grep 8118

privoxy 14272 privoxy 5u IPv6 82753 0t0 TCP [::1]:8118 (LISTEN)

--------------------------------------------

sudo nmap -sS 127.0.0.1 -p8118

Starting Nmap 5.21 ( http://nmap.org ) at 2012-09-09 11:00 CEST
Nmap scan report for localhost.localdomain (127.0.0.1)
Host is up (0.000078s latency).
PORT STATE SERVICE
8118/tcp closed privoxy

Nmap done: 1 IP address (1 host up) scanned in 0.12 seconds

----------------------------------------

Starting Nmap 5.21 ( http://nmap.org ) at 2012-09-09 11:05 CEST
Nmap scan report for localhost.localdomain (127.0.0.1)
Host is up (0.000067s latency).
PORT STATE SERVICE
8118/tcp closed privoxy

Nmap done: 1 IP address (1 host up) scanned in 0.14 seconds
--------------------------------

wget -e "http_proxy = http://127.0.0.1:8118" http://speedtest.qsc.de/1MB.qsc

--2012-09-09 11:11:02-- http://speedtest.qsc.de/1MB.qsc
Connecting to 127.0.0.1:8118... failed: Connection refused.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu privoxy Edit question
Assignee:
No assignee Edit question
Solved by:
BlauesEi
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

do you have http_proxy and ftp_proxy defined in ~/.bashrc ?

Revision history for this message
BlauesEi (dieente) said :
#2

I can not find any entry "proxy" in the ~/.bashrc file.

Could you please tell me, what I have to type into this file in order to define http and ftp proxy?

Thank you very much
P.S. the web filter "b-filter" works in firefox with 127.0.0.1:8080 fine.
But privoxy down not work with 127.0.0.1:8118

Revision history for this message
Thomas Krüger (thkrueger) said :
#3

What does
sudo netstat -nlp4; sudo netstat -nlp6
return?

Revision history for this message
BlauesEi (dieente) said :
#4

sudo netstat -nlp4
returns:

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 1946/bfilter-gui
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 1153/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 654/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 737/cupsd
tcp 0 0 127.0.0.1:2628 0.0.0.0:* LISTEN 998/0
tcp 0 0 127.0.0.1:4101 0.0.0.0:* LISTEN 884/brltty
udp 0 0 127.0.0.1:53 0.0.0.0:* 1153/dnsmasq
udp 0 0 0.0.0.0:68 0.0.0.0:* 838/dhclient
udp 0 0 0.0.0.0:5353 0.0.0.0:* 744/avahi-daemon: r
udp 0 0 0.0.0.0:44854 0.0.0.0:* 744/avahi-daemon: r
udp 0 0 0.0.0.0:53644 0.0.0.0:* 1069/squid3
blauesei@andreas-pc:~$

returns

---------------------------------------------------------------------------------
 sudo netstat -nlp6
returns:

Active Internet connections (only servers)
          Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp6 0 0 ::1:8118 :::* LISTEN 1039/privoxy
tcp6 0 0 :::22 :::* LISTEN 654/sshd
tcp6 0 0 ::1:631 :::* LISTEN 737/cupsd
tcp6 0 0 :::3128 :::* LISTEN 1069/squid3
udp6 0 0 :::40631 :::* 744/avahi-daemon: r
udp6 0 0 :::5353 :::* 744/avahi-daemon: r
udp6 0 0 :::35265 :::* 1069/squid3

Revision history for this message
Thomas Krüger (thkrueger) said :
#5

Privoxy listens to IPv6 only. You have to change the settings to listen to IPv4 as well.
See chapter 7.4.1 of http://www.privoxy.org/user-manual/config.html for details.

Revision history for this message
BlauesEi (dieente) said :
#6

Hi,
I can not find there the answer.
I have in my config file the line:
listen-adress 127.0.0.1:8118

And so far as i have understood this, is this for IPv4 and IPv4

What do you think, I have to edit or change or add in my config file?
 is default.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

try:

gedit ~/.bashrc; source ~/.bashrc

add the 2 lines:

export http_proxy=http_proxy 127.0.0.1:8118
export ftp_proxy=http_proxy 127.0.0.1:8118

Close gedit and run:

sudo apt-get update

HTH

Revision history for this message
BlauesEi (dieente) said :
#8

Hi actionparsnip!
it does not work.

bash: export: `127.0.0.1:8118': not a valid identifier
bash: export: `127.0.0.1:8118': not a valid identifier

my privoxy runs via //etc/init.d script and not local.
However, the commans are not valid in the shell.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

Change it to:

export http_proxy="http_proxy 127.0.0.1:8118"
export ftp_proxy="http_proxy 127.0.0.1:8118"

With the quotes, you can change the lines you already have

Revision history for this message
BlauesEi (dieente) said :
#10

I have edited (commenting out) in the config file in
/etc/privoxy/

   the line with the entry

listen-adress 127.0.0.1:8118
into
# listen-adress 127.0.0.1:8118

now it works fine.
thanks for your hints.

Revision history for this message
Thomas Krüger (thkrueger) said :
#11

You noticed there is a typo in "listen-adress", it should be "listen-address"?

Revision history for this message
BlauesEi (dieente) said :
#12

Thank you, Thomas!

so, i have changed the line

listen-address 127.0.0.1:8118
into
# listen-address 127.0.0.1:8118

I hope, this is correct so, now.