SlideShare a Scribd company logo
www.glcnetworks.com
Automatic
backup via FTP
GLC Webinar,
1 Feb 2022
Achmad Mardiansyah
Een Pahlefi
1
Automatic backup
www.glcnetworks.com
Agenda
● Introduction
● Review prerequisite knowledge
● FTP protocol
● Mikrotik FTP support
● Live practice
● Q & A
2
www.glcnetworks.com
introduction
3
www.glcnetworks.com
What is GLC?
● Garda Lintas Cakrawala (www.glcnetworks.com)
● Based in Bandung, Indonesia
● Areas: Training, IT Consulting
● Certified partner for: Mikrotik, Ubiquity, Linux foundation
● Product: GLC radius manager
● Regular event
4
www.glcnetworks.com
Trainer Introduction
● Name: Achmad Mardiansyah
● Base: bandung, Indonesia
● Linux user since 1999, mikrotik user since 2007, UBNT
2011
● Mikrotik Certified Trainer
(MTCNA/RE/WE/UME/INE/TCE/IPv6)
● Mikrotik/Linux Certified Consultant
● Website contributor: achmadjournal.com, mikrotik.tips,
asysadmin.tips
● More info:
http://au.linkedin.com/in/achmadmardiansyah
5
www.glcnetworks.com
Past experience
6
● 2020-2022 (Congo DRC, PNG, Malaysia): network
support, radius/billing integration
● 2019, Congo (DRC): build a wireless ISP from
ground-up
● 2018, Malaysia: network revamp, develop billing
solution and integration, setup dynamic routing
● 2017, Libya (north africa): remote wireless migration
for a new Wireless ISP
● 2016, United Kingdom: workshop for wireless ISP,
migrating a bridged to routed network
www.glcnetworks.com
About GLC webinar?
● First webinar: january 1, 2010 (title:
tahun baru bersama solaris - new year
with solaris OS)
● As a sharing event with various topics:
linux, networking, wireless, database,
programming, etc
● Regular schedule
● Irregular schedule: as needed
● Checking schedule:
http://www.glcnetworks.com/schedule
● You are invited to be a presenter
○ No need to be an expert
○ This is a forum for sharing: knowledge,
experiences, information
7
www.glcnetworks.com
Please introduce yourself
● Your name
● Your company/university?
● Your networking experience?
● Your mikrotik experience?
● Your expectation from this course?
8
www.glcnetworks.com
Prerequisite
● This presentation requires some prerequisite knowledge
● We assume you already know:
○ Computer networking
○ Mikrotik administration
9
www.glcnetworks.com
Review prerequisite knowledge
10
www.glcnetworks.com
7 OSI layer & protocol
11
● OSI layer Is a conceptual model from ISO
(International Standard Organization) for project
OSI (Open System Interconnection)
● When you send a message with a courier, you
need to add more info to get your message arrived
at the destination (This process is called
encapsulation)
● What is protocol
○ Is a set of rules for communication
○ Available on each layer
● Communication consist of series encapsulation
○ SDU: service data unit (before PDU)
○ PDU: protocol data unit (after header is added)
www.glcnetworks.com
Layered model (TCP/IP vs ISO) and encapsulation
12
/ datagram
www.glcnetworks.com
Layer 4 header (which one is TCP?)
13
www.glcnetworks.com
Layer 3 header (which one is IPv4?)
14
www.glcnetworks.com
Ethernet header (which is the MTU?)
15
www.glcnetworks.com
802.11 header
16
www.glcnetworks.com
Did you notice?
● There is a big overhead on encapsulation process
● More encapsulation means less payload?
17
www.glcnetworks.com
File Transfer Protocol
18
www.glcnetworks.com
File Transfer Protocol (FTP)
● RFC756 (1980) -> rfc959 (1985)
● Protocol for file transfer
● Plain text
● Client server architecture
● port : TCP:21
● Mode:
○ ACTIVE
○ PASSIVE
19
www.glcnetworks.com
FTP Communication and data transfer
● ACTIVE MODE
○ Server actively connect to client address using port 20
● PASSIVE MODE
○ Only use port 21
○ Recommended if the server/client behind NAT
○ Recommended if firewall blocks incoming connect to clients
20
www.glcnetworks.com
FTP data types
● ASCII (TYPE A): Used for text
● Image (TYPE I, commonly called Binary mode)
● EBCDIC (TYPE E): Used for plain text between hosts using the EBCDIC
character set.
● Local (TYPE L n): Designed to support file transfer between machines which
do not use 8-bit bytes, e.g. 36-bit systems such as DEC PDP-10s.
21
www.glcnetworks.com
File structure
● F or FILE structure (stream-oriented). Files are viewed as an arbitrary
sequence of bytes, characters or words.
● R or RECORD structure (record-oriented). Files are viewed as divided into
records, which may be fixed or variable length.
● P or PAGE structure (page-oriented). Files are divided into pages, which may
either contain data or metadata; each page may also have a header giving
various attributes.
●
22
www.glcnetworks.com
Data transfer modes
● Stream mode (MODE S): Data is sent as a continuous stream, relieving FTP
from doing any processing. Rather, all processing is left up to TCP. No
End-of-file indicator is needed, unless the data is divided into records.
● Block mode (MODE B): Designed primarily for transferring record-oriented
files (STRU R), although can also be used to transfer stream-oriented (STRU
F) text files. FTP puts each record (or line) of data into several blocks (block
header, byte count, and data field) and then passes it on to TCP.[9]
● Compressed mode (MODE C): Extends MODE B with data compression
using run-length encoding.
23
www.glcnetworks.com
Authentication
● Anonymous
○ Aka. public FTP service
○ Everyone can access
○ Server can configure if anonymous FTP can write data or not
● User authentication
○ Requires username and password
Notes:
● No encryption
24
www.glcnetworks.com
Security improvements
● FTPS
○ FTP service with encryption (public key and private key)
○ Port: 990 / 21
○ Can be implicit or explicit encryption
● SFTP
○ FTP over SSH service
○ Port 22 (SSH port)
25
www.glcnetworks.com
FTP stack
● Server:
○ Pureftp
○ Wsftp
○ Etc
● Client:
○ Cli
■ Ftp, mc
○ GUI
■ Filezilla
■ Winscp
■ etc
26
www.glcnetworks.com
FTP commands
● get/mget
● put/mput
● open/close
● cd/lcd
● mkdir/rmdir
● ls
● mode
● passive
● bye
27
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 06:07. Server port: 21.
220-This is a private system - No anonymous login
220 You will be disconnected after 15 minutes of inactivity.
Name (localhost:root): ftpuser1
331 User ftpuser1 OK. Password required
Password:
230 OK. Current directory is /home/ftpuser1
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ?
Commands may be abbreviated. Commands are:
! dir mdelete qc site
$ disconnect mdir sendport size
account exit mget put status
append form mkdir pwd struct
ascii get mls quit system
bell glob mode quote sunique
binary hash modtime recv tenex
bye help mput reget tick
case idle newer rstatus trace
cd image nmap rhelp type
cdup ipany nlist rename user
chmod ipv4 ntrans reset umask
close ipv6 open restart verbose
cr lcd prompt rmdir ?
delete ls passive runique
debug macdef proxy send
ftp>
www.glcnetworks.com
Mikrotik FTP support
28
www.glcnetworks.com
Mikrotik FTP support
● As an FTP server
○ Ip services
● As FTP client
○ Via CLI (fetch)
29
www.glcnetworks.com
LIVE practice
30
www.glcnetworks.com
preparation
● SSH client
● SSH parameters
○ SSH address
○ SSH port
○ SSH username
○ SSH password
31
www.glcnetworks.com
Q & A
32
www.glcnetworks.com
Interested? Just come to our training...
● Topics are arranged in systematic and logical way
● You will learn from experienced teacher
● Not only learn the materials, but also sharing experiences, best-practices, and
networking
33
www.glcnetworks.com
End of slides
● Thank you for your attention
● Please submit your feedback: http://bit.ly/glcfeedback
● Find our further event on our website : https://www.glcnetworks.com/en/
● Like our facebook page: https://www.facebook.com/glcnetworks
● Slide: https://www.slideshare.net/glcnetworks/
● Discord (bahasa indonesia): (https://discord.gg/6MZ3KUHHBX)
● Recording (youtube): https://www.youtube.com/c/GLCNetworks
● Stay tune with our schedule
● Any questions?
34

More Related Content

What's hot (20)

PDF
Network Monitoring with The Dude and Whatsapp
GLC Networks
 
PDF
Using Zettabyte Filesystem (ZFS)
GLC Networks
 
PDF
MTCNA : Intro to RouterOS - Part 1
GLC Networks
 
PDF
Voice Services, From Circuit Switch to VoIP
GLC Networks
 
PDF
MPLS on Router OS V7 - Part 1
GLC Networks
 
PDF
Radio Optimization In Telco - Part 1
GLC Networks
 
PDF
OSPF On Router OS7
GLC Networks
 
PDF
ACL on Linux - Part 1
GLC Networks
 
PDF
Layer 7 Firewall on Mikrotik
GLC Networks
 
PDF
Provide Internet Services Using GPON
GLC Networks
 
PDF
Using Control-Webpanel for Hosting Service - Part 1
GLC Networks
 
PDF
Running Moodle for High Concurrent Users
GLC Networks
 
PDF
Troubleshooting Layer 2 Ethernet Problem: Loop, Broadcast, Security
GLC Networks
 
PDF
Building Local-loop Services for Customers
GLC Networks
 
PDF
CCNA : Intro to Cisco IOS - Part 1
GLC Networks
 
PDF
Network LACP/Bonding/Teaming with Mikrotik
GLC Networks
 
PDF
Telecommunication Evolution
GLC Networks
 
PDF
Networking in Telecommunication (signalling, tcp, ucp, ss7, sctp, sigtran)
GLC Networks
 
PDF
Up and Running SSH Service - Part 1
GLC Networks
 
PDF
Machine Learning with Python
GLC Networks
 
Network Monitoring with The Dude and Whatsapp
GLC Networks
 
Using Zettabyte Filesystem (ZFS)
GLC Networks
 
MTCNA : Intro to RouterOS - Part 1
GLC Networks
 
Voice Services, From Circuit Switch to VoIP
GLC Networks
 
MPLS on Router OS V7 - Part 1
GLC Networks
 
Radio Optimization In Telco - Part 1
GLC Networks
 
OSPF On Router OS7
GLC Networks
 
ACL on Linux - Part 1
GLC Networks
 
Layer 7 Firewall on Mikrotik
GLC Networks
 
Provide Internet Services Using GPON
GLC Networks
 
Using Control-Webpanel for Hosting Service - Part 1
GLC Networks
 
Running Moodle for High Concurrent Users
GLC Networks
 
Troubleshooting Layer 2 Ethernet Problem: Loop, Broadcast, Security
GLC Networks
 
Building Local-loop Services for Customers
GLC Networks
 
CCNA : Intro to Cisco IOS - Part 1
GLC Networks
 
Network LACP/Bonding/Teaming with Mikrotik
GLC Networks
 
Telecommunication Evolution
GLC Networks
 
Networking in Telecommunication (signalling, tcp, ucp, ss7, sctp, sigtran)
GLC Networks
 
Up and Running SSH Service - Part 1
GLC Networks
 
Machine Learning with Python
GLC Networks
 

Similar to Automatic Backup via FTP - Part 1 (20)

PDF
Mikrotik Hotspot
GLC Networks
 
PDF
Using protocol analyzer on mikrotik
Achmad Mardiansyah
 
PDF
Mikrotik Bridge Deep Dive
GLC Networks
 
PDF
Using Mikrotik Switch Features to Improve Your Network
GLC Networks
 
PDF
BGP Services IP Transit vs IP Peering
GLC Networks
 
PDF
Queue Type on Mikrotik
GLC Networks
 
PDF
Controlling Access Between Devices in the same Layer 2 Segment
GLC Networks
 
PDF
RouterOS Migration From v6 to v7
GLC Networks
 
PDF
Socket Programming with Python
GLC Networks
 
PDF
Stable OSPF: choosing network type.pdf
GLC Networks
 
PDF
Gluster dev session #6 understanding gluster's network communication layer
Pranith Karampuri
 
PDF
Trusted Email Server DKIM, SPF, DMARC, RDNS
GLC Networks
 
PDF
Firewall mangle PBR: steering outbound path similar to inbound
GLC Networks
 
PDF
Tuning OSPF: Bidirectional Forwarding Detection (BFD)
GLC Networks
 
PDF
Steering traffic in OSPF: Interface cost
GLC Networks
 
PDF
Routing fundamentals with mikrotik
Achmad Mardiansyah
 
PDF
IPv6 with Mikrotik
GLC Networks
 
PDF
Tuning OSPF: Prefix Aggregate
GLC Networks
 
PDF
Mikrotik fasttrack
Achmad Mardiansyah
 
PDF
Mikrotik Fastpath vs Fasttrack
GLC Networks
 
Mikrotik Hotspot
GLC Networks
 
Using protocol analyzer on mikrotik
Achmad Mardiansyah
 
Mikrotik Bridge Deep Dive
GLC Networks
 
Using Mikrotik Switch Features to Improve Your Network
GLC Networks
 
BGP Services IP Transit vs IP Peering
GLC Networks
 
Queue Type on Mikrotik
GLC Networks
 
Controlling Access Between Devices in the same Layer 2 Segment
GLC Networks
 
RouterOS Migration From v6 to v7
GLC Networks
 
Socket Programming with Python
GLC Networks
 
Stable OSPF: choosing network type.pdf
GLC Networks
 
Gluster dev session #6 understanding gluster's network communication layer
Pranith Karampuri
 
Trusted Email Server DKIM, SPF, DMARC, RDNS
GLC Networks
 
Firewall mangle PBR: steering outbound path similar to inbound
GLC Networks
 
Tuning OSPF: Bidirectional Forwarding Detection (BFD)
GLC Networks
 
Steering traffic in OSPF: Interface cost
GLC Networks
 
Routing fundamentals with mikrotik
Achmad Mardiansyah
 
IPv6 with Mikrotik
GLC Networks
 
Tuning OSPF: Prefix Aggregate
GLC Networks
 
Mikrotik fasttrack
Achmad Mardiansyah
 
Mikrotik Fastpath vs Fasttrack
GLC Networks
 
Ad

More from GLC Networks (12)

PDF
Internal BGP tuning: Mesh peering to avoid loop
GLC Networks
 
PDF
BGP tuning: Peer with loopback
GLC Networks
 
PDF
BGP security tuning: pull-up route
GLC Networks
 
PDF
BGP troubleshooting: route origin
GLC Networks
 
PDF
Tuning OSPF: area hierarchy, LSA, and area type
GLC Networks
 
PDF
GIT as Mikrotik Configuration Management
GLC Networks
 
PDF
Policy Based Routing with Indirect BGP - Part 2
GLC Networks
 
PDF
Policy Based Routing with Indirect BGP - Part 1
GLC Networks
 
PPTX
Automatic Backup via FTP - Part 2
GLC Networks
 
PDF
MPLS on Router OS V7 - Part 2
GLC Networks
 
PDF
BGP on RouterOS7 - Part 2
GLC Networks
 
PDF
OSPF On Router OS7 - Part 2
GLC Networks
 
Internal BGP tuning: Mesh peering to avoid loop
GLC Networks
 
BGP tuning: Peer with loopback
GLC Networks
 
BGP security tuning: pull-up route
GLC Networks
 
BGP troubleshooting: route origin
GLC Networks
 
Tuning OSPF: area hierarchy, LSA, and area type
GLC Networks
 
GIT as Mikrotik Configuration Management
GLC Networks
 
Policy Based Routing with Indirect BGP - Part 2
GLC Networks
 
Policy Based Routing with Indirect BGP - Part 1
GLC Networks
 
Automatic Backup via FTP - Part 2
GLC Networks
 
MPLS on Router OS V7 - Part 2
GLC Networks
 
BGP on RouterOS7 - Part 2
GLC Networks
 
OSPF On Router OS7 - Part 2
GLC Networks
 
Ad

Recently uploaded (20)

DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Biography of Daniel Podor.pdf
Daniel Podor
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 

Automatic Backup via FTP - Part 1

  • 1. www.glcnetworks.com Automatic backup via FTP GLC Webinar, 1 Feb 2022 Achmad Mardiansyah Een Pahlefi 1 Automatic backup
  • 2. www.glcnetworks.com Agenda ● Introduction ● Review prerequisite knowledge ● FTP protocol ● Mikrotik FTP support ● Live practice ● Q & A 2
  • 4. www.glcnetworks.com What is GLC? ● Garda Lintas Cakrawala (www.glcnetworks.com) ● Based in Bandung, Indonesia ● Areas: Training, IT Consulting ● Certified partner for: Mikrotik, Ubiquity, Linux foundation ● Product: GLC radius manager ● Regular event 4
  • 5. www.glcnetworks.com Trainer Introduction ● Name: Achmad Mardiansyah ● Base: bandung, Indonesia ● Linux user since 1999, mikrotik user since 2007, UBNT 2011 ● Mikrotik Certified Trainer (MTCNA/RE/WE/UME/INE/TCE/IPv6) ● Mikrotik/Linux Certified Consultant ● Website contributor: achmadjournal.com, mikrotik.tips, asysadmin.tips ● More info: http://au.linkedin.com/in/achmadmardiansyah 5
  • 6. www.glcnetworks.com Past experience 6 ● 2020-2022 (Congo DRC, PNG, Malaysia): network support, radius/billing integration ● 2019, Congo (DRC): build a wireless ISP from ground-up ● 2018, Malaysia: network revamp, develop billing solution and integration, setup dynamic routing ● 2017, Libya (north africa): remote wireless migration for a new Wireless ISP ● 2016, United Kingdom: workshop for wireless ISP, migrating a bridged to routed network
  • 7. www.glcnetworks.com About GLC webinar? ● First webinar: january 1, 2010 (title: tahun baru bersama solaris - new year with solaris OS) ● As a sharing event with various topics: linux, networking, wireless, database, programming, etc ● Regular schedule ● Irregular schedule: as needed ● Checking schedule: http://www.glcnetworks.com/schedule ● You are invited to be a presenter ○ No need to be an expert ○ This is a forum for sharing: knowledge, experiences, information 7
  • 8. www.glcnetworks.com Please introduce yourself ● Your name ● Your company/university? ● Your networking experience? ● Your mikrotik experience? ● Your expectation from this course? 8
  • 9. www.glcnetworks.com Prerequisite ● This presentation requires some prerequisite knowledge ● We assume you already know: ○ Computer networking ○ Mikrotik administration 9
  • 11. www.glcnetworks.com 7 OSI layer & protocol 11 ● OSI layer Is a conceptual model from ISO (International Standard Organization) for project OSI (Open System Interconnection) ● When you send a message with a courier, you need to add more info to get your message arrived at the destination (This process is called encapsulation) ● What is protocol ○ Is a set of rules for communication ○ Available on each layer ● Communication consist of series encapsulation ○ SDU: service data unit (before PDU) ○ PDU: protocol data unit (after header is added)
  • 12. www.glcnetworks.com Layered model (TCP/IP vs ISO) and encapsulation 12 / datagram
  • 13. www.glcnetworks.com Layer 4 header (which one is TCP?) 13
  • 14. www.glcnetworks.com Layer 3 header (which one is IPv4?) 14
  • 17. www.glcnetworks.com Did you notice? ● There is a big overhead on encapsulation process ● More encapsulation means less payload? 17
  • 19. www.glcnetworks.com File Transfer Protocol (FTP) ● RFC756 (1980) -> rfc959 (1985) ● Protocol for file transfer ● Plain text ● Client server architecture ● port : TCP:21 ● Mode: ○ ACTIVE ○ PASSIVE 19
  • 20. www.glcnetworks.com FTP Communication and data transfer ● ACTIVE MODE ○ Server actively connect to client address using port 20 ● PASSIVE MODE ○ Only use port 21 ○ Recommended if the server/client behind NAT ○ Recommended if firewall blocks incoming connect to clients 20
  • 21. www.glcnetworks.com FTP data types ● ASCII (TYPE A): Used for text ● Image (TYPE I, commonly called Binary mode) ● EBCDIC (TYPE E): Used for plain text between hosts using the EBCDIC character set. ● Local (TYPE L n): Designed to support file transfer between machines which do not use 8-bit bytes, e.g. 36-bit systems such as DEC PDP-10s. 21
  • 22. www.glcnetworks.com File structure ● F or FILE structure (stream-oriented). Files are viewed as an arbitrary sequence of bytes, characters or words. ● R or RECORD structure (record-oriented). Files are viewed as divided into records, which may be fixed or variable length. ● P or PAGE structure (page-oriented). Files are divided into pages, which may either contain data or metadata; each page may also have a header giving various attributes. ● 22
  • 23. www.glcnetworks.com Data transfer modes ● Stream mode (MODE S): Data is sent as a continuous stream, relieving FTP from doing any processing. Rather, all processing is left up to TCP. No End-of-file indicator is needed, unless the data is divided into records. ● Block mode (MODE B): Designed primarily for transferring record-oriented files (STRU R), although can also be used to transfer stream-oriented (STRU F) text files. FTP puts each record (or line) of data into several blocks (block header, byte count, and data field) and then passes it on to TCP.[9] ● Compressed mode (MODE C): Extends MODE B with data compression using run-length encoding. 23
  • 24. www.glcnetworks.com Authentication ● Anonymous ○ Aka. public FTP service ○ Everyone can access ○ Server can configure if anonymous FTP can write data or not ● User authentication ○ Requires username and password Notes: ● No encryption 24
  • 25. www.glcnetworks.com Security improvements ● FTPS ○ FTP service with encryption (public key and private key) ○ Port: 990 / 21 ○ Can be implicit or explicit encryption ● SFTP ○ FTP over SSH service ○ Port 22 (SSH port) 25
  • 26. www.glcnetworks.com FTP stack ● Server: ○ Pureftp ○ Wsftp ○ Etc ● Client: ○ Cli ■ Ftp, mc ○ GUI ■ Filezilla ■ Winscp ■ etc 26
  • 27. www.glcnetworks.com FTP commands ● get/mget ● put/mput ● open/close ● cd/lcd ● mkdir/rmdir ● ls ● mode ● passive ● bye 27 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- 220-You are user number 1 of 50 allowed. 220-Local time is now 06:07. Server port: 21. 220-This is a private system - No anonymous login 220 You will be disconnected after 15 minutes of inactivity. Name (localhost:root): ftpuser1 331 User ftpuser1 OK. Password required Password: 230 OK. Current directory is /home/ftpuser1 Remote system type is UNIX. Using binary mode to transfer files. ftp> ? Commands may be abbreviated. Commands are: ! dir mdelete qc site $ disconnect mdir sendport size account exit mget put status append form mkdir pwd struct ascii get mls quit system bell glob mode quote sunique binary hash modtime recv tenex bye help mput reget tick case idle newer rstatus trace cd image nmap rhelp type cdup ipany nlist rename user chmod ipv4 ntrans reset umask close ipv6 open restart verbose cr lcd prompt rmdir ? delete ls passive runique debug macdef proxy send ftp>
  • 29. www.glcnetworks.com Mikrotik FTP support ● As an FTP server ○ Ip services ● As FTP client ○ Via CLI (fetch) 29
  • 31. www.glcnetworks.com preparation ● SSH client ● SSH parameters ○ SSH address ○ SSH port ○ SSH username ○ SSH password 31
  • 33. www.glcnetworks.com Interested? Just come to our training... ● Topics are arranged in systematic and logical way ● You will learn from experienced teacher ● Not only learn the materials, but also sharing experiences, best-practices, and networking 33
  • 34. www.glcnetworks.com End of slides ● Thank you for your attention ● Please submit your feedback: http://bit.ly/glcfeedback ● Find our further event on our website : https://www.glcnetworks.com/en/ ● Like our facebook page: https://www.facebook.com/glcnetworks ● Slide: https://www.slideshare.net/glcnetworks/ ● Discord (bahasa indonesia): (https://discord.gg/6MZ3KUHHBX) ● Recording (youtube): https://www.youtube.com/c/GLCNetworks ● Stay tune with our schedule ● Any questions? 34