it3010 network design & management · 2019. 3. 5. · bachelor of science special honors degree...
TRANSCRIPT
![Page 1: IT3010 Network Design & Management · 2019. 3. 5. · Bachelor of Science Special Honors Degree in Information Technology 03.05.2019 . Declaration I certify that this report does](https://reader036.vdocuments.net/reader036/viewer/2022081409/6082a45479b5de48502d3d21/html5/thumbnails/1.jpg)
IT3010
Network Design & Management 3rd Year, 1st Semester
Assignment
Assignment 01
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
03.05.2019
![Page 2: IT3010 Network Design & Management · 2019. 3. 5. · Bachelor of Science Special Honors Degree in Information Technology 03.05.2019 . Declaration I certify that this report does](https://reader036.vdocuments.net/reader036/viewer/2022081409/6082a45479b5de48502d3d21/html5/thumbnails/2.jpg)
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 : IT17049078
Name : Perera K.G.I.D
Set up and Configure
a Proxy-Server
![Page 3: IT3010 Network Design & Management · 2019. 3. 5. · Bachelor of Science Special Honors Degree in Information Technology 03.05.2019 . Declaration I certify that this report does](https://reader036.vdocuments.net/reader036/viewer/2022081409/6082a45479b5de48502d3d21/html5/thumbnails/3.jpg)
➢ Step 01 – Login to Centos & fedora. Go to Centos root privilege.
Type nmtui and activate connections. Then update the centos
server using
yum update
Then type clean all.
➢ Step 02 – Install squid in centos.
yum -y install squid
➢ Step 03 – Start squid in centos.
systemctl start squid
systemctl enable squid
Then check status of squid using following command.
systemctl status squid
➢ Step 04 – Configure squid in centos
Enable firewall in centos for squid
systemctl start firewalld
systemctl enable firewalld
firewall-cmd --permanent --add-port=3128/tcp
firewall-cmd --reload
➢ Step 05 – Check intent ip address
ip addr show
![Page 4: IT3010 Network Design & Management · 2019. 3. 5. · Bachelor of Science Special Honors Degree in Information Technology 03.05.2019 . Declaration I certify that this report does](https://reader036.vdocuments.net/reader036/viewer/2022081409/6082a45479b5de48502d3d21/html5/thumbnails/4.jpg)
![Page 5: IT3010 Network Design & Management · 2019. 3. 5. · Bachelor of Science Special Honors Degree in Information Technology 03.05.2019 . Declaration I certify that this report does](https://reader036.vdocuments.net/reader036/viewer/2022081409/6082a45479b5de48502d3d21/html5/thumbnails/5.jpg)
➢ Step 06 – All the squid configurations are done in vi
/etc/squid/squid.conf.
Following images shows my configurations in above file.
![Page 6: IT3010 Network Design & Management · 2019. 3. 5. · Bachelor of Science Special Honors Degree in Information Technology 03.05.2019 . Declaration I certify that this report does](https://reader036.vdocuments.net/reader036/viewer/2022081409/6082a45479b5de48502d3d21/html5/thumbnails/6.jpg)
➢ Step 07 – Restart the squid after configurations on squid.conf done.
systemctl restart squid
➢ Step 08 – Configure proxy in Fedora
Checking internet access through proxy.
Login to the client machine and connect to the internet.
![Page 7: IT3010 Network Design & Management · 2019. 3. 5. · Bachelor of Science Special Honors Degree in Information Technology 03.05.2019 . Declaration I certify that this report does](https://reader036.vdocuments.net/reader036/viewer/2022081409/6082a45479b5de48502d3d21/html5/thumbnails/7.jpg)
➢ Step 09 – configure proxy on fire fox browser
Open menu -> Preferences -> Network Proxy -> Settings
![Page 8: IT3010 Network Design & Management · 2019. 3. 5. · Bachelor of Science Special Honors Degree in Information Technology 03.05.2019 . Declaration I certify that this report does](https://reader036.vdocuments.net/reader036/viewer/2022081409/6082a45479b5de48502d3d21/html5/thumbnails/8.jpg)
➢ Step 10 – Enter following url on the address bar and check the
internet connection. http://courseweb.sliit.lk/
➢ Step 11 – – Go back to the server machine ( centos ) and check the
access log.
tail -f /var/log/squid/access.log
![Page 9: IT3010 Network Design & Management · 2019. 3. 5. · Bachelor of Science Special Honors Degree in Information Technology 03.05.2019 . Declaration I certify that this report does](https://reader036.vdocuments.net/reader036/viewer/2022081409/6082a45479b5de48502d3d21/html5/thumbnails/9.jpg)
➢ Step 12 – Enable caching
Urls Size(bytes)
http://www.bmw.com/com/en/ 253
http://www.mit.edu.au 171392
http://courseweb.sliit.lk 52720
http://www.baidu.com 14615
http://europa.eu 11600
http://digg.com 343925
http://apache.org 78929
http://www.worldbank.org 195152
http://www.networkadvertising.org 310
http://www.fortune.com 167146
http://www.un.org/ 8136
Total 1044160(1.044 MB)
➢ My cache folder & cache policy use.
![Page 10: IT3010 Network Design & Management · 2019. 3. 5. · Bachelor of Science Special Honors Degree in Information Technology 03.05.2019 . Declaration I certify that this report does](https://reader036.vdocuments.net/reader036/viewer/2022081409/6082a45479b5de48502d3d21/html5/thumbnails/10.jpg)
➢ Step 13 – Log into the Client Fedora machine and enter above
caching urls on the address bar.
![Page 11: IT3010 Network Design & Management · 2019. 3. 5. · Bachelor of Science Special Honors Degree in Information Technology 03.05.2019 . Declaration I certify that this report does](https://reader036.vdocuments.net/reader036/viewer/2022081409/6082a45479b5de48502d3d21/html5/thumbnails/11.jpg)
➢ Step 14 – Go back to the server machine (centos) and check the
cache directory.
ls /var/spool/squid/00/00
➢ Cache replacement policies
cache_replacement_policy Iru
![Page 12: IT3010 Network Design & Management · 2019. 3. 5. · Bachelor of Science Special Honors Degree in Information Technology 03.05.2019 . Declaration I certify that this report does](https://reader036.vdocuments.net/reader036/viewer/2022081409/6082a45479b5de48502d3d21/html5/thumbnails/12.jpg)