LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-09-2008, 09:30 PM   #1
ambotlang
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Rep: Reputation: 0
Unhappy making a reverse proxy


Dear Friends, I am a newbie to reverse proxy. i have a squid installed and i need your help for my "squid.conf". I want to make a REVERSE proxy. The system set-up is, APACHE web server and SQUID proxy server on ONE system or (installed on the same computer). Please help me guys, i want to make my squid.conf run.

thanks in advance,
 
Old 06-10-2008, 08:17 AM   #2
sunethj
Member
 
Registered: Nov 2006
Posts: 97

Rep: Reputation: 16
hi! try start your adventure using this guide. This guide has a dedicated section on how to run both reverse proxy and web server in same pc.

If you face any issues feel free to post them here.
 
Old 06-10-2008, 10:04 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
Thumbs down Duplicate posts

Duplicate posts:
1. http://www.linuxquestions.org/questi...-proxy-648175/
2. http://www.linuxquestions.org/questi...-proxy-648163/

#1 is in a better forum, but #2 already has an answer.

Perhaps close #1 & move #2?
 
Old 06-10-2008, 02:22 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Moved: This thread is more suitable in <Server> and has been moved accordingly to help your thread/question get the exposure it deserves. I second the notion of closing the dupe that was placed in server later on.
 
Old 06-10-2008, 09:34 PM   #5
ambotlang
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Original Poster
Rep: Reputation: 0
i have googled already about this reverse proxy. it took me days to run my basic squid.conf ..uhm, i need a reference conf to make sure that im making a secured reverse proxy.
i will post here my squid.conf. can you please check it guys?

thanks, for the help.
 
Old 06-12-2008, 08:28 PM   #6
ambotlang
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Original Poster
Rep: Reputation: 0
hello guys,
this is the squid i have configured.
i havent tested it already to be a real reverse squid with webserver on it.
can you pls check my config? please post your comments and suggestions..
-----------------------------------------------

http_port 3128
http_port 81

hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY

acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_dir ufs /var/spool/squid 100 16 256
access_log /var/log/squid/access.log squid

hosts_file /etc/hosts
url_rewrite_host_header off

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

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 563 # https, snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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 Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync

acl purge method PURGE
acl CONNECT method CONNECT

#do i need to have visible list?
acl VISIBLES dstdom_regex -i "/etc/squid/visibles.list"

acl downloadmanager maxconn 20

http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny downloadmanager
http_access allow CONNECT SSL_ports
#do i need to configure SSLVisibles? why?
#http_access allow SSLVISIBLES
http_access allow VISIBLES
http_access deny all
http_reply_access allow all
icp_access deny all
icp_access allow all
miss_access allow all
cache_effective_group squid
always_direct allow all

httpd_accel_host localhost
httpd_accel_port 81
httpd_accel_single_host on
httpd_accel_with_proxy off
httpd_accel_uses_host_header off

coredump_dir /var/spool/squid
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
visible_hostname somenamehere

Last edited by ambotlang; 06-12-2008 at 08:30 PM. Reason: lacking parameters
 
Old 06-13-2008, 08:41 PM   #7
ambotlang
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Original Poster
Rep: Reputation: 0
guys can you help me with this?
i want to implement this on squid 2.5
thanks,
 
Old 06-15-2008, 11:27 PM   #8
ambotlang
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Original Poster
Rep: Reputation: 0
i just want to refresh this thread.
pls help me
 
Old 06-23-2008, 04:27 AM   #9
ambotlang
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Please anyone help me

does anyone knows here?
using squid as a reverse proxy server
 
Old 06-23-2008, 12:33 PM   #10
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
Would some kind soul, more tactful, patient, & knowledgable than I, please take pity on this sincere newcomer & explain about senseless bumping & putting .conf files in "Code:" blocks, as well as ask for the clarifications necessary to start answering the OQ.
 
  


Reply

Tags
apple, at, day


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
Reverse Proxy??? jantman Linux - Server 2 12-07-2007 07:01 PM
Squid as Reverse Proxy and LAN proxy? zivota Linux - Security 2 02-26-2007 06:00 PM
reverse proxy? bwall Linux - Newbie 1 11-22-2005 08:42 PM
still trying to reverse proxy wildbob Linux - Networking 6 10-28-2003 10:12 AM
apache reverse proxy wildbob Linux - Networking 8 10-15-2003 01:16 PM


All times are GMT -5. The time now is 12:38 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration