Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

privoxy refusing connections?

216 views
Skip to first unread message

Kailash Kalyani

unread,
Jun 5, 2015, 4:50:05 AM6/5/15
to
Hi All,

Came across privoxy and wanted to test it out so I installed it

sudo apt-get install privoxy

And configured my browser to use the proxy at
127.0.0.1 port 8118

I keep getting the error: "The proxy server is refusing connections"

I checked the privoxy config file and the log file. Log file's empty and
the config file has a line:
listen-address localhost:8118

Would anyone have pointers on how to solve this?

Regards,
Kailash


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/55716238...@googlemail.com

Liam O'Toole

unread,
Jun 5, 2015, 2:40:03 PM6/5/15
to
On 2015-06-05, Kailash Kalyani <listsk...@gmail.com> wrote:
> Hi All,
>
> Came across privoxy and wanted to test it out so I installed it
>
> sudo apt-get install privoxy
>
> And configured my browser to use the proxy at
> 127.0.0.1 port 8118
>
> I keep getting the error: "The proxy server is refusing connections"
>
> I checked the privoxy config file and the log file. Log file's empty and
> the config file has a line:
> listen-address localhost:8118
>
> Would anyone have pointers on how to solve this?
>
> Regards,
> Kailash
>
>

Are you sure that privoxy is running?

--

Liam



--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/slrnmn3r39.u54...@dipsy.tubbynet

Kailash Kalyani

unread,
Jun 5, 2015, 3:50:04 PM6/5/15
to


On Friday 05 June 2015 08:37 PM, Liam O'Toole wrote:
> On 2015-06-05, Kailash Kalyani <listsk...@gmail.com> wrote:
>> Hi All,
>>
>> Came across privoxy and wanted to test it out so I installed it
>>
>> sudo apt-get install privoxy
>>
>> And configured my browser to use the proxy at
>> 127.0.0.1 port 8118
>>
>> I keep getting the error: "The proxy server is refusing connections"
>>
>> I checked the privoxy config file and the log file. Log file's empty and
>> the config file has a line:
>> listen-address localhost:8118
>>
>> Would anyone have pointers on how to solve this?
>>
>> Regards,
>> Kailash
>>
>>
> Are you sure that privoxy is running?
>
Here's the output from ps.
$ps -ax | grep privoxy
1601 ? Ss 0:00 /usr/sbin/privoxy --pidfile
/var/run/privoxy.pid --user privoxy /etc/privoxy/config

So, looks like it is and it's using the correct config file.

Thanks,
Kailash


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/5571FBCA...@googlemail.com

Liam O'Toole

unread,
Jun 5, 2015, 4:10:04 PM6/5/15
to
On 2015-06-05, Kailash Kalyani <listsk...@gmail.com> wrote:
>
>
> On Friday 05 June 2015 08:37 PM, Liam O'Toole wrote:
>> On 2015-06-05, Kailash Kalyani <listsk...@gmail.com> wrote:
>>> Hi All,
>>>
>>> Came across privoxy and wanted to test it out so I installed it
>>>
>>> sudo apt-get install privoxy
>>>
>>> And configured my browser to use the proxy at
>>> 127.0.0.1 port 8118
>>>
>>> I keep getting the error: "The proxy server is refusing connections"
>>>
>>> I checked the privoxy config file and the log file. Log file's empty and
>>> the config file has a line:
>>> listen-address localhost:8118
>>>
>>> Would anyone have pointers on how to solve this?
>>>
>>> Regards,
>>> Kailash
>>>
>>>
>> Are you sure that privoxy is running?
>>
> Here's the output from ps.
> $ps -ax | grep privoxy
> 1601 ? Ss 0:00 /usr/sbin/privoxy --pidfile
> /var/run/privoxy.pid --user privoxy /etc/privoxy/config
>
> So, looks like it is and it's using the correct config file.
>
> Thanks,
> Kailash
>
>

Yes, it does. Does "localhost" resolve to 127.0.0.1 correctly? I would
be surprised if it did not, but it's worth checking.

--

Liam



--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/slrnmn3vvn.24s...@dipsy.tubbynet

Kailash Kalyani

unread,
Jun 6, 2015, 2:50:03 AM6/6/15
to
$ ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.037 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.059 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.050 ms
64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.055 ms

I wonder if it's something in the config file, but I couldn't figure it out.



--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/5572962B...@googlemail.com

Kailash Kalyani

unread,
Jun 6, 2015, 4:40:04 AM6/6/15
to
Turns out that Liam was correct about the localhost issue. privoxy was
listening on the ipv6 localhost and not the ipv4.

A search on privoxy.org's mailing list resolved this:
http://sourceforge.net/p/ijbswa/mailman/message/30642470/

$sudo netstat -tunlp

tcp6 0 0 ::1:8118 :::* LISTEN 1601/privoxy

Went into /etc/privoxy/config and changed
listen-address localhost:8118
to
listen-address 127.0.0.1:8118

And now the issue's resolved.

Kailash


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/5572B0E2...@googlemail.com

Liam O'Toole

unread,
Jun 6, 2015, 6:20:05 AM6/6/15
to
That's good news. It should also work if you approach it from the other
direction, i.e., tell the browser to connect to localhost instead of
127.0.0.1.

--

Liam



--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/slrnmn5i5q.9nu...@dipsy.tubbynet

Ric Moore

unread,
Jun 6, 2015, 1:30:04 PM6/6/15
to
I wonder what he has in /etc/hosts?? Ric


--
My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
http://linuxcounter.net/user/44256.html


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/55732BEA...@gmail.com

Liam O'Toole

unread,
Jun 6, 2015, 5:40:03 PM6/6/15
to
On 2015-06-06, Ric Moore <waywa...@gmail.com> wrote:
> On 06/06/2015 06:17 AM, Liam O'Toole wrote:
>> On 2015-06-06, Kailash Kalyani <listsk...@gmail.com> wrote:

- SNIP -

>>> A search on privoxy.org's mailing list resolved this:
>>> http://sourceforge.net/p/ijbswa/mailman/message/30642470/
>>>
>>> $sudo netstat -tunlp
>>>
>>> tcp6 0 0 ::1:8118 :::* LISTEN 1601/privoxy
>>>
>>> Went into /etc/privoxy/config and changed
>>> listen-address localhost:8118
>>> to
>>> listen-address 127.0.0.1:8118
>>>
>>> And now the issue's resolved.
>>>
>>> Kailash
>>
>> That's good news. It should also work if you approach it from the other
>> direction, i.e., tell the browser to connect to localhost instead of
>> 127.0.0.1.
>
> I wonder what he has in /etc/hosts?? Ric

Nothing unusual, I'd say. It's just that "localhost" is resolved by IPv6,
whereas 127.0.0.1 is specific to IPV4.

--

Liam



--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/slrnmn6ptc.bmf...@dipsy.tubbynet
0 new messages