April 20, 2024, 11:27:03 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: squid configuration  (Read 3603 times)

Offline praveeng007

  • New Member
  • Posts: 2
squid configuration
« on: September 20, 2004, 05:18:12 AM »
Hi

Iam new to Linux. I have installed Linux and is working fine. I want to configure Squid proxy for my lan. Can any one help me inthis matter.

Offline stephen

  • Linux Learner
  • ***
  • Posts: 56
squid configuration
« Reply #1 on: September 20, 2004, 09:12:14 AM »
Hi,

  Its very simple to create proxy.For that you have to do the following.
I am giving the detail in brief.

#vi /etc/squid/squid.conf

In squid.conf

You can see Header like "ACL "

in that section you have to add the following like

Example:

acl myoffice src 192.168.1.55/255.255.255.0

Then in http section


http_access allow myoffice
http_access deny myoffice

Save and quit by :x

Then give the following command

#squid -Z

Then Restart th squid service by

# service squid restart


At the win client end do the following

In Internet Explorer
            Tools
              Internet Options
                  Connections
                      Lan Settings
                          Enable the "Use Proxy Server"

Put the IP Address of the Linux Server system and Port no will be 3128.

Now you can browse Internet.

Thats it.......