LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Configuring Squid as web proxy (https://www.linuxquestions.org/questions/linux-software-2/configuring-squid-as-web-proxy-573415/)

jonette20 07-30-2007 11:14 AM

Configuring Squid as web proxy
 
Hi,
This is my first posting so please bear with me.
Trying to setup a web proxy inside existing firewall.
Installed Squid 2.6STABLE14, configured to test, and thought I was on my way.
Made some changes to squid.conf and tried to restart.
Now it is grabbing Squid 2.4STABLE7 from somewhere, and I have more errors than before. I'm guessing that possible versions changes may be causing my errors, but I don't know where this version came from. I did not install it previously and I'm the only one working on Squid.

I'm running REDHAT 8.0 2.4ver18-14 if that helps. Is Squid installed by default in REDHAT?

I know I will have alot more questions, but I have to address this first.

Thanks in advance for any help,
jonette20:scratch:

acid_kewpie 07-30-2007 03:55 PM

it is "grabbing" squid 2.4?? what does that mean?? if you have errors, please don't just tell us they exist, show us what they are, along with your squid.conf file.

jonette20 07-31-2007 10:45 AM

Configuring Squid as web proxy
 
Hi,
My goal is to have the clients connect to the Squid system for web request.
Squid sends the request thru the firewall.
Would like to have Squid allow access to a list of limited sites. etc.courthouse, auditor
The version of Squid that I installed is 2.6STABLE14 but 2.4STABLE7 runs instead.
I don't know if my errors are because the squid.conf is wrong or it's confused with version.
Both is my guess.

This is the output for my squid.conf file.

http_port 3128
htcp_port 0
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
cache_vary off
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_dir ufs /usr/local/squid/var/cache 100 16 256
access_log /var/log/squid/access.log squid
cache_log /usr/local/squid/var/logs/cache.log
pid_filename /usr/local/squid/src/squid-2.6.STABLE14/log
#ftp_user brewer@elyriapolice.org
hosts_file /etc/hosts
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 # https
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 purge method PURGE
acl CONNECT method CONNECT
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 to_localhost
acl epd src 10.1.1.10 10.1.1.150/24
http_access allow localhost
http_access allow epd
http_access deny all
http_reply_access allow all
icp_access allow all
cache_mgr brewer@elyriapolice.org
cache_effective_user squid
cache_effective_group squid
visible_hostname Pixfirewall@epd.internal.epd.org
httpd_accel_host virtual
httpd_accel-host_port 80
httpd_accel_with_proxy on
httpd_accel_use_host_header on
always_direct allow all
coredump_dir /usr/local/squid/var/cache
[root@SERVG10 root]#

I'm just trying to get it started for testing. No browser settings or anything have been configured.
Also, would like to set it up without cache, if possible.
Thanks in advance for any help or ideas.
I'm sinking here.
jonette20


All times are GMT -5. The time now is 06:14 AM.