0% found this document useful (0 votes)
35 views1 page

Proxy Server Config

The Squid utility is an internet proxy server that allows a central computer connected to the internet to share its connection with other computers on a local network. Squid uses a configuration file called squid.conf, located by default in /etc/squid, to specify access control lists defining which IP addresses or subnets can access the proxy. The configuration file can also be used to specify the port on which Squid runs, with the default being port 3128. Squid can be started, restarted, and stopped using commands like /etc/rc.d/init.d/squid start from the command line as root. Client applications and web browsers need to be configured with the Squid server's IP address and

Uploaded by

mervin_quinto
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views1 page

Proxy Server Config

The Squid utility is an internet proxy server that allows a central computer connected to the internet to share its connection with other computers on a local network. Squid uses a configuration file called squid.conf, located by default in /etc/squid, to specify access control lists defining which IP addresses or subnets can access the proxy. The configuration file can also be used to specify the port on which Squid runs, with the default being port 3128. Squid can be started, restarted, and stopped using commands like /etc/rc.d/init.d/squid start from the command line as root. Client applications and web browsers need to be configured with the Squid server's IP address and

Uploaded by

mervin_quinto
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Introduction

    The utility squid is an internet proxy server that can be used within a network to
distribute an internet connection to all the computers within the network. One central
computer is connected to the internet through any means such as dial-up, cable modem,
ISDN, DSL, or T1, runs squid, and thus acts as the firewall to the internet. Because it is a
proxy, it has the capabilities to log all user actions such as the URLs visited. There are many
features that can be configured in squid. This guide is meant to be a quick start guide for
those who are eager to get squid working and then configure it from there.

squid Configuration
    Squid uses the configuration file squid.conf. It is usually located in the /etc/squid
directory. Access through the proxy can be given by individual IP addresses or by a subnet
of IP addresses.
In squid.conf search for the default access control lists(acl) and add the following line
below them:
acl mynetwork src 192.168.1.0/255.255.255.0 (for subnet)
acl mynetwork src 192.168.1.10/255.255.255.0 (for individual IP)
Then add the access control list named "mynetwork" to the http_access list with the
following line:
http_access allow mynetwork
The default port for the proxy is 3128. Uncomment the following line and replace 3128 with
the desired port :

http_port 3128

Starting, stopping, and restarting squid


    Assuming you have the runlevel scripts installed you can use the following commands as
root:

Start squid /etc/rc.d/init.d/squid start


Restart squid /etc/rc.d/init.d/squid restart
Stop squid /etc/rc.d/init.d/squid stop

    or issue the following TWO commands as root:


    squid -z
    squid

    or configure squid to start at boot time using your runlevels.

Configuring squid Clients


    To configure any application including a web browser to use squid, modify the proxy
setting with the IP address of the squid server and the port number (default 3128).

SOURCE FROM: http://www.linuxheadquarters.com/howto/networking/squid.shtml


Thanks to Linuxheadquaters.com

You might also like