Changes

Jump to: navigation, search

OPS335 FTP Lab

12 bytes added, 17:03, 5 September 2011
Set up your FTP Server (Passive Mode)
also start Firefox in the guest and ensure it can view outside web sites.
===Set up your FTP Server (Passive Mode)===
*#Still on vm01 use yum to install vsftpd and edit the config file (/etc/vsftpd/vsftpd.conf) to implement the following:*#*Anonymous users should be able to login and download any files (permissions allowing) from the /var/ftp/pub. *#*Anonymous uploading should not be allowed. *#*Local users should be allowed to login to their own accounts and upload/download their own files.#The FTP Greeting Banner should be set to "Welcome to OPS335 FTP Server".#Set the maximum number of concurrent client connections to 50.#Set the maximum transfer rate for anonymous users to 131072 bytes per second.#Set the connection timeout for all clients to 90 seconds.#Enable file transfer logging.#You'll now have to modify your vm01 firewall to allow NEW tcp connections on port 21.#You'll also need to set SELinux to permissive mode: setenforce 0.#Finally you'll have to install the ftp connection tracking module into your kernel. Use this command: "modprobe nf_conntrack_ftp". To verify that your kernel module is installed you can use the "lsmod" command.#At this point you should test your FTP server from hosts within your intranet. It should work properly for both anonymous and local users. From a terminal window on the gateway try these activities:#*ftp as joker on your VM, then list, get and put files.#*ftp as anonymous to your VM, then list and get files.PART C: ===Configure the Firewall===*Now configure your firewall (using iptables) on the gateway to allow FTP clients through to the vm01 FTP server.*You'll need to forward packets with destination port 21 to your VM machine. *Test your firewall by logging into a second PC (try both Windows and Linux) and attempt an FTP connection to your gateway PC. Test both local user as well as anonymous connections.PART D: ===Set up your FTP Server (Active Mode)===
Edit /etc/vsftpd/vsftpd.conf and disable Passive mode (so now only Active mode is enabled) and then restart vsftpd.
Test your firewall by logging into a second PC (try both Windows and Linux) and attempt an FTP connection to your gateway PC. Test both local user as well as anonymous connections.
1
edit

Navigation menu