LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-05-2005, 04:28 PM   #1
alkingg
LQ Newbie
 
Registered: Oct 2005
Posts: 29

Rep: Reputation: 15
squid


how i can test if my squid server is working correctly before connecting it to my lan....i dont have two network card in my pc .....and i'm still in the learning stage.
 
Old 11-05-2005, 05:04 PM   #2
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
You don't neccessarily need to network cards for squid before putting it onto your lan. If you have it up + running, you can point a machine at it connecting to the port you assign and make sure you can browse the net. Check the Squid access + cache logs to make sure it's actually recording data. There is a command line Squid helper that imitates a browser but I can't remember it's name - check out the Squid FAQ's, it's in there somewhere.
 
Old 11-06-2005, 12:47 AM   #3
alkingg
LQ Newbie
 
Registered: Oct 2005
Posts: 29

Original Poster
Rep: Reputation: 15
"you can point a machine at it connecting to the port you assign and make sure you can browse the net"?????

could you please be more clear.becuase im new to linux system......thanx for reply
 
Old 11-06-2005, 06:45 AM   #4
alkingg
LQ Newbie
 
Registered: Oct 2005
Posts: 29

Original Poster
Rep: Reputation: 15
oh.....i cant get answer
 
Old 11-06-2005, 08:17 AM   #5
deoren
Member
 
Registered: Oct 2003
Location: USA
Distribution: Ubuntu
Posts: 216

Rep: Reputation: 30
First of all, this book is invaluable:

Squid The Definitive Guide
0596001622

Two places I would suggest purchasing it from include Amazon.com or Half.com as they both (usually) have good prices for used books.

Second, I'll ask the obvious questions:

What distro are you using?
What release of Squid?
Have you tweaked the default squid.conf config file?
 
Old 11-06-2005, 08:52 AM   #6
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
Firstly, please be a bit more patient - people on these forums aren't paid to help you, so try giving a bit more than 6 hours first thing on a Sunday morning for people to reply.

Anyways, to try from another machine, within the proxy settings on your browser, enter the IP address of your Linux machine running Squid and the port number your specified in the squid.conf file. Try browsing the Internet. If you have Squid configured correctly, you will be able to load sites on your other computer. If not, you'll get a nice message from Squid telling you what's going on. Back on your Squid box, check /usr/local/squid/var/log/access.log and cache.log to make sure Squid is logging + caching these requests properly.

But I'd second the idea of a decent book on Squid, or at least thoroughly reading through http://www.squid-cache.org/Doc/FAQ/FAQ.html
 
Old 11-06-2005, 10:45 AM   #7
nistelrooy
Member
 
Registered: Oct 2003
Location: Singapore
Distribution: debian
Posts: 162

Rep: Reputation: 30
I could offer more help for you if you want to, just pm me.
 
Old 11-07-2005, 02:47 AM   #8
alkingg
LQ Newbie
 
Registered: Oct 2005
Posts: 29

Original Poster
Rep: Reputation: 15
still i didnt get a clear answer.........fouldsy could you please give me a clear steps ........thanks
 
Old 11-07-2005, 05:22 AM   #9
~=gr3p=~
Member
 
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227

Rep: Reputation: 30
If u have single network card then u may add IP alias:

# ifconfig eth0:1 192.168.0.1 up

if u have configured squid correctly to run on the machine for example who's IP address is 192.168.0.1 and port 3128 then,

1) start your squid daemon by giving command:

Quote:
squid -z -F -D
2) Now that u sitting in front of your machine 192.168.0.1 then on this very machine itself open your browser say for example "Mozilla firefox" or that damn "Internet Explorer" and configure your proxy settings. If u are very noob then type "firefox proxy settings" or "Internet Explorer proxy settings" in google

Enter Http Proxy as 192.168.0.1 and port 3128

Now type any web url to test. If pages open then it will work on your other machines in network until and unless there is no firewall issue

If u don't know howto configure Squid then for noob here is good walkthrough

http://www.linuxhomenetworking.com/linux-adv/squid.htm

Last edited by ~=gr3p=~; 11-07-2005 at 05:24 AM.
 
  


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
SQUID for blocking yahoo and msn [inc squid.conf] chrisfirestar Linux - Security 10 03-03-2008 08:33 AM
squid message customization, hiding squid versioin rajnishmishra Linux - Networking 0 11-27-2004 03:55 AM
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard Niceman2005 Linux - Software 1 11-24-2004 02:29 PM
I can't "service squid start" , and chkconfig squid on not working Niceman2005 Linux - Software 0 11-10-2004 08:18 PM
Squid load testing software / Squid optimisation? gundelgauk Linux - Networking 2 08-31-2004 07:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:13 AM.

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