LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-22-2010, 12:03 AM   #1
dhiman.manish23
LQ Newbie
 
Registered: Dec 2010
Posts: 24

Rep: Reputation: 0
How to make Squid 2.6 stable as transparent proxy server


Hello

I want to make a transparent squid proxy server in centos. The squid proxy version is 2.6 stable. I made a normal squid server but want to make it transparent so that users do not need to enter the proxy settings in web browser. Even i searched about this on google but not getting it properly.

I have two lan cards on centos system. ETH1 used for LAN and ETH2 used for WAN. And in this squid.conf i written "http_port 172.16.31.1:3128 transparent" and i also added a rule in iptables which is "iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128" but still i have to enter proxy settings at client's web browser to use internet.

I am not getting it that how it will work as a transparent proxy.

Thanks and Regards
Manish

Last edited by dhiman.manish23; 12-22-2010 at 12:54 AM.
 
Old 12-22-2010, 04:15 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Here: http://www.cyberciti.biz/tips/linux-...uid-howto.html
 
Old 12-22-2010, 04:36 AM   #3
dhiman.manish23
LQ Newbie
 
Registered: Dec 2010
Posts: 24

Original Poster
Rep: Reputation: 0
Thanks but i have squid 2.6 and this link is for older version of squid. If i do as it was mentioned in that link then while starting squid server it shows error on those four lines.

Need help.

Thanks and Regards
Manish
 
Old 12-22-2010, 04:51 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
You should be able to take reference from the above link. You can not have a customised solution for you from others. Look at the iptables script for transparent squid there. It should help you.
 
Old 12-22-2010, 05:38 AM   #5
beowulfnode
Member
 
Registered: Jun 2007
Distribution: debian, ubuntu, centos, esxi
Posts: 39

Rep: Reputation: 4
Quote:
Originally Posted by dhiman.manish23 View Post
Thanks but i have squid 2.6 and this link is for older version of squid. If i do as it was mentioned in that link then while starting squid server it shows error on those four lines.
perhaps something from http://wiki.squid-cache.org/ConfigExamples such as this
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid as Transparent Proxy Server sudhirmhrj Linux - Newbie 8 07-01-2010 09:13 AM
squid proxy server and transparent issue kwaslee Linux - Server 1 04-13-2010 04:00 AM
Transparent proxy with WCCP & Squid 2.7 Stable gbarny Linux - Server 4 11-05-2009 11:07 PM
Ubuntu, Squid Transparent Proxy server is not working pocs Linux - Networking 6 10-31-2007 10:42 AM
transparent squid proxy server alvi2 Linux - Networking 4 02-24-2005 01:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration