20-CP-12 SP Assignment 2
20-CP-12 SP Assignment 2
SUBMITTED TO:
DR ZAHID MEHMOOD
SYBMITTED BY:
SECTION: OMEGA
CENTOS LINUX
Client Operating System is Windows 10 64-bit
Q1. You need to configure the Squid server in the RedHat Enterprise CENTOS LINUX
platform for the following given scenarios;
a) Set the hostname of your CENTOS LINUX pc as your name along with uet e.g. aliuet.
b) Install two LAN cards in your CENTOS LINUX PC and configure one LAN card (Use
for Squid Internal Network) with any class B network of your choice and configure
a second LAN card (Use for Squid External Network) with any class A network of
your choice.
LAN-CARD-1
LAN-CARD-2
c) Verify that the Squid server is installed and running on your PC at system startup
automatically (install Squid server if it is not installed after querying at RedHat
Enterprise LINUX platforms).
Solution:
d) Add Squid Server port in LINUX Firewall.
Solution:
e) Configure the squid server so that it can share the internet on clients' computers
according to the requirements of part b of Q1.
Solution:
Cache Log:
Access Log:
g) Configure the squid server as a transparent proxy server.
Solution:
h) Configure the squid server so that it can block 5 websites of your choice on the
client’s PCs while the rest of the internet access is allowed on the client's PCs.
Solution:
Facebook Blocked: (on Client’s Browser)
Netflix Blocked:
Yahoo Blocked:
Youtube Blocked:
i) Configure the squid server to block whole internet access on the client PC by
using any specific IP address of your choice.
Solution:
Internet is Blocked:
Configure the squid server to block whole internet access on the client PC by using any
specific MAC address of your choice.
Solution:
Client’MAC:
Internet is Blocked:
Q2. Configure the DHCP server in RedHat Enterprise CENTOS LINUX platform on the first
LAN card (i.e., internal network of squid server) so that all clients can obtain IP address,
default mask, default gateway, and preferred DNS, and alternate DNS server settings from
this DHCP server.
Solution:
Client-Side Configuration: Which is windows 10 64-bit
Q3. Deploy an Asterisk voice-over IP (VOIP) server that provides a calling feature between
two IP softphone clients.
IP of Asterisk Server:
Telnet
Querying about telnet & telnet-server whether these packages are installed/not:
Open Programs
SSH SERVER
Opening port 22
Provide IP address (along with port number of VNC Server ) of your Centos-7 PC which we had
founded before using ifconfig as:
RDESKTOP
Client-Side Configuration (Windows 10 Pro)
Search for Remote Desktop Connection from the start of your Client PC as:
Provide the IP address of your Centos-7 PC which we had founded before using ifconfig as:
Q5. You are required to setup remote file transfer features via terminal between LINUX PCs
via SCP script.
Q6. You are required to setup a file server that provides a file-sharing facility between
Microsoft Windows and Redhat Enterprise LINUX platforms.
a) Create five user accounts and five folders in the Centos LINUX platform and add
these five user accounts to the
b) The Samba server's first user account is only allowed to read data from the first folder.
c) The Samba server's second user account is allowed to read and write data from all five
folders.
d) Samba server third user account is only allowed to read and write data in folder no.
three and four.
e) The Samba server's fourth user account is only allowed to read and write data in
folders no. one and three.
f) Samba server fifth user account is only allowed to read and write data in folder no.
fourth and fifth.
a) Add Samba server PC as a member of the Microsoft active directory.