LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-24-2006, 05:48 PM   #1
Rustylinux
Member
 
Registered: Mar 2006
Posts: 177

Rep: Reputation: 30
Setting up Squid on Slackware


Hello,

Just wondering if anyone has setup and running Squid on slackware. I have squid compiled and installed but having problems configuring it. If anyone is running squid on there slackware server as a proxy if you could please give me a short configuration run down on how you got it up and running that would be great.

Thank you,
 
Old 03-24-2006, 09:06 PM   #2
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 479

Rep: Reputation: 30
I use it for work and can post the config on monday if I remember. It's located in /usr/local/squid/etc/squid.conf for me. I am using it with 2.4.32 kernel as I can't seem to get it to work with newer kernel. So if I remember, I will post config
 
Old 03-25-2006, 12:44 PM   #3
Rustylinux
Member
 
Registered: Mar 2006
Posts: 177

Original Poster
Rep: Reputation: 30
Also I would like to setup squid to authenticate via LDAP with my server 2003 so I can restrict internet access via group membership.

I was also wondering if there is a way to view squids information via webpage / webbroswer once it is running.
 
Old 03-28-2006, 05:11 PM   #4
Rustylinux
Member
 
Registered: Mar 2006
Posts: 177

Original Poster
Rep: Reputation: 30
Anyone else with any suggestions?
 
Old 03-28-2006, 05:34 PM   #5
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
http://freshmeat.net/projects/ldap_auth/
http://www.devet.org/squid/proxy_auth/
http://www.pcbypaul.com/software/squid.html
 
Old 10-01-2006, 10:33 PM   #6
dpballey
Member
 
Registered: Feb 2004
Location: India
Distribution: Mandrake 9.1, Fedora 7, FreeBSD 6.2, , Slackware 12, Debian
Posts: 69

Rep: Reputation: 16
Rusty> Here you go, I am submitting a quickstart to setting up squid. The quickstart is written by Stephane Bortzmeyer and Duane Wessels. I hope it helps.


Squid QUICKSTART

For people who want to get Squid running
quickly It is not a substitute for the real documentation. Squid has many features, but only a few of them are useful at the beginning. Use this only if you have quite a simple setup.

After you retrieved, compiled and installed the Squid software (see
INSTALL in the same directory), you have to configure the squid.conf file. This is the list of the values you *need* to change, because no sensible defaults could be defined. Do not touch the other variables for now. We assume you have installed Squid in the default location:
/usr/local/squid

Uncomment and edit the following lines in /usr/local/squid/etc/squid.conf:

==============================================================================

cache_peer

If you have a parent cache, put it here. The administrators of the
parent cache typically provided you with instructions. You should
always ask permission before adding a parent cache.

cache_mem

Add here the amount of memory (RAM memory) to devote to caching.
Warning: Squid uses much more than this value. Rule of thumb: if
you have N megabytes free for Squid, put N/3 here.

cache_dir /usr/local/squid/var/cache 100 16 256

Add here (first number, here 100) the amount of hard disk space
(in megabytes) to devote to caching.

acl, http_access, icp_access, miss_access

Access control lists. This is important because it prevents people
from stealing your network resources. To fill in the
"allowed_hosts" ACL, use your network address (for instance
192.168.10.0 and your network mask (for instance 255.255.255.0):

acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl all src 0.0.0.0/0.0.0.0
acl allowed_hosts src 192.168.10.0/255.255.255.0

http_access deny manager all
http_access allow allowed_hosts
http_access deny all

icp_access allow allowed_hosts
icp_access deny all

miss_access allow allowed_hosts
miss_access deny all

cache_mgr

Put here the e-mail address of the manager:

cache_effective_user

If you must start Squid as root, find a safe user and group to run
as after startup (typically "nobody" and "nogroup"). Do not use
"root", for security reasons.

visible_hostname

The host name you advertise for the cache.

==============================================================================

After editing squid.conf to your liking, run Squid from the command
line TWICE:

% /usr/local/squid/sbin/squid -z
% /usr/local/squid/sbin/squid

Check in the cache.log (/usr/local/squid/var/logs/cache.log) that
everything is all right. Note that "WARNING: Cannot write to swap
directory" is normal the first time you run Squid.

Once Squid created all its files (it can take several minutes on some
systems), test it with echoping or a regular Web client. By default,
your Squid will run on port 3128. See the Squid FAQ for more details.

Once you have Squid working from the command line, tell your Unix to
start Squid at startup (it depends heavily on the Unix you use, you'll
typically have to modify something in a /etc/rc_something).

This quick start file written by: Stephane Bortzmeyer and Duane
Wessels.



squid-users@squid-cache.org # general questions, pubilc forum
squid-bugs@squid-cache.org # bugs and fixes
squid@squid-cache.org # other feedback

Could you tell me how to fecth squid into Slackware?
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setting up dansguardian, squid and iptables as webfilter!! cryonics Linux - Security 1 03-10-2006 06:29 PM
Setting up Squid 2.4 on Mandria 10 mattp Linux - Networking 2 08-16-2005 02:58 PM
Setting up Squid 2.5 for Internet Cafe sanDiablis Linux - Networking 1 06-16-2004 09:40 PM
help setting squid kefen Linux - Networking 1 03-02-2004 04:59 AM
help me in setting squid proxy sanam Linux - Networking 1 03-01-2003 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration