LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-09-2008, 11:03 PM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
test squid with only one machine


I am new to squid and ordered 'squid: the definitive guide' book. I was wondering if it is possible to test squid using only one machine?

Thanks for any help.
 
Old 02-10-2008, 12:07 AM   #2
bcwagne
Member
 
Registered: Feb 2008
Distribution: Debian Testing
Posts: 169

Rep: Reputation: 32
Yes. I use squid on my desktop machine. You just have to make sure that whatever connection you are using gets passed through the proxy. Right now I am using it as a proxy filter (with squid guard) for firefox. It is just like any other proxy. It works quite well.
 
Old 02-12-2008, 09:32 AM   #3
melainine
LQ Newbie
 
Registered: Feb 2008
Posts: 15

Rep: Reputation: 0
bcwagne : how did you configure squid ,by default ?
 
Old 02-13-2008, 01:36 PM   #4
bcwagne
Member
 
Registered: Feb 2008
Distribution: Debian Testing
Posts: 169

Rep: Reputation: 32
Quote:
Originally Posted by melainine View Post
bcwagne : how did you configure squid ,by default ?
Yes. I left all the default settings alone, except for the ones mentioning which IP address to listen on, and the url_rewrite_program tag, which I changed to squidguard. It is possible to set up squid as a transparent proxy (so you don't have to configure each machine connected to it), but I didn't bother as I am only using one machine, and it isn't a big deal to configure a few programs for the proxy.

I didn't set up the caching for squid.

I mostly followed the Ubuntu squid how to.
 
Old 02-14-2008, 04:25 AM   #5
bassel
LQ Newbie
 
Registered: Dec 2007
Location: Saudi Arabia
Distribution: RHEL, Fedora, Ubuntu
Posts: 9

Rep: Reputation: 0
first of all, you have to change the sittings of your browser to use your machine as a proxy. the default sitting of the SQUID is listening to port 3128.

you may just use (no need to change) the following lines in the /etc/squid/squid.conf:
http_port 3128 -> the listening port, you can change to 8080 or just use it as it is
acl all src 0.0.0.0/0.0.0.0 -> refer to all connection
acl localhost src 127.0.0.1/255.255.255.255 -> the connection form local machine

run the SQUID (/etc/init.d/squid start), and try to access the web. it should work.

now, in the rules section (http_access), you may change the following (i highly recommend to comment with '#' instead to changing the statements):
http_access allow localhost -> http_access deny localhost
now, update the new configuration to running SQUID (/etc/init.d/squid reload) (fast), or you may restart it (/etc/init.d/squid restart) (very slow). try to access the web again. it should not allow you now (really, I did not try it).

NOTE: that the parsing of the rules is from top to bottom. i.e., the system will read the rules one by one from top to bottom, once a match found it will apply it (allow or deny) then stop. for example, if you move the line "http_access deny all" to the top of rule section, no one will be able to use the system.

also, you may play in the Safe_ports by opening and closing ports such as opining only 80 and 443 to allow only web browsing.

hope this will help you.
 
  


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
How to test RIP on Linux Machine amitbhelave Linux - Networking 6 08-28-2007 02:26 AM
How to test bandwidth given to a squid server suhas! Linux - Server 2 07-30-2007 10:56 PM
Can I test GRE tunnel on single machine sourabhsinghmanak Linux - Newbie 0 07-26-2007 06:48 AM
Is there any way I can test a port on a remote machine to see whether its open? neocookie Linux - Networking 3 05-09-2007 05:13 PM
Squid at one machine and SquidGuard at another machine Dogar Linux - Software 0 04-02-2007 11:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:10 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