SlideShare a Scribd company logo
FTP
                           File Transfer Protocol


                    CIS 68C2
                    UNIX Network Administration



                             CIS68C2 UNIX Network Administration
Updated: 11/27/02                Copyright 2002 - Mike Cappella    1
FTP
! FTP – File Transfer Protocol
    quot; Allows upload and downloading of files
    quot; One of the oldest TCP/IP services
          quot; And still widely in use
    quot; Client/Server
    quot; Advantages over HTTP file transfer
          quot; Allows inspection of file tree, includes file sizes and timestamps
          quot; No HTML code required
    quot; Caution!
          quot; Improperly configured ftp servers are security risks


                                 CIS68C2 UNIX Network Administration
Updated: 11/27/02                    Copyright 2002 - Mike Cappella              2
FTP
! Two Primary File Transfer Modes
    quot; ASCII (plain text)
          quot; End-of-line translation occurs between platforms
          quot; Data is consider to be only 7 bits (high order bit is lost)
    quot; Binary image
          quot; Data is transferred raw (not interpreted)
    quot; Other modes (EBCDIC, local) are rarely ever used
    quot; Mode must be set before transfer begins
          quot; Many clients have an auto-select mode
                    quot; File suffix/name guides selection of transfer mode
          quot; Common mistake to transfer a binary file in ASCII mode
                    quot; The download is corrupted

                                        CIS68C2 UNIX Network Administration
Updated: 11/27/02                           Copyright 2002 - Mike Cappella    3
FTP
! FTP Communication
    quot; Uses 2 TCP ports: 20 (data) and 21 (command)
          quot; Data port defined by RFC to be the command port - 1
    quot; Client
          quot; Initiates command connection to server’s TCP port 21
          quot; Selects random high numbered port to use for data connection
          quot; Sends PORT command
                    quot; Includes client’s IP address and high numbered port
          quot; Listens for data connection on high numbered port
    quot; Server
          quot; Initiates data connection to client
                    quot; Uses IP and port number given by client’s PORT command
                                        CIS68C2 UNIX Network Administration
Updated: 11/27/02                           Copyright 2002 - Mike Cappella     4
FTP
! FTP – Single Connection
                           FTP Client
                           FTP Client
                    User
                    User
                                User
                                User
                             Interface
                              Interface
                                                                                FTP Server
                                                                                FTP Server
                               Protocol
                               Protocol         Command Connection
                                                                                    Protocol
                                                                                    Protocol
                             Interpreter
                              Interpreter                                         Interpreter
                                                                                   Interpreter
                                               TCP/random          TCP/21
                            Commands
                            Commands                                                Replies
                                                                                    Replies



                           Data Transfer
                           Data Transfer          Data Connection                Data Transfer
                                                                                 Data Transfer
                             Process
                             Process           TCP/random      TCP/20              Process
                                                                                   Process




                           File System
                           File System                                           File System
                                                                                 File System

                                          CIS68C2 UNIX Network Administration
Updated: 11/27/02                             Copyright 2002 - Mike Cappella                     5
FTP
! FTP Communication
    quot; PASV command
          quot; Requests server to return an IP / port number
                    quot; Client establishes the data connection, not the server
                    quot; Server listens on that port number for client’s connection
          quot; Allows FTP to…
                    quot; work through firewalls and NAT
                    quot; act as a proxy
                    quot; support site mirroring
          quot; Typically used instead of PORT command
                    quot; But both can be used to override both connection ends
                    quot; PASV mode is considerably more secure

                                         CIS68C2 UNIX Network Administration
Updated: 11/27/02                            Copyright 2002 - Mike Cappella        6
FTP
! FTP – Proxy Connection
                                                    proxy get
    FTP Client
    FTP Client                                                                                      proxy put

           User
           User
        Interface
         Interface
                                              FTP Server A
                                              FTP Server A                                        FTP Server B
                                                                                                  FTP Server B
                      Secondary Controller
                      Command Connection
         Protocol
         Protocol                                    Protocol
                                                     Protocol                                         Protocol
                                                                                                      Protocol
       Interpreter    TCP/random                   Interpreter                                      Interpreter
        Interpreter                                 Interpreter                         TCP/21       Interpreter
      Commands
      Commands                       TCP/21       Commands
                                                  Commands                                         Commands
                                                                                                   Commands
                       Primary Controller
                      Command Connection

     Data Transfer
     Data Transfer                               Data Transfer
                                                 Data Transfer           Data Connection           Data Transfer
                                                                                                   Data Transfer
       Process
       Process                                     Process
                                                   Process             TCP/random TCP/server         Process
                                                                                                     Process
                                                                                   B identified




                                                 File System
                                                 File System                                       File System
                                                                                                   File System

                                              CIS68C2 UNIX Network Administration
Updated: 11/27/02                                 Copyright 2002 - Mike Cappella                                   7
FTP
! FTP – Proxy Connection
    quot; Secondary server must support PASV command
          quot; It cannot initiate the data connection to FTP Server A
    quot; GET transfers from primary to secondary
    quot; PUT transfers from secondary to primary
    quot; Security Alert!
          quot; Proxy exposes the difficult to trace Bounce Attack
                    quot; Using proxy FTP to connect to WKS port (mail, news, etc) and
                      sending instructions
          quot; Eases brute force password guessing
          quot; 3rd party transfers are disabled by default on most modern servers

                                        CIS68C2 UNIX Network Administration
Updated: 11/27/02                           Copyright 2002 - Mike Cappella           8
wu-ftpd
! A leading, feature-rich FTP server implementation
    quot; Used by Red Hat and many other UNIX distributions
    quot; Makes distinction between 3 different types of users
          quot; Real Users
          quot; Guests
          quot; Anonymous Users

                                   Additional Features beyond RFC 959
            Advanced logging (commands, transfers)                 On-the-fly compression and archiving
              User classifications (type and location)                              Per-class limits
                    Per directory upload permissions                         Restricted guest accounts
            System wide and per directory messages.                                 Directory alias
                                cdpath                                             Filename filtering
                             Virtual hosts

                                             CIS68C2 UNIX Network Administration
Updated: 11/27/02                                Copyright 2002 - Mike Cappella                           9
wu-ftpd
! wu-ftpd User Types
    quot; Real Users
          quot; Login to ftp with real username and password
          quot; Can access entire disk structure
          quot; Security risk! - Use with extreme caution!
    quot; Guests
          quot; Login to ftp with real username and password
          quot; Chroot’ed to user’s home directory – cannot escape
    quot; Anonymous Users
          quot; User: anonymous or ftp; Password: your-email-address
          quot; Chroot’ed to common, public ftp directory

                               CIS68C2 UNIX Network Administration
Updated: 11/27/02                  Copyright 2002 - Mike Cappella    10
wu-ftpd
! Configuration Files
    quot; /etc/ftpaccess
          quot; Main configuration file for most settings
    quot; /etc/ftpconversions
          quot; Configuration file for on-the-fly conversions
    quot; Generally depreciated
          quot; /etc/ftphosts
                    quot; List of hosts allowed/denied ftp access
          quot; /etc/ftpusers
                    quot; List of useres allowed/denied ftp access



                                         CIS68C2 UNIX Network Administration
Updated: 11/27/02                            Copyright 2002 - Mike Cappella    11
Additional Information
! wu-ftp documentation
  quot; /usr/share/doc/wu-ftpd-*
! Many wu-ftpd related documents
  quot; http://www.wu-ftpd.org/
  quot; http://www.wu-ftpd.org/rfc/
  quot; http://www.landfield.com/wu-ftpd/
! CERT FTP Articles
  quot; Anonymous FTP Abuses & Configuration Guidelines
          quot; http://www.cert.org/tech_tips/anonymous_ftp_abuses.html
          quot; http://www.cert.org/tech_tips/anonymous_ftp_config.html
    quot; Bounce Attacks
          quot; http://www.cert.org/tech_tips/ftp_port_attacks.html
! RFCs
  quot; 959             – FTP Protocol
  quot; 2577            – FTP Security Considerations
                                   CIS68C2 UNIX Network Administration
Updated: 11/27/02                      Copyright 2002 - Mike Cappella    12

More Related Content

What's hot

(Ftp) file transfer protocol
(Ftp)   file transfer protocol(Ftp)   file transfer protocol
(Ftp) file transfer protocol
Gouasmia Zakaria
 
Open Flow Tutorial Series - Set 1
Open Flow Tutorial Series - Set 1Open Flow Tutorial Series - Set 1
Open Flow Tutorial Series - Set 1
Radhika Hirannaiah
 
File transfer protocol (ftp)
File transfer protocol (ftp)File transfer protocol (ftp)
File transfer protocol (ftp)
Cort1026
 
File transfer protocol
File transfer protocolFile transfer protocol
File transfer protocol
Amandeep Kaur
 
FTP Conflict troubleshooting & MINI-LINK TN FTP
FTP Conflict troubleshooting & MINI-LINK TN FTPFTP Conflict troubleshooting & MINI-LINK TN FTP
FTP Conflict troubleshooting & MINI-LINK TN FTP
Mohamed Abd El Razek Bakry
 
Ftp hari edu
Ftp hari eduFtp hari edu
SDN - OpenFlow protocol
SDN - OpenFlow protocolSDN - OpenFlow protocol
SDN - OpenFlow protocol
Ulf Marxen
 
FTP & TFTP
FTP & TFTPFTP & TFTP
FTP & TFTP
NetProtocol Xpert
 
File Transfer Protocol(FTP)
File Transfer Protocol(FTP)File Transfer Protocol(FTP)
File Transfer Protocol(FTP)
Varnit Yadav
 
Using an FTP client - Client server computing
Using an FTP client -  Client server computingUsing an FTP client -  Client server computing
Using an FTP client - Client server computing
lordmwesh
 
Solarwinds port requirement
Solarwinds port requirementSolarwinds port requirement
Solarwinds port requirement
Ezahir Amer
 
file transfer and access utilities
file transfer and access utilitiesfile transfer and access utilities
file transfer and access utilities
tumetr1
 
Ftp tftp
Ftp tftpFtp tftp
Ftp tftp
Prabhat gangwar
 
Ft pv2(1)
Ft pv2(1)Ft pv2(1)
Ftp
FtpFtp
Ftp
ARYA TM
 
Ftp server
Ftp serverFtp server
Ftp server
pawnbeeta
 
FTP - File Transfer Protocol
FTP - File Transfer ProtocolFTP - File Transfer Protocol
FTP - File Transfer Protocol
Peter R. Egli
 
TFTP
TFTPTFTP
TFTP - Trivial File Transfer Protocol
TFTP - Trivial File Transfer ProtocolTFTP - Trivial File Transfer Protocol
TFTP - Trivial File Transfer Protocol
Peter R. Egli
 
Tftp client server communication
Tftp client server communicationTftp client server communication
Tftp client server communication
Uday Sharma
 

What's hot (20)

(Ftp) file transfer protocol
(Ftp)   file transfer protocol(Ftp)   file transfer protocol
(Ftp) file transfer protocol
 
Open Flow Tutorial Series - Set 1
Open Flow Tutorial Series - Set 1Open Flow Tutorial Series - Set 1
Open Flow Tutorial Series - Set 1
 
File transfer protocol (ftp)
File transfer protocol (ftp)File transfer protocol (ftp)
File transfer protocol (ftp)
 
File transfer protocol
File transfer protocolFile transfer protocol
File transfer protocol
 
FTP Conflict troubleshooting & MINI-LINK TN FTP
FTP Conflict troubleshooting & MINI-LINK TN FTPFTP Conflict troubleshooting & MINI-LINK TN FTP
FTP Conflict troubleshooting & MINI-LINK TN FTP
 
Ftp hari edu
Ftp hari eduFtp hari edu
Ftp hari edu
 
SDN - OpenFlow protocol
SDN - OpenFlow protocolSDN - OpenFlow protocol
SDN - OpenFlow protocol
 
FTP & TFTP
FTP & TFTPFTP & TFTP
FTP & TFTP
 
File Transfer Protocol(FTP)
File Transfer Protocol(FTP)File Transfer Protocol(FTP)
File Transfer Protocol(FTP)
 
Using an FTP client - Client server computing
Using an FTP client -  Client server computingUsing an FTP client -  Client server computing
Using an FTP client - Client server computing
 
Solarwinds port requirement
Solarwinds port requirementSolarwinds port requirement
Solarwinds port requirement
 
file transfer and access utilities
file transfer and access utilitiesfile transfer and access utilities
file transfer and access utilities
 
Ftp tftp
Ftp tftpFtp tftp
Ftp tftp
 
Ft pv2(1)
Ft pv2(1)Ft pv2(1)
Ft pv2(1)
 
Ftp
FtpFtp
Ftp
 
Ftp server
Ftp serverFtp server
Ftp server
 
FTP - File Transfer Protocol
FTP - File Transfer ProtocolFTP - File Transfer Protocol
FTP - File Transfer Protocol
 
TFTP
TFTPTFTP
TFTP
 
TFTP - Trivial File Transfer Protocol
TFTP - Trivial File Transfer ProtocolTFTP - Trivial File Transfer Protocol
TFTP - Trivial File Transfer Protocol
 
Tftp client server communication
Tftp client server communicationTftp client server communication
Tftp client server communication
 

Similar to 10 Lecture Ftp

File Transfer Protocol
File Transfer ProtocolFile Transfer Protocol
File Transfer Protocol
guest029bcd
 
ARM LPC2300/LPC2400 TCP/IP Stack Porting
ARM LPC2300/LPC2400 TCP/IP Stack PortingARM LPC2300/LPC2400 TCP/IP Stack Porting
ARM LPC2300/LPC2400 TCP/IP Stack Porting
Mathivanan Elangovan
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
Whitireia New Zealand
 
3rd edition chapter2
3rd edition chapter23rd edition chapter2
3rd edition chapter2
nguyễn cầm
 
App layer
App layerApp layer
App layer
khushali_modi
 
TCP/IP – Transmission Control Protocol/ Internet Protocol
TCP/IP – Transmission Control Protocol/ Internet ProtocolTCP/IP – Transmission Control Protocol/ Internet Protocol
TCP/IP – Transmission Control Protocol/ Internet Protocol
We Learn - A Continuous Learning Forum from Welingkar's Distance Learning Program.
 
protocols (1).pptx
protocols (1).pptxprotocols (1).pptx
protocols (1).pptx
ALLIPURAMLAVANYA21K9
 
Application Protocol
Application Protocol Application Protocol
Application Protocol
Chandnigupta80
 
Cisco discovery d homesb module 6 - v.4 in english.
Cisco discovery   d homesb module 6 - v.4 in english.Cisco discovery   d homesb module 6 - v.4 in english.
Cisco discovery d homesb module 6 - v.4 in english.
igede tirtanata
 
Application Layer.pptand documents of co
Application Layer.pptand documents of coApplication Layer.pptand documents of co
Application Layer.pptand documents of co
itxminahil29
 
Internet Internet Protocols.pptx( technology)
Internet Internet Protocols.pptx( technology)Internet Internet Protocols.pptx( technology)
Internet Internet Protocols.pptx( technology)
ujjawalr9027
 
Computer network coe351- part2- final
Computer network coe351- part2- finalComputer network coe351- part2- final
Computer network coe351- part2- final
Taymoor Nazmy
 
Np unit1
Np unit1Np unit1
Np unit1
vamsitricks
 
FTP-PPT.pptx
FTP-PPT.pptxFTP-PPT.pptx
FTP-PPT.pptx
Memerhub1
 
Basic to advance protocols
Basic to advance protocolsBasic to advance protocols
Basic to advance protocols
Varinder Singh Walia
 
Chapter2 application
Chapter2 applicationChapter2 application
Chapter2 application
Van Quang Tran
 
Protocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol SuiteProtocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol Suite
Atharaw Deshmukh
 
Meeting 6 : ftp
Meeting 6 : ftpMeeting 6 : ftp
Meeting 6 : ftp
Syaiful Ahdan
 
Web Dev Research
Web Dev ResearchWeb Dev Research
Web Dev Research
nathomas82
 
protocol and the TCP/IP suite Chapter 02
 protocol and the TCP/IP suite Chapter 02 protocol and the TCP/IP suite Chapter 02
protocol and the TCP/IP suite Chapter 02
daniel ayalew
 

Similar to 10 Lecture Ftp (20)

File Transfer Protocol
File Transfer ProtocolFile Transfer Protocol
File Transfer Protocol
 
ARM LPC2300/LPC2400 TCP/IP Stack Porting
ARM LPC2300/LPC2400 TCP/IP Stack PortingARM LPC2300/LPC2400 TCP/IP Stack Porting
ARM LPC2300/LPC2400 TCP/IP Stack Porting
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
 
3rd edition chapter2
3rd edition chapter23rd edition chapter2
3rd edition chapter2
 
App layer
App layerApp layer
App layer
 
TCP/IP – Transmission Control Protocol/ Internet Protocol
TCP/IP – Transmission Control Protocol/ Internet ProtocolTCP/IP – Transmission Control Protocol/ Internet Protocol
TCP/IP – Transmission Control Protocol/ Internet Protocol
 
protocols (1).pptx
protocols (1).pptxprotocols (1).pptx
protocols (1).pptx
 
Application Protocol
Application Protocol Application Protocol
Application Protocol
 
Cisco discovery d homesb module 6 - v.4 in english.
Cisco discovery   d homesb module 6 - v.4 in english.Cisco discovery   d homesb module 6 - v.4 in english.
Cisco discovery d homesb module 6 - v.4 in english.
 
Application Layer.pptand documents of co
Application Layer.pptand documents of coApplication Layer.pptand documents of co
Application Layer.pptand documents of co
 
Internet Internet Protocols.pptx( technology)
Internet Internet Protocols.pptx( technology)Internet Internet Protocols.pptx( technology)
Internet Internet Protocols.pptx( technology)
 
Computer network coe351- part2- final
Computer network coe351- part2- finalComputer network coe351- part2- final
Computer network coe351- part2- final
 
Np unit1
Np unit1Np unit1
Np unit1
 
FTP-PPT.pptx
FTP-PPT.pptxFTP-PPT.pptx
FTP-PPT.pptx
 
Basic to advance protocols
Basic to advance protocolsBasic to advance protocols
Basic to advance protocols
 
Chapter2 application
Chapter2 applicationChapter2 application
Chapter2 application
 
Protocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol SuiteProtocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol Suite
 
Meeting 6 : ftp
Meeting 6 : ftpMeeting 6 : ftp
Meeting 6 : ftp
 
Web Dev Research
Web Dev ResearchWeb Dev Research
Web Dev Research
 
protocol and the TCP/IP suite Chapter 02
 protocol and the TCP/IP suite Chapter 02 protocol and the TCP/IP suite Chapter 02
protocol and the TCP/IP suite Chapter 02
 

More from Eri Alam

Produk global final jadiiii
Produk global final jadiiiiProduk global final jadiiii
Produk global final jadiiiiEri Alam
 
Overview VOIP
Overview VOIPOverview VOIP
Overview VOIP
Eri Alam
 
overview VSAT
overview VSAToverview VSAT
overview VSAT
Eri Alam
 
NOC
NOCNOC
Smtp
SmtpSmtp
Smtp
Eri Alam
 
Http
HttpHttp
Http
Eri Alam
 
Tcpip Suite
Tcpip SuiteTcpip Suite
Tcpip Suite
Eri Alam
 
Tcp Udp
Tcp UdpTcp Udp
Tcp Udp
Eri Alam
 
Ip Address
Ip AddressIp Address
Ip Address
Eri Alam
 
Stti The Building Blocks
Stti The Building BlocksStti The Building Blocks
Stti The Building Blocks
Eri Alam
 
Wsdl Bahankuliah
Wsdl BahankuliahWsdl Bahankuliah
Wsdl Bahankuliah
Eri Alam
 
Web Service
Web ServiceWeb Service
Web Service
Eri Alam
 
Soap
SoapSoap
Soap
Eri Alam
 
Ip Address Dan Subnetting
Ip Address Dan SubnettingIp Address Dan Subnetting
Ip Address Dan SubnettingEri Alam
 

More from Eri Alam (14)

Produk global final jadiiii
Produk global final jadiiiiProduk global final jadiiii
Produk global final jadiiii
 
Overview VOIP
Overview VOIPOverview VOIP
Overview VOIP
 
overview VSAT
overview VSAToverview VSAT
overview VSAT
 
NOC
NOCNOC
NOC
 
Smtp
SmtpSmtp
Smtp
 
Http
HttpHttp
Http
 
Tcpip Suite
Tcpip SuiteTcpip Suite
Tcpip Suite
 
Tcp Udp
Tcp UdpTcp Udp
Tcp Udp
 
Ip Address
Ip AddressIp Address
Ip Address
 
Stti The Building Blocks
Stti The Building BlocksStti The Building Blocks
Stti The Building Blocks
 
Wsdl Bahankuliah
Wsdl BahankuliahWsdl Bahankuliah
Wsdl Bahankuliah
 
Web Service
Web ServiceWeb Service
Web Service
 
Soap
SoapSoap
Soap
 
Ip Address Dan Subnetting
Ip Address Dan SubnettingIp Address Dan Subnetting
Ip Address Dan Subnetting
 

Recently uploaded

Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
Ivo Velitchkov
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
Fwdays
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
Jason Yip
 
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
"Scaling RAG Applications to serve millions of users",  Kevin Goedecke"Scaling RAG Applications to serve millions of users",  Kevin Goedecke
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
Fwdays
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
Neo4j
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
c5vrf27qcz
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
ScyllaDB
 
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
DanBrown980551
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
christinelarrosa
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
Javier Junquera
 
A Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's ArchitectureA Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's Architecture
ScyllaDB
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
operationspcvita
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
Christine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptxChristine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptx
christinelarrosa
 
Session 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdfSession 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdf
UiPathCommunity
 

Recently uploaded (20)

Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
 
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
"Scaling RAG Applications to serve millions of users",  Kevin Goedecke"Scaling RAG Applications to serve millions of users",  Kevin Goedecke
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
 
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
 
A Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's ArchitectureA Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's Architecture
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
Christine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptxChristine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptx
 
Session 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdfSession 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdf
 

10 Lecture Ftp

  • 1. FTP File Transfer Protocol CIS 68C2 UNIX Network Administration CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 1
  • 2. FTP ! FTP – File Transfer Protocol quot; Allows upload and downloading of files quot; One of the oldest TCP/IP services quot; And still widely in use quot; Client/Server quot; Advantages over HTTP file transfer quot; Allows inspection of file tree, includes file sizes and timestamps quot; No HTML code required quot; Caution! quot; Improperly configured ftp servers are security risks CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 2
  • 3. FTP ! Two Primary File Transfer Modes quot; ASCII (plain text) quot; End-of-line translation occurs between platforms quot; Data is consider to be only 7 bits (high order bit is lost) quot; Binary image quot; Data is transferred raw (not interpreted) quot; Other modes (EBCDIC, local) are rarely ever used quot; Mode must be set before transfer begins quot; Many clients have an auto-select mode quot; File suffix/name guides selection of transfer mode quot; Common mistake to transfer a binary file in ASCII mode quot; The download is corrupted CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 3
  • 4. FTP ! FTP Communication quot; Uses 2 TCP ports: 20 (data) and 21 (command) quot; Data port defined by RFC to be the command port - 1 quot; Client quot; Initiates command connection to server’s TCP port 21 quot; Selects random high numbered port to use for data connection quot; Sends PORT command quot; Includes client’s IP address and high numbered port quot; Listens for data connection on high numbered port quot; Server quot; Initiates data connection to client quot; Uses IP and port number given by client’s PORT command CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 4
  • 5. FTP ! FTP – Single Connection FTP Client FTP Client User User User User Interface Interface FTP Server FTP Server Protocol Protocol Command Connection Protocol Protocol Interpreter Interpreter Interpreter Interpreter TCP/random TCP/21 Commands Commands Replies Replies Data Transfer Data Transfer Data Connection Data Transfer Data Transfer Process Process TCP/random TCP/20 Process Process File System File System File System File System CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 5
  • 6. FTP ! FTP Communication quot; PASV command quot; Requests server to return an IP / port number quot; Client establishes the data connection, not the server quot; Server listens on that port number for client’s connection quot; Allows FTP to… quot; work through firewalls and NAT quot; act as a proxy quot; support site mirroring quot; Typically used instead of PORT command quot; But both can be used to override both connection ends quot; PASV mode is considerably more secure CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 6
  • 7. FTP ! FTP – Proxy Connection proxy get FTP Client FTP Client proxy put User User Interface Interface FTP Server A FTP Server A FTP Server B FTP Server B Secondary Controller Command Connection Protocol Protocol Protocol Protocol Protocol Protocol Interpreter TCP/random Interpreter Interpreter Interpreter Interpreter TCP/21 Interpreter Commands Commands TCP/21 Commands Commands Commands Commands Primary Controller Command Connection Data Transfer Data Transfer Data Transfer Data Transfer Data Connection Data Transfer Data Transfer Process Process Process Process TCP/random TCP/server Process Process B identified File System File System File System File System CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 7
  • 8. FTP ! FTP – Proxy Connection quot; Secondary server must support PASV command quot; It cannot initiate the data connection to FTP Server A quot; GET transfers from primary to secondary quot; PUT transfers from secondary to primary quot; Security Alert! quot; Proxy exposes the difficult to trace Bounce Attack quot; Using proxy FTP to connect to WKS port (mail, news, etc) and sending instructions quot; Eases brute force password guessing quot; 3rd party transfers are disabled by default on most modern servers CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 8
  • 9. wu-ftpd ! A leading, feature-rich FTP server implementation quot; Used by Red Hat and many other UNIX distributions quot; Makes distinction between 3 different types of users quot; Real Users quot; Guests quot; Anonymous Users Additional Features beyond RFC 959 Advanced logging (commands, transfers) On-the-fly compression and archiving User classifications (type and location) Per-class limits Per directory upload permissions Restricted guest accounts System wide and per directory messages. Directory alias cdpath Filename filtering Virtual hosts CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 9
  • 10. wu-ftpd ! wu-ftpd User Types quot; Real Users quot; Login to ftp with real username and password quot; Can access entire disk structure quot; Security risk! - Use with extreme caution! quot; Guests quot; Login to ftp with real username and password quot; Chroot’ed to user’s home directory – cannot escape quot; Anonymous Users quot; User: anonymous or ftp; Password: your-email-address quot; Chroot’ed to common, public ftp directory CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 10
  • 11. wu-ftpd ! Configuration Files quot; /etc/ftpaccess quot; Main configuration file for most settings quot; /etc/ftpconversions quot; Configuration file for on-the-fly conversions quot; Generally depreciated quot; /etc/ftphosts quot; List of hosts allowed/denied ftp access quot; /etc/ftpusers quot; List of useres allowed/denied ftp access CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 11
  • 12. Additional Information ! wu-ftp documentation quot; /usr/share/doc/wu-ftpd-* ! Many wu-ftpd related documents quot; http://www.wu-ftpd.org/ quot; http://www.wu-ftpd.org/rfc/ quot; http://www.landfield.com/wu-ftpd/ ! CERT FTP Articles quot; Anonymous FTP Abuses & Configuration Guidelines quot; http://www.cert.org/tech_tips/anonymous_ftp_abuses.html quot; http://www.cert.org/tech_tips/anonymous_ftp_config.html quot; Bounce Attacks quot; http://www.cert.org/tech_tips/ftp_port_attacks.html ! RFCs quot; 959 – FTP Protocol quot; 2577 – FTP Security Considerations CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 12