0% found this document useful (0 votes)
32 views57 pages

20-CP-12 SP Assignment 2

The document discusses configuring various servers and services across Linux and Windows platforms, including Squid proxy server, Asterisk VOIP server, remote access via telnet, SSH, VNC and RDP, remote file transfer via SCP, and a Samba file server with access control on Linux folders from Windows. The tasks cover installation, configuration, testing and access of these servers and services across the networked platforms.

Uploaded by

Salman Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views57 pages

20-CP-12 SP Assignment 2

The document discusses configuring various servers and services across Linux and Windows platforms, including Squid proxy server, Asterisk VOIP server, remote access via telnet, SSH, VNC and RDP, remote file transfer via SCP, and a Samba file server with access control on Linux folders from Windows. The tasks cover installation, configuration, testing and access of these servers and services across the networked platforms.

Uploaded by

Salman Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 57

University of Engineering and

Technology, Taxila Department of


Computer Engineering

Subject: System Programming (SP)

Subject Code: CP-410

Semester: BS-CP (8th)

SUBMITTED TO:

DR ZAHID MEHMOOD

SYBMITTED BY:

NAME: EMAN TARIQ AWAN

ROLL NO: 20-CP-12

SECTION: OMEGA

DATED:1st May 2024


Assignment Deployment Platforms:

 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

Squid Server External Network Configuration (LAN_Card-1)


Squid Internal Network Configuration (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:

Client-Side Browser Configuration:


f) Setup squid server cache log and access log.

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:

Ip Address of Client’s Pc:

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.

Asterisk voice over Installation:


Asterisk voice over Server Side Configuration:
Asterisk voice over IP Configuration Client side

IP of Asterisk Server:

First Phone : QuteCom:


Configuring SIP profile:
Second Phone: Express Talk Business :
Both IP Soft clients are ready now:
By dialing 999 from 1st client :
Dialing 999 from second client:
Q4. You are required to setup remote login features via terminal on Microsoft Windows and

LINUX platforms via telnet, rdesktop, VNC server/client, and ssh/putty.

Telnet

Querying about telnet & telnet-server whether these packages are installed/not:

Installing telnet & telnet-server packages:


Starting the telnet Service

Enabling Service through firewall

Client Side configuration

Open Control panel

Open Programs

Select “turn off feature on or off” option

Check the ”Telnet Client-Box”


Click “ok” A box will appear says “Windows Features” and “Searching for Required files”

When complete the telnet client should be installed in the windows

Remotely accessing Centos-7 through Telnet on (Windows 10 )

Successfully accessed Centos-7 via Telnet

SSH SERVER

Installing and opening packages


Enabling starting the sshd service and verifying that TCP port number 22 is in listing state:

Opening port 22

Opening the configuration file of OpenSSH Server

Disabling root login:

Restricting login to emanuet only over ssh:

Saving and closing the file. Restarting sshd


Remotely accessing our Centos-7 using SSH(Windows 10)

VNC SERVER CLIENT

Adding username adeel created above , in configuration file by replacing


Client-Side Configuration (Windows 10 Pro):

Install VNC Viewer on Client PC as:

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.

File and folder has been shared from CENTOS 7 TO CentOS 7.

Step 1 Creating file on PC 1


Step 2 Checking IP address of PC 2

Step 3 Transferring file from PC 1 to PC 2 using the SCP command :

Step 4 Checking file on PC 2 root directory

Step 5 Creating Folder with multiple files on PC 1:

Step 6 Transferring folder from PC 1 to PC 2 using scp command:


Step 7 Checking folders and files on PC 2 root Directory

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.

You might also like