UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
I recently have tried installing the Squid-cache/proxy server version 3 onto my fresh ubuntu server. So far i have had no luck in the sense of getting connections threw it, mainly because i can't seem to figure out how to get port 3128 (default squid listening port) to listen on the network. I have go threw many configuration manuals and have searched google over and over and i can't find a solution as to why its not listening. I have downloaded a working Squid server but i need to figure out how to do this on my own so we can add this lesson to our class' at work. If anyone knows how to get this program to start listening please help me...
There's 2 parts to that. Firstly, does your firewall allow connections to port 3128? Secondly, did Squid start correctly?
You should be able to tell whether Squid started correctly by looking in its log files. The location is specified in your squid.conf file, but is often something like /var/log/squid. Can you check those and post any errors here please?
Checking your firewall means looking at what rules are set with iptables. Are you running a firewall on the box?
well all i can tell you at the moment is that there are no firewalls enabled on this box. It's kinda just a virtual machine experiment. I will post the log file tomorrow when i get into work.
So, sadly by looking at the log file, I have come to the conclusion that it is doing nothing except that it has created the swap directories.
Creating swap Directories
/var/spool/squid3 exists
Making directories in /var/spool/squid3/00
Making directories in /var/spool/squid3/01
Making directories in /var/spool/squid3/02
Making directories in /var/spool/squid3/03
Making directories in /var/spool/squid3/04
Making directories in /var/spool/squid3/05
Making directories in /var/spool/squid3/06
Making directories in /var/spool/squid3/07
Making directories in /var/spool/squid3/08
Making directories in /var/spool/squid3/09
Making directories in /var/spool/squid3/0A
Making directories in /var/spool/squid3/0B
Making directories in /var/spool/squid3/0C
Making directories in /var/spool/squid3/0D
Making directories in /var/spool/squid3/0E
Making directories in /var/spool/squid3/0F
then nothing after that, so im guessing its not doing andthing when i start it. i check with 'ps -aux' to see if it is running, it shows the directory of the executable for about 1 minute then it disappears. Also, when i use 'netstat -ano' it doesn't come up with the port that it is supposed to be listening on.
Are there any messages in /var/log/squid/access.log, /var/log/squid/cache.log or /var/log/squid/store.log? It's odd that there's just nothing after creating the cache directories.
well that is what shows up in the cache.log, haven't checked the other logs yet. im off work till tuesday, civic holiday monday, ill post other logs then.
well it turns out there is no /var/log/access.log or /var/log/squid3/store.log... I honestly don't see why it is not working, I have tried lots of tutorials on getting it to work.
I just tried squid3 on our Ubuntu Server 7.04 and I get the same results. It looks like it runs for a few seconds, then nothing. I've checked the log files, etc., for a reason but there is nothing. I have also tried Squid2.6 and it works fine. I was just poking around to see what the difference is, and so far, the biggest difference between 2.6 and 3 is that 3 does not work. :-)
just figured it out, its either the permissions on the /var/log/squid folder are too low or it worked when i ran it as a daemon. either way its proxying now.
Wow, that's what it was. I looked at the /var/log/squid3 folder and it was owned by root. I chmod it to 750 and chown -R it to proxy.proxy and it works!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.