博客
关于我
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+Tomcat性能监控
查看>>
nginx+uwsgi+django
查看>>
Nginx-http-flv-module流媒体服务器搭建+模拟推流+flv.js在前端html和Vue中播放HTTP-FLV视频流
查看>>
Nginx下配置codeigniter框架方法
查看>>
Nginx之二:nginx.conf简单配置(参数详解)
查看>>
Nginx代理websocket配置(解决websocket异常断开连接tcp连接不断问题)
查看>>
Nginx代理初探
查看>>
Nginx代理外网映射
查看>>
Nginx代理模式下 log-format 获取客户端真实IP
查看>>
Nginx代理静态资源(gis瓦片图片)实现非固定ip的url适配网络环境映射ip下的资源请求解决方案
查看>>
Nginx反向代理与正向代理配置
查看>>
Nginx多域名,多证书,多服务配置,实用版
查看>>
nginx异常:the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf
查看>>
nginx总结及使用Docker创建nginx教程
查看>>
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服务器上安装SSL证书
查看>>
Nginx服务器的安装
查看>>
Nginx模块 ngx_http_limit_conn_module 限制连接数
查看>>