Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If you want to start and stop Squid using a script in /etc/init.d you can just follow the steps as indicated in the link I pointed you to. No experience with scripting necessary. You just create the file, copy the text from that side and put it inside the file you created. Edit where necessary, for example they've changed the cache path so you might change that back to default. After that execute the commands as indicated on that site and you're set to go. If you indicate what part of the site you don't understand I'd be able to clarify.
I don't know if there is any reason for downloading and compiling squid.
Else, you can use the squid included in the distribution, which is already compiled and which already includes the scripts for starting and stopping squid.
keeping in my the script which kindly just guide me the path where what should i do on it .
Be defauly when I all all settings and try to start it ,it does not show me that squid is not starting.Yes without any error it silently goes to prompt.
I don't know if there is any reason for downloading and compiling squid.
Else, you can use the squid included in the distribution, which is already compiled and which already includes the scripts for starting and stopping squid.
Regards
Hi,
One main reason for compiling Squid is if you want to server HTTPS through Squid. The packages installed through package manager don't have that option enabled, thus forcing a user to compile from source. At least that was one reason I came across when I installed Squid version 3.0 almost a year ago. Don't know if their policy changed and if HTTPS is now included in the packages installed using package manager.
No, that's the command to generate the cache structure, not the location. Have a look at your squid.conf to see where you've pointed your cache to.
Quote:
Originally Posted by gardenair
Be defauly when I all all settings and try to start it ,it does not show me that squid is not starting.Yes without any error it silently goes to prompt.
I didn't 'analyze' the startup script I pointed you to. You can check if squid is running with either of the following:
Code:
service squid status
ps ax | grep squid
I'm not sure if the process is squid or squid3, last time I used it is almost a year ago. If the process starts silently, you could easily change the startup script to show a message. If you need help with that, just let us know.
Sorry, but I use CentOS 5.5 and I've installed squid. I use https and https with client certificates and it works fine.
The version included in CentOS 5.5 is squid 2.6.STABLE 21.
About the command your are typing, the command is:
service squid status, not service status squid.
If your are not sure if your squid is well configured, try to run it as a program instead of a service.
If your are in the bin directory of squid, type
./squid --help
for watching the options.
If you type
./squid -N -X -d 1
you will see if it works fine as an application.
Sorry, but I use CentOS 5.5 and I've installed squid. I use https and https with client certificates and it works fine.
The version included in CentOS 5.5 is squid 2.6.STABLE 21.
Hi Felipe,
I think you're commenting on my statement in post 7. I specified 'if you want to serve HTTPS'. With that I was referring to using Squid as reverse proxy to serve HTTPS content to the internet. In order to have that possibility I had to compile Squid 3.0 from source because the package installed by package manager didn't offer the HTTPS option. Sorry for being unclear.
I am sure in the script squid script (which I have copy and past) need to change the path
Code:
PATH=/usr/bin:/sbin:/bin:/usr/sbin
export PATH
Hi,
In your original post you mentioned installing Squid in /usr/local/squid, but /usr nor /usr/local are included in your path statement inside the script. Check if Squid starts correctly when calling it directly as indicated by Felipe. If that works, then add the /usr/local directory to your path statement and try starting with the startup script.
For testing if squid.conf is configured right, try with:
squid -k check
As I told you, I use squid from CentoOS 5.5 (also tried in OpenSuse and RedHat) RPM for authentication (username/password, NTLM, user certificate- DNIe), authorization (user has to belong to groups of LDAP of Active Directory or fields of Database) an rewriter (add information of url extracted from LDAP and database), all in SQUID AS REVERSE PROXY.
For configuring squid as reverse proxy with https I've only had add (no exaclty this values):
With this, all request on port 443 are rewriten to server1.domain.com, port 8081.
Really, it's more complicated due to I use more servers and redirect urls to servers depending of url value.
Now to stop it what should I do ? Is it the proper way to start squid after installing from source code ?
Kindly guide me the way or the path which can work
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.