0% found this document useful (0 votes)
123 views17 pages

Network Design: Squid Proxy Setup Guide

This document is a report on setting up and configuring a proxy server. It discusses installing and updating Squid on a server, configuring the firewall and Squid.conf file. It also covers configuring the Firefox proxy settings and accessing a test URL to confirm the proxy is working. Finally, it discusses calculating web page sizes to determine the cache size, configuring the cache directories and files, and adding a cache replacement policy. The report contains 13 figures and 1 table to illustrate the steps and configuration changes discussed.

Uploaded by

Janith Gamage
Copyright
© © All Rights Reserved
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)
123 views17 pages

Network Design: Squid Proxy Setup Guide

This document is a report on setting up and configuring a proxy server. It discusses installing and updating Squid on a server, configuring the firewall and Squid.conf file. It also covers configuring the Firefox proxy settings and accessing a test URL to confirm the proxy is working. Finally, it discusses calculating web page sizes to determine the cache size, configuring the cache directories and files, and adding a cache replacement policy. The report contains 13 figures and 1 table to illustrate the steps and configuration changes discussed.

Uploaded by

Janith Gamage
Copyright
© © All Rights Reserved
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

IT3010

Network Design & Management


3rd Year, 1st Semester

Report

Assignment
Submitted to
Sri Lanka Institute of Information Technology

In partial fulfillment of the requirements for the


Bachelor of Science Special Honors Degree in Information Technology

08-05-2019
Declaration
I certify that this report does not incorporate without acknowledgement, any material
previously submitted for a degree or diploma in any university, and to the best of my
knowledge and belief it does not contain any material previously published or written by
another person, except where due reference is made in text.

Registration Number : IT17148214


Name : E.G Janith Supun

i
Table of Figures

Figure 1.1: Command “ sudo yum update –y ”

Figure 1.2: Commands to configure EPEL repo

Figure 1.3: Command to install Squid

Figure 1.4: Squid Installation Complete

Figure 1.5: Start squid

Figure 1.6: Status of Squid

Figure 1.7: Enable Firewall

Figure 1.7: View IP

Figure 1.8: Squid.conf

Figure 1.10: Command to Restart Squid

Figure 2.1: Go to preferences

Figure 2.2: Enter the Proxy address and port number

Figure 2.3: courseweb.sllit.lk

Figure 2.4: Command to open the Access.log file

Figure 2.5: Access log

Figure 3.1: Uncommented and Unadjusted line

Figure 3.2: Change to 1MB

Figure 3.3: Stop squid service

Figure 3.4: stop squid command

Figure 3.5: Remove files from the directory

Figure 3.6: Make a new directory

Figure 3.7: Change file owner

2
Figure 3.8 : Set file security context

Figure 3.9: Creating swap directories

Figure 3.10: Start squid service

Figure 3.11: cached files

Figure 3.12: Cached size

Figure 3.13: Cache replacement policy

Tables
Table 3-1: Size of web pages

10
1. Setup and Configure the Proxy Server
 Install and Update Squid
Update the server

Figure 1.1: Command “ sudo yum update –y ”

Configure EPEL repo

Figure 1.2: Commands to configure EPEL repo

Install Squid

Figure 1.3: Command to install Squid

1
After downloading all the necessary files, Squid installation will be completed

Figure 1.4: Squid Installation Complete

After installing squid , Start the squid server by following commands

Figure 1.5: Start squid

Then check the status of Squid

Figure 1.6: Status of Squid

10
 Configure Squid

Enable Firewall

Figure 1.7: Enable Firewall

View IP address

192.168.44.131/24

Figure 1.7: View IP

10
 Edit Squid.conf File
Open the Squid.conf file

Figure 1.8: Squid.conf

Add the eno16777736’s IP address to the ACL list

Figure 1.9: Edit squid.conf

After that , Restart Squid

10
Figure 1.10: Command to Restart Squid

2. Configure Firefox Proxy settings


Open menu > Preferences > Network Proxy > setting

Figure 2.1: Go to preferences

Enter the HTTP proxy address and the port number

10
Figure 2.2: Enter the Proxy address and port number

Check the internet conncetion through the proxy by entering following url

http://courseweb.sliit.lk/

Figure 2.3: courseweb.sllit.lk

10
Then check the server’s access.log file

Figure 2.4: Command to open the Access.log file

10
We can see the courseweb url inside the Access.log

Figure 2.5: Access log

3. Cinfigure Caching
Calculate the web page sizes to determine the cache folder size

Web URL Page Size (KB)


Table 3-1 :Size of
http://www.bmw.com/com/en/ 0.23 web pages
http://www.mit.edu.au 167.34 Then open the
http://courseweb.sliit.lk/ 49.24 squid.conf file and
http://www.baidu.com 14.27 uncomment
following line and
http://europa.eu 11.3
modify.
http://digg.com 338.82
http://www.worldbank.org 190.58
http://apache.org 79.36
http://www.networkadvertising.org 0.3
http://www.fortune.com 163.19
Total 1014.658KB
https://www.un.org/ 8.27
Total 1022.928KB(0.998MB)
Figure 3.1: Uncommented and Unadjusted line

10
Change the amount of disk space on cache directory to 1MB

Figure 3.2: Change to 1MB

Create cache directories

Figure 3.3: Stop squid service

Figure 3.4: stop squid command

Figure 3.5: Remove files from the directory

Figure 3.6: Make a new directory

Figure 3.7: Change file owner

Figure 3.8 : Set file security context

10
Figure 3.9: Creating swap directories

Figure 3.10: Start squid service

Then restart Squid and visit a website and check the cache directory.

Command : ls /var/spool/squid/00/00

Figure 3.11 : cached files

After going to few websites ,check the cached file size.

Figure 3.12 : Cached size

Edit the squid.conf file to add a cache replacement policy.

Figure 3.13 : Cache replacement policy

10
10
Important:
Remember
 Plagiarism is considered as a serious crime against intellectual property in academic
environments.
 By including the declaration page mentioned below, you abide by the laws of the
institute to accept 0 marks for the report, in case you get caught attempting
plagiarism.
Instructions for submission

1. Change the red colored components accordingly and include page


numbers.
2. Use PDF for Word formats for submission
3. Rename the submission document as follows;

RegistrationNo_Lab/Assignment_Lab/Assignment Name or Number

e.g.

IT12345678_Lab_1.docx
General Formatting
1. Paper size: A4
2. Contents font & size: Times New Roman, size 12
3. Chapter headings/sub headings font & size: Times New Roman Bold, size 12
4. Page numbering:
 Cover page should not contain any number
 Declaration page to table of figures page should be numbered using Roman
numbers at bottom center of the page
 Content pages, references page(s) and annexes (if any) should be numbered
using Arabic numbers at the bottom center of the page
5. Margins: 1 inch margins on left, right, top and bottom
6. Line spacing: 1.5 line spacing
Figure Numbering:
1. Each figure should be numbered at bottom center of the figure along with a figure
name.

10
2. Figure number should start with word ‘Figure’ followed by the ‘main chapter number’
and ‘figure number within the chapter’ separated by a ‘period sign (.)’ and followed
by a ‘colon (:)’.
For example,
Figure 2.6: XYZ Connector
Declaration Page:
Reports that does not contain this declaration ‘AS IS’ will not be accepted as valid reports
and will be awarded 0 marks.

10

You might also like