Solved

Unable to Surf by IP when using Squid as a transparent Proxy

Posted on 2007-12-03
9
536 Views
Last Modified: 2013-12-23
I have a couple of different offices that use Linux boxes as combined routers and transparent proxies.  All of them are working fine, apart from one which is having a weird issue when attempting to view a web page via IP.  Using this website as an example, if I surf to;

http://www.experts-exchange.com

It works fine.

However, if I surf to;

http://64.156.132.140

It will immediately drop me to a standard 'page cannot be displayed' message.

If I bypass the transparent proxy, say by trying to load the page on the router itself, it works fine, so I don't believe it is an ISP issue.

My other locations using seemingly identically configured proxies can access pages by IP fine.
0
Comment
Question by:ropetin
9 Comments
 
LVL 21

Expert Comment

by:robocat
ID: 20397732


Can you see your attempt in the squid logs (access.log, store.log) ?
0
 
LVL 2

Author Comment

by:ropetin
ID: 20398148
No, the page view attempts do not show up in either log file.
0
 
LVL 43

Expert Comment

by:ravenpl
ID: 20398218
You see, if squid is configured in transparent mode it have to know where You really want to go. It uses the name You enter into browser as destination.
If You enter ip, and therefore there;s no Host: http/1.1 request header, squid does not know where to go? It have to drop it.
0
 
LVL 2

Author Comment

by:ropetin
ID: 20398344
So the question I have is, why do 6 seemingly identically configured squid proxies, seem to not  have a problem?
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 21

Expert Comment

by:robocat
ID: 20398379

How do you redirect the traffic to the transparent proxy ? Switch ? Router ?
0
 
LVL 2

Author Comment

by:ropetin
ID: 20398413
The box that is running the squid proxy is the router.  I have the users connected via a generic workgroup switch.
0
 
LVL 21

Expert Comment

by:robocat
ID: 20398507

Have you compared the router (redirection) settings with the other 6 proxies ?

Perhaps you should look at what kind of logging you can enable on router level ?

0
 
LVL 2

Author Comment

by:ropetin
ID: 20403260
By router settings you mean the iptables configuration?  I don't 100% understand iptables, but I don't see anything that would make it drop unresolved IPs.  Any suggestion how I can verify?
0
 
LVL 5

Accepted Solution

by:
Jozk0 earned 500 total points
ID: 20416437
This might be a browser specific issue. Look here:

http://www.visolve.com/squid/whitepapers/trans_caching.php

Go down to the section "Disadvantages of Transparent Caching"
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DNS @ Naked Domain Record 5 69
su - oracle could not open session 6 53
How to find Linux Server's last patch date 9 37
Cisco 3560 switches not seeing VTP V3 12 15
Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now