×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: Dmitriy Lanets
Added: Nov 28, 2021 2:39 PM
Modified: Oct 29, 2022 7:52 AM
Views: 1251
Tags: linux
  1. $ sudo nano  /etc/vsftpd.conf
  2.  
  3. lock_upload_files=NO
  4. allow_writeable_chroot=YES
  5.  
  6. xferlog_std_format=NO
  7. xferlog_file=/var/log/vsftpd.log
  8. log_ftp_protocol=YES
  9. connect_from_port_20=YES
  10. pasv_min_port=5000
  11. pasv_max_port=5999
  12. pasv_enable=YES
  13.  
  14.  
  15. sudo ufw allow 20/tcp
  16. sudo ufw allow 21/tcp
  17. sudo ufw allow 5000:5999/tcp
  18. sudo ufw enable
  19. sudo ufw status
  20.  
  21. отключение правила
  22. $ sudo ufw status numbered
  23. $ sudo ufw delete 3
  24.  
  25.