IT3010 Network Design & Management · 2019. 3. 5. · Bachelor of Science Special Honors Degree...

Preview:

Citation preview

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

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

➢ 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

➢ Step 06 – All the squid configurations are done in vi

/etc/squid/squid.conf.

Following images shows my configurations in above file.

➢ 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.

➢ Step 09 – configure proxy on fire fox browser

Open menu -> Preferences -> Network Proxy -> Settings

➢ 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

➢ 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.

➢ Step 13 – Log into the Client Fedora machine and enter above

caching urls on the address bar.

➢ 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

Recommended