[SOLVED] Squid 3.2 Installation On Centos Issue - Plz Help
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hey guys, i have been trying numerous times to compile squid 3.2 version on centos 6 but miserably failing at last. Well the squid version 3.1 comes default with centos has no issue installing and it instantly process and install with the command 'yum install squid' but when i try doing own version by following this;
also while trying with rpms some other errors coming. Do i have to install any prerequisite for squid before compilation or trying with rpms on centos? Though i have installed gcc-c++ before doing compilation so dont think like any compiling mistakes. But not so sure, since m a linux newbie and any help would be appreciated. Regards
I don't see any errors, meaning that the compilation ended successfully.
The error codes like the ./pt/ERR_FTP_FORBIDDEN in the 1st line of the pasted output, are the errors in different languages produced during the normal operation of squid in response to various situations (e.g. above is the message in portugese when ftp is forbidden)
So continue with "make install" (as root) to install squid.
Hi thanks for replying. Btw i proceeded with it but atlast thr is no '/etc/squid/' directory or service squid status reverting 'squid: unrecognized service'
Well i have been trying quite a lot since day before yesterday but nothing seems to be working out. Also i have tried rpms but displaying sort of perl-authen not present but my centos is latest updated to 6.5 with all dependencies and m afraid why its so. Or if thr is no stable release of squid available other than the 3.1 version which is working fine but an itching issue of 'x-requested with header' itsnt passing. So i learnt after reading that upgrading to 3.2` only will solve the issue. After all dont knw what is faulty, if my centos has any flaw or so
Btw i proceeded with it but atlast thr is no '/etc/squid/' directory or service squid status reverting 'squid: unrecognized service'
Since you've compiled/installed squid from sources, everything is installed under /usr/loca/squid.
So if you want to change configuration, you need to edit /usr/local/squid/etc/squid.conf
For the same reason there is no squid service, but you have to run /usr/local/squid/abin squid. Have a look here for details. Don't forget to use the -z option the 1st time you run the daemon in order to create the cache directories.
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl me src xxx.xx.xx.x/32
acl you src x.xx.xx.xx/32
http_access allow me
http_access allow you
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
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
# Deny requests to certain unsafe ports
http_access deny !Safe_ports
# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports
# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost
# And finally deny all other access to this proxy
http_access deny all
# Squid normally listens to port 3128
# We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?
# Uncomment and adjust the following to add a disk cache directory.
cache deny all
# Leave coredumps in the first cache dir
# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
any can point out the mistake plz in what m doing?
when i checked the access log m getting the following output
[root@vps squid-188.8.131.52]# vi /usr/local/squid/var/logs/access.log
1386569006.831 0 xx.xxx.xxx.xx NONE/400 3484 GET / - HIER_NONE/- text/html
1386569008.289 0 xx.xxx.xxx.xx NONE/400 3506 GET /favicon.ico - HIER_NONE/- text/html
1386569008.883 0 xx.xxx.xxx.xx NONE/400 3506 GET /favicon.ico - HIER_NONE/- text/html
1386569027.343 0 xx.xxx.xxx.xx NONE/400 3484 GET / - HIER_NONE/- text/html
1386569802.484 xx.xxx.xxx.xx TCP_MISS/302 754 GET http://fxfeeds.mozilla.com/en-US/firefox/headlines.xml - HIER_DIRECT/184.108.40.206 text/html
1386569802.590 xx.xxx.xxx.xx TCP_MISS/302 798 GET http://fxfeeds.mozilla.com/firefox/headlines.xml - HIER_DIRECT/220.127.116.11 text/html
1386569802.804 xx.xxx.xxx.xx TCP_MISS/301 665 GET http://newsrss.bbc.co.uk/rss/newsonl...t_page/rss.xml - HIER_DIRECT/18.104.22.168 text/html
1386569803.112 xx.xxx.xxx.xx TCP_MISS/200 8899 GET http://feeds.bbci.co.uk/news/rss.xml? - HIER_DIRECT/22.214.171.124 text/xml
1386569971.840 179889 xx.xxx.xxx.xx TCP_MISS/504 4224 GET http://google.com/ - HIER_DIRECT/2607:f8b0:4009:806::1009 text/html
1386570618.252 179861 xx.xxx.xxx.xx TCP_MISS/504 4224 GET http://google.com/ - HIER_DIRECT/2607:f8b0:4009:806::1008 text/html
1386572757.613 179725 xx.xxx.xxx.xx TCP_MISS/504 4224 GET http://google.com/ - HIER_DIRECT/2607:f8b0:4009:806::1000 text/html
Hi have reinstalled the squid to version 3.3.11 with a hope to get it fixed but its too showing the same error.
When i ran /usr/local/squid/sbin/squid -f
I got these functions
/usr/local/squid/sbin/squid: option requires an argument -- 'f'
Usage: squid [-cdhvzCFNRVYX] [-s | -l facility] [-f config-file] [-[au] port] [-k signal]
-a port Specify HTTP port number (default: 3128).
-d level Write debugging to stderr also.
-f file Use given config-file instead of
-h Print help message.
Parse configuration file, then send signal to
running copy (except -k parse) and exit.
-s | -l facility
Enable logging to syslog.
-u port Specify ICP port number (default: 3130), disable with 0.
-v Print version.
-z Create missing swap directories and then exit.
-C Do not catch fatal signals.
-D OBSOLETE. Scheduled for removal.
-F Don't serve any requests until store is rebuilt.
-N No daemon mode.
-R Do not set REUSEADDR on port.
-S Double-check swap during rebuild.
-X Force full debugging.
-Y Only return UDP_HIT or UDP_MISS_NOFETCH during fast reload.
When i ran /usr/local/squid/etc/squid.conf -k parse
well i guess there is nothing blocking port 3128 coz with the default squid repository in centos - squid ver 3.1 was working fine for me. But when i only compile and install versions over 3.2 m getting these issues. plz advise
Hi some sites started loading on my dedi with the ip 5.xx.xx.x but my home connection still showing proxy server is refusing connections. Well any chance of permission issues for files/caches u think.
Please note that a "Connection refused" is different from "Access denied". The former means you cannot connect to the squid server, while the latter means that you can connect but you're denied access due to the server configuration. So which one is the case here?
If you can connect from 5.xx.xx.x but not from 49.xxx.xx.xxx, then it could be a routing or other network problem.
i can access some sites from 5.xx but some sites like google, yahoo etc keeps on loading blank
It doesn't make sense as per your configuration you allow access to 5.xx in a first place, before any other ACL. So you should see any site you visit.
Anyway you should check the logs for more details.
Well from 49.xx its Proxy server refusing connection not access denied
As already stated it means that you cannot connect to the server because of some routing or other networking problem.
So check the connectivity between the 2 hosts.
Hi i checked the logs but i cant see anything unusual. Btw, i setup this thing focusing on one particular site only and that one is opening with blazing speed so doesnt matter if others behave in any means well majority ones are ok. only the search engines and some other ones are failing. I want to thank you especially for your kind support and ofc you the Big Guru i tried msgn u but no pm option thr. would like to buy u a beer if its ok. but dnt knw how to ask ur Paypal id.