Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having a problem with a very simple squid configuration.

My network is configured as shown:

=== LAN === (eth1 - .100)[proxy host](.18.240.66 - eth0) === 10.x.x.x LAN

I want to proxy requests from the LAN to the LAN. I've set up the proxy settings on to use the proxy at The proxy request arrives at the proxy just fine, but it doesn't seem to go out on eth0. I've verified both of these with Wireshark.

In particular, I'm trying to send a HTTP request from to via the proxy. This is what ends up in the squid access.log: TCP_MISS/000 0 GET - DIRECT/ -

The packet sent from .200 to .100:8080 has this content (via Wireshark):

Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/x-ms-application, application/x-ms-xbap, application/, application/xaml+xml, application/, application/, application/msword, */*
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1; MS-RTC LM 8)
Accept-Encoding: gzip, deflate
Proxy-Connection: Keep-Alive

I have the following squid configuration:

# Recommended minimum configuration:
acl manager proto cache_object
acl localhost src ::1
acl to_localhost dst ::1

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src # RFC1918 possible internal network
acl localnet src  # RFC1918 possible internal network
acl localnet src # RFC1918 possible internal network
acl localnet src fc00::/7       # RFC 4193 local private network range
acl localnet src fe80::/10      # RFC 4291 link-local (directly plugged) machines
acl RDnet dst

acl SSL_ports port 443
acl Safe_ports port 80      # http
acl Safe_ports port 21      # ftp
acl Safe_ports port 443     # https
acl Safe_ports port 70      # gopher
acl Safe_ports port 210     # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280     # http-mgmt
acl Safe_ports port 488     # gss-http
acl Safe_ports port 591     # filemaker
acl Safe_ports port 777     # multiling http

# Recommended minimum Access Permission configuration:
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager

# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost


# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost
http_access allow RDnet

# And finally deny all other access to this proxy
http_access deny all

# Squid normally listens to port 3128
http_port 8080

# We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?

# Uncomment and adjust the following to add a disk cache directory.
#cache_dir ufs /var/spool/squid 100 16 256

# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid

# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp:       1440    20% 10080
refresh_pattern ^gopher:    1440    0%  1440
refresh_pattern -i (/cgi-bin/|\?) 0 0%  0
refresh_pattern .       0   20% 4320

netstat -rn gives the following:

[root@localhost squid]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface   U         0 0          0 eth1   U         0 0          0 virbr0   U         0 0          0 eth0     U         0 0          0 eth0     U         0 0          0 eth1         UG        0 0          0 eth0

I read that as routing any packet (including those to to via eth0. I know it's reachable (see this output of ping -R)

[root@localhost squid]# ping -c 1 -R
PING ( 56(124) bytes of data.
64 bytes from icmp_seq=1 ttl=50 time=377 ms

--- ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 377ms
rtt min/avg/max/mdev = 377.644/377.644/377.644/0.000 ms

Any thoughts? One thought I'm having is that Squid receives the request just fine and tries to send it but.... Where might it be going? This host only has the 2 interfaces, and packets to 10.x.x.x should be going out eth0. But no packet shows up in Wireshark. So I'm a little lost.

UPDATE: Added the following to the configuration file:

cache_peer parent 8080 0 default

That allowed my proxy to forward requests to the proxy that actually can reach the host.

share|improve this question
typo in text - it says "I'm trying to send a HTTP request from to via the proxy" but that destination address should be, not 110.x.x.x. (UPDATE: updated in question) – Cubs Fan Ron Mar 18 '13 at 17:11
I have a thought - perhaps I have to add the interface that the 10.x.x.x packets need to use to the squid configuration. I tried running a local Firefox client on the "proxy host" machine with a configuration that told it to use the proxy and it failed similarly. Pointers to that kind of config info??? – Cubs Fan Ron Mar 18 '13 at 17:33
@Card gave me the hint below - I added the following line to the config file to allow my proxy to forward to another proxy that can actually reach the host I'm trying to reach!cache_peer parent 8080 0 default – Cubs Fan Ron Mar 19 '13 at 1:20
up vote 0 down vote accepted

MISS/000 means aborted, not sure it's from client or no answer back after passing the request to

What do you get with a "telnet 8080" FROM the squid host ? GET / HTTP/1.1 Host:

share|improve this answer
Well that didn't work, but if I tried to load a web page in Firefox from that same host it did work. Know the difference? Firefox used a proxy! – Cubs Fan Ron Mar 19 '13 at 1:17
I've made a config change and listed above. You didn't give me the answer, but you definitely led me to it. That's good enough for me - you score a +1 and a checkmark! – Cubs Fan Ron Mar 19 '13 at 1:17
(I don't have enough glory to give you a +1 yet, but when I do I'll come back and do it) – Cubs Fan Ron Mar 19 '13 at 1:23
Thanks ^^, I noticed this morning that the dst server is not into proxy interface subnet, this point lead to many other possible issue as proxy forward, routing or FW blocking.. – Card Mar 19 '13 at 7:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.