Difference between revisions of "Instalasi FTP Server"

From OnnoWiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
  apt-get install vsftpd
 
  apt-get install vsftpd
  mkdir /var/ftp
+
  ufw allow ftp-data
  chown -Rf ftp.nogroup /var/ftp
+
ufw allow ftp
 +
  mkdir -p /var/ftp/pub
 
  chmod -Rf 444 /var/ftp
 
  chmod -Rf 444 /var/ftp
 +
chown nobody:nogroup /var/ftp/pub
 +
echo "vsftpd test file" | sudo tee /var/ftp/pub/test.txt
  
Membuat public directory
+
Cek
  
  mkdir /var/ftp
+
  ufw status
mkdir /var/ftp/pub
 
chown -Rf ftp.nogroup /var/ftp/pub
 
  
 
Restart ftp server
 
Restart ftp server
  
 
  /etc/init.d/vsftpd restart
 
  /etc/init.d/vsftpd restart
 
  
 
==Mengaktifkan Anonymous FTP==
 
==Mengaktifkan Anonymous FTP==
Line 21: Line 21:
 
  vi /etc/vsftpd.conf
 
  vi /etc/vsftpd.conf
  
 +
listen=YES
 +
listen_ipv6=NO
 
  anonymous_enable=YES
 
  anonymous_enable=YES
 +
anon_root=/var/ftp/
 +
no_anon_password=YES
 +
hide_ids=YES
 +
pasv_min_port=40000
 +
pasv_max_port=50000
 +
anon_max_rate=2048000
 +
xferlog_enable=YES
 +
local_enable=YES
 +
write_enable=YES
 
  anon_upload_enable=YES
 
  anon_upload_enable=YES
 
  anon_mkdir_write_enable=YES
 
  anon_mkdir_write_enable=YES
  write_enable=YES
+
  ftpd_banner=Welcome to FTP service.
  anon_root=/var/ftp
+
dirmessage_enable=YES
anon_max_rate=2048000
+
 
  xferlog_enable=YES
+
 
 +
Agar lebih aman
 +
 
 +
  anonymous_enable=NO
 +
 
 +
==Coba Akses==
 +
 
 +
  ftp ip-address
 +
 
 +
==Baca2==
 +
 
 +
  man vsftpd.conf
  
 
==Referensi==
 
==Referensi==
Line 37: Line 59:
 
* [[Membuat Repository Ubuntu Lokal]]
 
* [[Membuat Repository Ubuntu Lokal]]
 
* [[Linux Howto]]
 
* [[Linux Howto]]
 +
 +
 +
===Security===
 +
 +
* [[vsftp: hardening]]

Latest revision as of 04:08, 30 July 2020

Instalasi vsftp server

apt-get install vsftpd
ufw allow ftp-data
ufw allow ftp
mkdir -p /var/ftp/pub
chmod -Rf 444 /var/ftp
chown nobody:nogroup /var/ftp/pub
echo "vsftpd test file" | sudo tee /var/ftp/pub/test.txt

Cek

ufw status

Restart ftp server

/etc/init.d/vsftpd restart

Mengaktifkan Anonymous FTP

vi /etc/vsftpd.conf
listen=YES
listen_ipv6=NO
anonymous_enable=YES
anon_root=/var/ftp/
no_anon_password=YES
hide_ids=YES
pasv_min_port=40000
pasv_max_port=50000
anon_max_rate=2048000
xferlog_enable=YES
local_enable=YES
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
ftpd_banner=Welcome to FTP service.
dirmessage_enable=YES


Agar lebih aman

anonymous_enable=NO

Coba Akses

ftp ip-address

Baca2

 man vsftpd.conf

Referensi

Pranala Menarik


Security