Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
installing squid
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
the1spicymeatbal
n00b
n00b


Joined: 21 Jan 2005
Posts: 8

PostPosted: Mon Jan 24, 2005 7:04 am    Post subject: installing squid Reply with quote

I installed KDE and I need to get squid running now. Can anybody walk me through this...I can't seem to figure it out. Thanks in advance
Back to top
View user's profile Send private message
joeswift
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2005
Posts: 94
Location: South Africa

PostPosted: Mon Jan 24, 2005 7:18 am    Post subject: Reply with quote

first you need to install it. Try:
Code:
emerge squid


Once that is done there are several ways to configure squid and get it up and running:

First you will need to edit the squid.conf file located in /etc. This could be a complicated process, or a hassle to go thru. What i normally do is install another tool, called webmin. It's a browser-based administration tool that allows you to configure many different apps on you machine, like squid or sendmail. Simply emerge webmin to install it. For more info on webmin check out http://www.webmin.com/. In addition to configuration i think webmin allows you to start and stop squid.

Once you have configured squid, you need to do the following:

Create Swap directories:
Code:
% /usr/local/squid/bin/squid -z

Start Squid, run it from your terminal to check debugging output:
Code:
% /usr/local/squid/bin/squid -NCd1

To run in the background just leave out the parameters:
Code:
% /usr/local/squid/bin/squid


Do a man on squid for more options. Also check out the following url for a howto on squid:

http://www.skullbox.net/squid.php
Back to top
View user's profile Send private message
the1spicymeatbal
n00b
n00b


Joined: 21 Jan 2005
Posts: 8

PostPosted: Mon Jan 24, 2005 10:18 pm    Post subject: Reply with quote

ok so i emerged webmin.....now what?
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Tue Jan 25, 2005 12:33 am    Post subject: Reply with quote

you've not been clear on what you plan to do with it so here are the basic basics and some options.

emerge squid
vi /etc/squid/squid.conf
search for the string "our_networks". After you've found that add these lines

acl our_networks src 10.0.0.0/8 127.0.0.0/8 192.168.0.0/24
http_access allow our_networks

This is the minimum you need to get going. Obviously you'll need to change your IP's based on what range you want to allow

auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid.pass
acl ncsa_users proxy_auth REQUIRED
http_access allow ncsa_users

If you decide you want to allow users with dynamic IP's then add these as well. This will turn on basic authentication through your browser, looks just like htaccess. /etc/squid/squid.pass is a standard htpasswd file.

no_cache deny all

I use my squid proxy mostly for testing web sites in developement. The devs are always making changes so I prefer for the proxy not to cache so that we can see the changes immediately. I doubt you'll need that, but it's nice to know. IIRC you many need to tell squid to cache for your networks.

/etc/init.d/squid start
rc-update add default squid

That's pretty much it.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
the1spicymeatbal
n00b
n00b


Joined: 21 Jan 2005
Posts: 8

PostPosted: Tue Jan 25, 2005 12:54 am    Post subject: Reply with quote

sorry...i have not been clear at all with my posts.
I am trying to set up a server for a network. I need to be able to control how much bandwith each computer can get, monitor internet usage, firewall, etc.
It sounds like webmin is an easy way to get squid up and going. I am unsure how to use webmin though. Any help is appreciated greatly.
Back to top
View user's profile Send private message
the1spicymeatbal
n00b
n00b


Joined: 21 Jan 2005
Posts: 8

PostPosted: Tue Jan 25, 2005 2:29 am    Post subject: Reply with quote

alright I got Webmin and Squid started. Now could anyone help me with how I can set all this up? I have a T1 that I will connect to one of my NICs then a 50 port switch that I am going to hook up to my other NIC. How do I go about getting DHCP and Squid running successfully?
Back to top
View user's profile Send private message
RedDawn
Guru
Guru


Joined: 22 Sep 2003
Posts: 368
Location: Los Angeles, California

PostPosted: Tue Jan 25, 2005 8:39 am    Post subject: Reply with quote

ever heard of searching the danm forums, there tons of thread regarding the setup of a dhcpd server, routing tables, etc...

Search...........
Back to top
View user's profile Send private message
Cyris
n00b
n00b


Joined: 17 Apr 2002
Posts: 68
Location: Texas

PostPosted: Thu Feb 10, 2005 8:20 pm    Post subject: Reply with quote

:?: :?: :?: How do plan on hooking up a T1 to your NIC. You are going to need a router with a T1WIC with a built in CSU/DSU or a router with serial interface with an external CSU/DSU (i.e. Paradyne). Then you can connect the ethernet interface on the router to your 50 port switch and all of the other PC to the switch as well.

I am sure you are trying to get away without having to use a router (Cisco or some other router besides your PC/Server/Router), but if you have a REAL T1 then it ain't gonna work without a CSU/DSU to terminate the signal from the LEC to something that your network can understand.

And as far as Squid and Webmin goes? Webmins site tell you everything you need to know on how to run it and I can almost guaruntee that someone somewhere has already asked your question on this forum in one way or another.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum