FTP Server Configuration

Download as pdf or txt
Download as pdf or txt
You are on page 1of 25

Prepared by Aamir Sohail

Basic Networking for Cyber Security


Below I write the complete details with including picture.

1. Destination:
o 0.0.0.0: Represents the default route, meaning traffic to any destination not in
the routing table will be sent through this gateway.
o 192.168.18.0: Refers to the network address for the local network.
2. Gateway:
o 192.168.18.1: The IP address of the gateway (router) for your network.
o 0.0.0.0: Indicates that no gateway is needed for traffic within the local network
(192.168.18.0/24).
3. Genmask:
o 0.0.0.0: A subnet mask of 0.0.0.0 means that the route applies to all possible
IP addresses (used for the default route).
o 255.255.255.0: The subnet mask for the local network, indicating a /24 network
(256 IP addresses).
4. Flags:
o UG: Indicates that the route is up (U) and that it uses a gateway (G).
o U: Indicates that the route is up.
5. Iface:
o eth0: The network interface associated with these routes (Ethernet).

In summary, the routing table directs traffic destined for the 192.168.18.0/24 network through
the eth0 interface without using a gateway, while all other traffic goes through the gateway at
192.168.18.1.

Prepared by Aamir Sohail


My IP 192.168.18.146 (18.146 is my IP) now there are 2 protocols
I. TCP: Transmission Control protocol
II. UDP: User Datagram Protocol

TCP:

o TCP establish connection between sender and receiver before sending data is transmitted.
They will check that the data is reliable and delivered in the correct order
o Reliability: It will check if any packet is lost they will retransmit them.
o Use Case: Web browsing (http/https), email(SMTP/IMAP) & file transfer (FTP)

UDP:

o UDP does not establish connection b/w sender & receiver before sending data is transmitted.
They will send data without any guarantees of delivery or correct order.
o Faster: It is faster but they don’t worry about that the data is arrived or not
o Use Case: We use this where we don’t care about reliability we only need speed like in video
streaming, Online Gaming etc.

In TCP & UDP there are 1 – 65535 ports in each these are ports, there are different ports like

File Transfer Protocol - FTP: To send file from one computer to another computer or download file
from server using there port 21.

FTP service Configuration


I. Go to control panel then click on program and features or uninstall a program then after that
click on the turn window features on or off.

Prepared by Aamir Sohail


II. Open the internet information services then FTP server and check the FTP Extensibility & FTP
Service.

Prepared by Aamir Sohail


III. Now we will open the port number and configure the services.
Search internet information services (IIS) manager (from window start and search)
Add FTP Site.

Now give the name and path.

Prepared by Aamir Sohail


Give the IP here 192.168.18.184 is my window host IP , port is 21, also check No SSL.

Prepared by Aamir Sohail


Now I will add a new user bcz we will add this user in next step, so right click on pc then manage then
local users and groups and then add the new user.

Now we will give the name and pass. And uncheck other and only check the password never expires.

Prepared by Aamir Sohail


Prepared by Aamir Sohail
Now the user is added.

Now we will come back to our previous steps so now we will add the user, like here I add user – aamirftp
and also give the permissions read and write, and also check the anonymous and basic. Click finish.

Prepared by Aamir Sohail


Now we will restart it

IV. Check the port is open or not. Using nmap

Prepared by Aamir Sohail


When a port is filtered its mean that nmap does not receive a response to a prob, its bcz of firewall
blocking the traffic to the port.

So now we will allow this port from firewall.

o Open control panel and then windows defender firewall.

o Advance settings

Prepared by Aamir Sohail


o Click inbound rules and then create rules

o Click port then next

Prepared by Aamir Sohail


o Port is 21

o Allow the connection and next

Prepared by Aamir Sohail


o Next

o Give name like I give FTP and then finish.

Prepared by Aamir Sohail


Now we will do it same for outbound rules

Outbound Rules

Prepared by Aamir Sohail


Prepared by Aamir Sohail
Now we will rescan it through nmap. Now the port is open.

Prepared by Aamir Sohail


Now we will access the FTP
Here i give the username which i created in my host which is aamitftp and then give there password
which i set when i making the user

Here we get the access but there is no files etc bcz we make it empty now we will add some files in the
server directory and also give the permissions.

The below is the folder which is empty.

Prepared by Aamir Sohail


Here I add file and image.

Now right click on ftp-server folder and click properties

Prepared by Aamir Sohail


Click on sharing then advance sharing

Check “share this folder” and then click “permissions”

Prepared by Aamir Sohail


Click on add

Click advance

Prepared by Aamir Sohail


Click on Find Now

Prepared by Aamir Sohail


Now check your user which we created and then double click it.

Prepared by Aamir Sohail


Now the user is added – click ok

Click on user and give all permissions and click apply.

Prepared by Aamir Sohail


Now we will again check ftp IP

If we need to download the file so will run this command

get ftp_testing_file.txt

So we maked a ftp service and share files.

Prepared by Aamir Sohail

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy