Search squid archive

Re: Re: Squid Reverse Proxy cannot open ports

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 17 July 2013 at 10:45:28, jc.yin wrote:

> Sorry about that, here is the output with sudo
> 
> 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:80            0.0.0.0:*               LISTEN
> 15002/apache2
> tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN
> 1404/dnsmasq
> tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
> 855/sshd
> tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN
> 972/cupsd
> tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN
> 8385/mysqld
> tcp6       0      0 :::22                   :::*                    LISTEN
> 855/sshd
> tcp6       0      0 ::1:631                 :::*                    LISTEN
> 972/cupsd

Okay, so it is Apache listening on 127.0.0.1, and Squid is not listening at 
all.

> Here is my line in the squid conf file
> 
> http_port 85.0.72.123:80 accel defaultsite=85.0.72.123
> cache_peer 127.0.0.1 parent 80 0 no-query originserver
> 
> acl our_sites dstdomain 85.0.72.123
> http_access allow our_sites
> cache_peer_access myAccel allow our_sites
> cache_peer_access myAccel deny all

I assume 85.0.72.123 *does* exist on one of this machine's interfaces?

Try:

# /etc/init.d/squid3 restart

# grep 85.0.72.123 /var/log/squid3/cache.log

If there's no output from that (or if there is but you're not sure what it 
means), check the lines in that log file with the timestamp corresponding to 
the restart you just did, and see if anything stands out to show you why Squid 
is not binding to the interface.


Hope this helps,


Antony.

-- 
Atheism is a non-prophet-making organisation.

                                                     Please reply to the list;
                                                           please don't CC me.




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux