LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 06-06-2008, 02:29 PM   #1
rraj
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
Squid 2.6 Reverse Proxy from Squid(3128) to OrginServer(80) Not working


I am trying to setup a server mesasvr03 with SQUID 2.6STABLE20 to be a RP for my web server: mesasvr01.
I would like to get the configs off Port 80 as much as possible so that I can confirm this translation does indeed work.
I am currently using these settings in squid.conf...
Please see below...
Can some one show me how to make the changes such that I can have a Port Translation between say: mesasvr03:3128 ==RP==> mesasvr01:88

I tried the changes:
http_port mesasvr03.domain.com:3128 accel defaultsite=mesasvr03.domain.com
cache_peer 10.143.108.25 parent 88 0 no-query originserver name=myAccel login=PASS

However, squid kept forwarding it back to Port 80.

Currently, this config works only if I use for Port 80.

With Regards, Raj

------- Begin -------
-bash-3.00$ cat squid.conf
cache_effective_user squid
cache_effective_group squidadm

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
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
acl CONNECT method CONNECT
http_access allow manager
#http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#http_access deny all
icp_port 0
icp_access allow all


#Syntax: http_port <SquidHostName>:80 accel defaultsite=<FullyQualifiedSquidHostName>
http_port mesasvr03.domain.com:80 accel defaultsite=mesasvr03.domain.com

#Syntax: cache_peer <WebServerApacheHostName or IP> parent 80 0 no-query originserver name=myAccel login=PASS
#E.g.: cache_peer mesasvr01.domain.com parent 80 0 no-query originserver name=myAccel login=PASS
cache_peer 10.143.108.25 parent 80 0 no-query originserver name=myAccel login=PASS
http_access allow all
cache_peer_access myAccel allow all

hierarchy_stoplist cgi-bin ?
acl METHODLIST method POST
no_cache deny METHODLIST

cache_mem 64 MB
maximum_object_size 2048 KB

access_log /usr/local/squid/var/logs/access.log squid

acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
url_rewrite_host_header on
#always_direct allow all
coredump_dir /usr/local/squid/var/cache


-bash-3.00$

---------End --------
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 2.6 -- working on port 3128, but not 'transparent' gr8scot Linux - Software 8 06-03-2008 03:44 AM
Squid 2.5 Reverse Proxy with SSL jonfa Linux - Networking 1 04-29-2008 04:17 PM
SQUID-Reverse Proxy haariseshu Linux - Newbie 3 02-05-2008 05:59 AM
Squid reverse proxy with SSL jonfa Linux - Networking 1 02-05-2007 07:07 PM
Reverse Proxy in squid winxandlinx Linux - Networking 3 12-04-2006 05:30 AM


All times are GMT -5. The time now is 01:12 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration