博客
关于我
centos 开启vsftpd服务主动模式
阅读量:513 次
发布时间:2019-03-07

本文共 380 字,大约阅读时间需要 1 分钟。

防火墙配置

在系统安全中,首先需要确保防火墙正确配置,以便正常传输文件。新增ftp端口配置:

修改防火墙规则

iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT

重启防火墙服务:

重启防火墙

service iptables restart

vsftpd服务配置

为配置ftp主动模式服务,需修改vsftpd配置文件:

修改vsftpd配置

echo "connect_from_port_20=YES" >> /etc/vsftpd.confecho "pasv_enable=NO" >> /etc/vsftpd.conf

应用配置并重启服务:

服务重启

service vsftpd restart

完成以上步骤后,服务器将支持完美的ftp主动模式用户访问。

转载地址:http://zrljz.baihongyu.com/

你可能感兴趣的文章
nginx报错:the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:128
查看>>
nginx报错:the “ssl“ parameter requires ngx_http_ssl_module in usrlocalnginxconfnginx.conf128
查看>>
nginx日志分割并定期删除
查看>>
Nginx日志分析系统---ElasticStack(ELK)工作笔记001
查看>>
Nginx映射本地json文件,配置解决浏览器跨域问题,提供前端get请求模拟数据
查看>>
nginx最最最详细教程来了
查看>>
Nginx服务器---正向代理
查看>>
Nginx服务器上安装SSL证书
查看>>
Nginx服务器的安装
查看>>
Nginx模块 ngx_http_limit_conn_module 限制连接数
查看>>
nginx添加模块与https支持
查看>>
Nginx用户认证
查看>>
Nginx的location匹配规则的关键问题详解
查看>>
Nginx的Rewrite正则表达式,匹配非某单词
查看>>
Nginx的使用总结(一)
查看>>
Nginx的使用总结(三)
查看>>
Nginx的使用总结(二)
查看>>
Nginx的可视化神器nginx-gui的下载配置和使用
查看>>
Nginx的是什么?干什么用的?
查看>>
Nginx访问控制_登陆权限的控制(http_auth_basic_module)
查看>>