首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >腾讯云Ubuntu14.04 配置FTP服务器,内网可以访问和查看信息,外网一直进不去?

腾讯云Ubuntu14.04 配置FTP服务器,内网可以访问和查看信息,外网一直进不去?

提问于 2018-03-31 10:47:47
回答 1关注 0查看 388

云服务器上内网访问,可以查看FTP文件信息

外网访问window7旗舰版

后面因为,觉得是21号端口问题,也打开了21号端口和暴露安全组去尝试能否放外部访问。

但均失败了。安全组用了ALL

# Example config file /etc/vsftpd.conf

#

# Run standalone with IPv6?

# Like the listen parameter, except vsftpd will listen on an IPv6 socket

# instead of an IPv4 one. This parameter and the listen parameter are mutually

# exclusive.

#listen_ipv6=YES

#

# Beware that on some FTP servers, ASCII support allows a denial of service

# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd

# predicted this attack and has always been safe, reporting the size of the

#

# You may fully customise the login banner string:

# (default follows)

#banned_email_file=/etc/vsftpd.banned_emails

#

# You may restrict local users to their home directories. See the FAQ fo

# the possible risks in this before using chroot_local_user o

# chroot_list_enable below.

# You may specify an explicit list of local users to chroot() to their home

# directory. If chroot_local_user is YES, then this list becomes a list of

# the user does not have write access to the top level directory within the

# access.

secure_chroot_dir=/var/run/vsftpd/empty

#

# This string is the name of the PAM service vsftpd will use.

pam_service_name=vsftpd

#

# This option specifies the location of the RSA certificate to use for SSL

# encrypted connections.

rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem

# This option specifies the location of the RSA key to use for SSL

# encrypted connections.

rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key

# ubuntu root

local_root=/home/ubuntu/ftp

# ÏÞÖÆÓû§¶ÔÖ÷Ŀ¼ÒÔÍâĿ¼·ÃÎÊ

chroot_local_user=YES

# Ö¸¶¨Ò»¸ö userlist ´æ·ÅÔÊÐí·ÃÎÊ ftp µÄÓû§Áбí

userlist_deny=NO

userlist_enable=YES

# ¼Ç¼ÔÊÐí·ÃÎÊ ftp Óû§Áбí

userlist_file=/etc/vsftpd.user_list

# ²»ÅäÖÿÉÄܵ¼ÖÂĪÃûµÄ530ÎÊÌâ

seccomp_sandbox=NO

# ÔÊÐíÎļþÉÏ´«

write_enable=YES

# ʹÓÃutf8±àÂë

utf8_filesystem=YES

pasv_address=140.143.139.*

pasv_enable=YES

pasv_min_port=1024

pasv_max_port=2048

HOW to fix it?

如果有您的回答,真诚的感激您!谢谢

相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档