SQUID on Redhat 9.0
Hello, I have been everywhere, looking to see how i would go about using and configuring SQUID.
I have looked at the squid cache site, i have looked on google.. I'm going crazy with looking for this.. and how to's that NEVER explain exactly what im looking for..
IF anything im a visual learner, and cannot read this "gubble".. eitherway, is there someone out there on these forums that know how to run this program and who will bve willing to talk to me, and / or help me.
I will offer webhosting or anything.. for the help. As i really need to learn how to! :D
Thanks alot.. Hope to hear from you.
If you can upgrade, I thoroughly recommend it.
RH9 is very old & no longer supported.
If you like RH products, consider their latest free Linux RH Fedora Core v6 (in other words it's 6 versions beyond RH 9).
It'll make it much easier to get help/appropriate versions of SW.
This gives a neat guide.
if u need more help.
Using this very minimum setup in squid.conf, you can make squid run. squid.conf is grouped accordingly and the first line below is what would be needed setup. By scrolling down through squid.conf, you will find where each line should belong. For the mean time you tried this settings first and post if there are still problems and squid.conf is usually in /etc/ or /usr/local/etc/.
acl my_net src 192.168.0.0/24
http_access allow my_net localhost
If this is the first time you installed squid, it needs to create its cache directories.
# /usr/local/sbin/squid -z
Please do find where squid is located in your distro. It might be in /usr/sbin/ or /usr/local/squid/sbin/. The later if you installed squid from source. You may use 'find' or 'which' to look for it.
# which squid
# find /usr -name squid
Then after the cache dirs were created, simply run it directly using its full path as used with creating the cache but without -z option. Or use your distro's provided startup script. It is I'm sure in /etc/init.d/.
To check if squid started normally, use netstat utility. But please do check its options with you because the one I'm using works both in Slack and OpenBSD.
# netstat -lnp tcp |grep 3128
Or it might be 'netstat -ln -proto tcp'.
Another way of checking if squid has no problem starting is to consult its cache.log file. I'm not using squid in any Linux distro but in OpenBSD only and it is here installed in '/var/squid/logs/cache.log'. So it is up for you to figure out.
# cat /var/squid/logs/cache.log
By throughly reading the log, you can tell of what went wrong in squid.
This I believe is the most minimum settings and there are still to be added to make it a transparent proxy/caching and in accelerator mode. But this would already make you go for it and have it tested.
Then in you clients proxy browser settings just indicate the IP address and the port where you bind squid. Then if you are already familiar with iptables, use it to redirect all outgoing web requests from your LAN in order not to let them browse the internet without passing through squid. Unfortunately, I can't help you on this since I don't use Linux as firewall and I'm only familiar with OpenBSD/PF.
|All times are GMT -5. The time now is 09:29 PM.|