5 replies
by sridharpandu
Installing and configuring squid (Proxy Server)
1. Download squid-2.3 from the following link
http://www.squid-cache.org/Versions/v2/2.3/squid-2.3.STABLE4-src.tar.gz
Click OK and start the download.
2. After downloading, type
cd /root
Then type
tar -zxvf squid-2.3.STABLE4-src.tar.gz
3. Then type
cd squid-2.3.STABLE4
4. Now type
./configure
make
make install
5. Type
cd /usr/local/squid
chown root:root /usr/local/squid/bin
chown root:root /usr/local/squid/etc
chown root:root /usr/local/squid/logs
chown root:root /usr/local/squid/cache
touch /usr/local/squid/logs/access.log
touch /usr/local/squid/logs/cache.log
chmod 755 /usr/local/squid/bin/*.*
chown 666 /usr/local/squid/etc/*.*
chown 666 /usr/local/squid/logs/*.*
6. Now type
cd /usr/local/squid/etc
7. Edit the file squid.conf like this:
vi squid.conf
a. Find the line starting with "http_port" and replace it with
http_port 169.165.0.236:3128
b. Remove the # in the line
#icp_port 3130
c. Find the line starting with "tcp_outgoing_address " and replace it with
tcp_outgoing_address 202.9.161.204
d. Remove the # in the line
cache_mem 8 MB
and change the line as
cache_mem 16 MB
e. Remove the # in the line
cache_dir ufs /usr/local/squid/cache 200 16 256
f. Find the line starting with "acl users src" and replace it with
acl users src 169.165.0.0/255.255.255.0
g. Remove the # in t
by choth
Dear Sridhar Pandu,
Thank you so much for your answer. It helps me a lot. Would you mind if I would like to know your email address. Please send me to chan_choth@yahoo.com.
Sincerely yours,
Chan Choth
For single internet connection using SQUID more than one user can access the internet in the LAN.
For that download the latest version of SQUID from
http://www.squid-cache.org and untar using
tar -zxvf squid-versio.tar.gz .
After that you compile the source using
./configure , make & make install
Then go into the direcotry /etc and change the squid.conf file according to your needs.Start the service using
/etc/rc.d/init.d/squid start
and you are ready.
At client side you provide the ip address in the
option of Proxy server address and make the option of using it and give port no 80.
by choth
by choth
This discussion is closed to new replies.
Trending Linux posts
Sort by Trending