Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-05-2005, 04:28 PM
|
#1
|
LQ Newbie
Registered: Oct 2005
Posts: 29
Rep:
|
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.
|
|
|
11-05-2005, 05:04 PM
|
#2
|
Senior Member
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284
Rep:
|
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.
|
|
|
11-06-2005, 12:47 AM
|
#3
|
LQ Newbie
Registered: Oct 2005
Posts: 29
Original Poster
Rep:
|
"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
|
|
|
11-06-2005, 06:45 AM
|
#4
|
LQ Newbie
Registered: Oct 2005
Posts: 29
Original Poster
Rep:
|
oh.....i cant get answer
|
|
|
11-06-2005, 08:17 AM
|
#5
|
Member
Registered: Oct 2003
Location: USA
Distribution: Ubuntu
Posts: 216
Rep:
|
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?
|
|
|
11-06-2005, 08:52 AM
|
#6
|
Senior Member
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284
Rep:
|
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
|
|
|
11-06-2005, 10:45 AM
|
#7
|
Member
Registered: Oct 2003
Location: Singapore
Distribution: debian
Posts: 162
Rep:
|
I could offer more help for you if you want to, just pm me. 
|
|
|
11-07-2005, 02:47 AM
|
#8
|
LQ Newbie
Registered: Oct 2005
Posts: 29
Original Poster
Rep:
|
still i didnt get a clear answer.........fouldsy could you please give me a clear steps ........thanks
|
|
|
11-07-2005, 05:22 AM
|
#9
|
Member
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227
Rep:
|
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:
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.
|
|
|
All times are GMT -5. The time now is 07:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|