nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Squid proxy transparent

This is a discussion on Squid proxy transparent within the Linux software forums, part of the Linux Getting Started category; Hi everyone, I am new here and I need some help with the setup of my new Proxy. <LAN> --- ...

Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Linux answers from nixCraft.


Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-02-2008, 06:27 PM
Junior Member
User
 
Join Date: Dec 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
xoroz is on a distinguished road
Exclamation Squid proxy transparent

Hi everyone, I am new here and I need some help with the setup of my new Proxy.

<LAN> --- <e1|PROXY|e0>----<FIREWALL/ROUTER>---<INTERNET>
Well the LAN clients should have the Gateway pointing to the Proxy Server, and in the proxy server eth1 I have a NAT rule that forwards it to e0:9090

# set this system as a router for Rest of LAN
iptables --table nat --append POSTROUTING --out-interface e0 -j MASQUERADE
iptables --append FORWARD --in-interface e1 -j ACCEPT


The strange thing that is happening:
  1. Without using the proxy as GW, just setting the browser to point to the Proxy:80 (it work
  2. Once I setup the proxy as GW, I can't go out to the WEB, I get the following errors:

ERROR
The requested URL could not be retrieved
The following error was encountered while trying to retrieve the URL: /
Invalid URL
On the logs of the access.log I see :
172.31.X.7 NONE/400 1872 GET /favicon.ico - NONE/- text/html
172.31.X.7 NONE/400 1894 GET /Vitrine/Home/Home.aspx - NONE/- text/html
172.31.X.7 NONE/400 1906 GET /shell-programming-scripting/ - NONE/- text/html

I believe somehow the hostname address are not arraiving to the proxy,
any ideas why or how to fix it???
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-02-2008, 07:51 PM
Junior Member
User
 
Join Date: Dec 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
xoroz is on a distinguished road
Default Solved

all right... I got it work.
The new SQUID 3.0 has a simple line to define it as TRANSPARENT.

#HEADER problem when using as Transparent Proxy
http_port <SQUID_IP>:<PORT> transparent

on older versions people used the http_accel mode to hack squid to perform transparent,
no longer it is needed
Reply With Quote
Reply

Tags
proxy , squid , transparent


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Squid transparent proxy in ubuntu Avinash More Ubuntu / Debian 3 02-12-2009 06:54 AM
How to Squid 2.6 transparent proxy? alex.inoa Networking, Firewalls and Security 5 10-30-2007 03:41 AM
Outlook with Squid transparent Proxy bubloob_13 Networking, Firewalls and Security 0 09-16-2007 02:37 PM
transparent squid proxy authentication chiku Linux software 1 04-27-2007 04:58 PM
Squid proxy authentication in transparent mode howto charvi Linux software 1 01-14-2007 12:55 AM


All times are GMT +5.5. The time now is 05:45 AM.


Powered by vBulletin® Version 3.8.3 - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36