CentOs 7.6 after opening the firewall can not display the remote folder

Turn: https://blog.csdn.net/ygwlove0110/article/details/88232065

I encountered a pit. When the server opens the firewall, ftp client connections can not be displayed directory. Turn off the firewall can be friends.

Of course, still have to turn on the firewall now posted solutions

Section of the configuration file vsftpd.conf

= pam_service_name the vsftpd 
userlist_enable = YES 
the tcp_wrappers = YES 
# These are the default configuration 
 
 
chroot_local_user = YES 
chroot_list_enable = NO 
the chroot_list_file = / etc / the vsftpd / chroot_list 
## configure a custom port need to be modified if desired to modify / etc / -Service corresponding to the open port and firewall port 
LISTEN_PORT = 9555 
local_root = / var / FTP / public 
 
 
### or less can not be resolved by opening the firewall, the added content 
pasv_enable = YES 
pasv_min_port = 40000 
pasv_max_port = 40080
pasv_promiscuous=YES

At the same time you need to open the firewall release

firewall-cmd --permanent --zone=public --add-port=40000-40080/tcp
firewall-cmd --reload

  Finally, restart the ftp service

systemctl restart vsftpd.service

  Ftp can use the tool to test fire it

Guess you like

Origin www.cnblogs.com/sheseido/p/11310859.html