Solved

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

Posted on 2007-12-03
9
535 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
LINUX, CPANEL & WHM 5 23
Block sender e-mail address in Postfix 4 41
ESXi VLAN Lab 2 34
Changing passwords in Linux Systems 3 19
Let’s list some of the technologies that enable smooth teleworking. 
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

759 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

18 Experts available now in Live!

Get 1:1 Help Now