Lab 05
Lab 05
LAB 5
Network Configuration
1. Understanding how network configuration works under the hood in Linux distributions is
invaluable and can come in handy in several scenarios. Typically, Ethernet devices register
themselves with name such as ethX, emX, ensX, pXpX, or enpXsY, where X and X are the
device or index numbers, respectively.
a) Use ip command. Find your Ethernet devices, IP address and IPv6 address. -ip address
show
c) Install and use ifconfig command. Find your Ethernet devices, IP address and IPv6
address -sudo apt install net-tools -y; ifconfig
a) Use text based login in Linux to access the anonymous FTP site -
password -abc.com
exit - bye command
b) Use browser in Windows to access the anonymous FTP site
a) Install proftpd as FTP server in your system. Use sudo apt install
proftpd-basic -y and use ftp client in terminal to test the installation.
b) Access FTP server from Windows host using any graphical FTP client such as
Windows/File Explorer, FileZila, gFTP or any FTP clients. Upload any files from
windows machine to the FTP server. fttp://192.168.56.101 -file explorer
c) In Linux, using terminal, use ls command to look for files from windows machine
that has been uploaded as question 4b above.
FTP Security: Using chroot jail
4. A chroot on Unix operating systems is an operation that changes the apparent root directory
for the current running process and its children. The programs that run in this modified
environment cannot access the files outside the designated directory tree. This essentially
limits their access to a directory tree and thus they get the name “chroot jail”.
a) Using ftp terminal command, identify you FTP server whether it implement chroot jail.
i) Login to FTP server and use pwd and ls command.
ii) Go to root directory and use pwd and ls command. -cd /, pwd, ls
iii) Login to FTP using GUI client such as FileZilla.
Note:
Save your Lab tutorial as Group-Lab5-ID-Name-.pdf and upload to Google Classroom.